gov.nasa.worldwind.render
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
|---|---|
static String |
LEADER_NONE
|
static String |
LEADER_TRIANGLE
|
static String |
SHAPE_ELLIPSE
|
static String |
SHAPE_NONE
|
static String |
SHAPE_RECTANGLE
|
| Constructor Summary | |
|---|---|
FrameFactory()
|
|
| Method Summary | |
|---|---|
static DoubleBuffer |
createShapeBuffer(String shape,
double width,
double height,
int cornerRadius,
DoubleBuffer buffer)
Create a vertex buffer for a shape with the specified width, height and corner radius. |
static DoubleBuffer |
createShapeWithLeaderBuffer(String shape,
double width,
double height,
Point leaderOffset,
double leaderGapWidth,
int cornerRadius,
DoubleBuffer buffer)
Create a vertex buffer for a shape with the specified width, height and corner radius. |
static void |
drawBuffer(DrawContext dc,
int mode,
DoubleBuffer verts)
|
static void |
drawBuffer(DrawContext dc,
int mode,
int count,
DoubleBuffer verts)
Draw a vertex buffer in a given gl mode. |
static void |
drawBuffer(DrawContext dc,
int mode,
int count,
DoubleBuffer verts,
DoubleBuffer coords)
Draw a vertex buffer with texture coordinates in a given gl mode. |
static void |
drawShape(DrawContext dc,
String shape,
double width,
double height,
int glMode,
int cornerRadius)
Draw a shape with the specified width and height, gl mode and corner radius. |
static void |
drawShapeWithLeader(DrawContext dc,
String shape,
double width,
double height,
Point leaderOffset,
double leaderGapWidth,
int glMode,
int cornerRadius)
Draw a shape with the specified width and height, gl mode and corner radius. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LEADER_NONE
public static final String LEADER_TRIANGLE
public static final String SHAPE_ELLIPSE
public static final String SHAPE_NONE
public static final String SHAPE_RECTANGLE
| Constructor Detail |
|---|
public FrameFactory()
| Method Detail |
|---|
public static DoubleBuffer createShapeBuffer(String shape, double width, double height, int cornerRadius, DoubleBuffer buffer)
SHAPE_RECTANGLE - set to zero for square corners.
shape - the shape - can be one of SHAPE_RECTANGLE or SHAPE_ELLIPSE.width - the width of the overall shape.height - the height of the shape.cornerRadius - the rounded corners radius. Set to zero for square corners.buffer - the buffer to store shape vertices, or null to allocate a new buffer.
public static DoubleBuffer createShapeWithLeaderBuffer(String shape, double width, double height, Point leaderOffset, double leaderGapWidth, int cornerRadius, DoubleBuffer buffer)
SHAPE_RECTANGLE
- set to zero for square corners.
shape - the shape - can be one of SHAPE_RECTANGLE or SHAPE_ELLIPSE.width - the width of the overall shape.height - the height of the shape excluding the leader.leaderOffset - the coordinates of the point to which the leader leads.leaderGapWidth - the starting width of the leader shape.cornerRadius - the rounded corners radius. Set to zero for square corners.buffer - the buffer to store shape vertices, or null to allocate a new buffer.
public static void drawBuffer(DrawContext dc, int mode, DoubleBuffer verts)
public static void drawBuffer(DrawContext dc, int mode, int count, DoubleBuffer verts)
GL.GL_TRIANGLE_FAN and GL.LINE_STRIP.
dc - the current DrawContext.mode - the desired drawing GL mode.count - the number of vertices to draw.verts - the vertex buffer to draw.public static void drawBuffer(DrawContext dc, int mode, int count, DoubleBuffer verts, DoubleBuffer coords)
GL.GL_TRIANGLE_FAN and GL.LINE_STRIP.
dc - the current DrawContext.mode - the desired drawing GL mode.count - the number of vertices to draw.verts - the vertex buffer to draw.coords - the buffer containing the shape texture coordinates.public static void drawShape(DrawContext dc, String shape, double width, double height, int glMode, int cornerRadius)
GL.GL_TRIANGLE_FAN and GL.LINE_STRIP. Corner radius only apply
to SHAPE_RECTANGLE - set to zero for square corners.
dc - the current DrawContext.shape - the shape - can be one of SHAPE_RECTANGLE or SHAPE_ELLIPSE.width - the width of the overall shape.height - the height of the shape.glMode - the GL mode - can be one of GL.GL_TRIANGLE_FAN and GL.LINE_STRIP.cornerRadius - the rounded corners radius. Set to zero for square corners.public static void drawShapeWithLeader(DrawContext dc, String shape, double width, double height, Point leaderOffset, double leaderGapWidth, int glMode, int cornerRadius)
GL.GL_TRIANGLE_FAN
and GL.LINE_STRIP. Corner radius only apply to SHAPE_RECTANGLE - set to zero for square corners.
dc - the current DrawContext.shape - the shape - can be one of SHAPE_RECTANGLE or SHAPE_ELLIPSE.width - the width of the overall shape.height - the height of the shape excluding the leader.leaderOffset - the coordinates of the point to which the leader leads.leaderGapWidth - the starting width of the leader shape.glMode - the GL mode - can be one of GL.GL_TRIANGLE_FAN and GL.LINE_STRIP.cornerRadius - the rounded corners radius. Set to zero for square corners.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||