|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RenderState
This interface describes all functions a render device must implement.
Field Summary | |
---|---|
static int |
CURRENT_HIGHLIGHT
Passed as highlight -parameter to the
draw -methods of this interface if the
current highlight has to be used instead of the parameter. |
Method Summary | |
---|---|
void |
drawBox(float halfWidth,
float halfLength,
float height,
Shader s,
int highlight,
Matrix4d t)
|
void |
drawFrustum(float height,
float baseRadius,
float topRadius,
boolean baseClosed,
boolean topClosed,
float scaleV,
Shader s,
int highlight,
Matrix4d t)
|
void |
drawLine(Tuple3f start,
Tuple3f end,
Tuple3f color,
int highlight,
Matrix4d t)
|
void |
drawParallelogram(float axis,
Vector3f secondAxis,
float scaleU,
float scaleV,
Shader s,
int highlight,
Matrix4d t)
|
void |
drawPlane(Shader s,
int highlight,
Matrix4d t)
|
void |
drawPoint(Tuple3f location,
int pixelSize,
Tuple3f color,
int highlight,
Matrix4d t)
|
void |
drawPointCloud(float[] locations,
float pointSize,
Tuple3f color,
int highlight,
Matrix4d t)
Draw a set of points. |
void |
drawPolygons(Polygonizable polygons,
java.lang.Object obj,
boolean asNode,
Shader s,
int highlight,
Matrix4d t)
|
void |
drawRectangle(int x,
int y,
int w,
int h,
Tuple3f color)
|
void |
drawSphere(float radius,
Shader s,
int highlight,
Matrix4d t)
|
void |
drawString(int x,
int y,
java.lang.String text,
java.awt.Font font,
Tuple3f color)
|
void |
drawSupershape(float a,
float b,
float m1,
float n11,
float n12,
float n13,
float m2,
float n21,
float n22,
float n23,
Shader s,
int highlight,
Matrix4d t)
Draw a supershape around the origin (0/0/0). |
float |
estimateScaleAt(Tuple3f point)
|
void |
fillRectangle(int x,
int y,
int w,
int h,
Tuple3f color)
|
int |
getCurrentHighlight()
|
Shader |
getCurrentShader()
|
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
|
Pool |
getPool()
|
GraphState |
getRenderGraphState()
|
boolean |
getWindowPos(Tuple3f location,
Tuple2f out)
Computes the window coordinates in pixels of a location in the current object coordinates. |
Field Detail |
---|
static final int CURRENT_HIGHLIGHT
highlight
-parameter to the
draw
-methods of this interface if the
current highlight has to be used instead of the parameter.
Method Detail |
---|
void drawBox(float halfWidth, float halfLength, float height, Shader s, int highlight, Matrix4d t)
void drawFrustum(float height, float baseRadius, float topRadius, boolean baseClosed, boolean topClosed, float scaleV, Shader s, int highlight, Matrix4d t)
void drawLine(Tuple3f start, Tuple3f end, Tuple3f color, int highlight, Matrix4d t)
void drawParallelogram(float axis, Vector3f secondAxis, float scaleU, float scaleV, Shader s, int highlight, Matrix4d t)
void drawPlane(Shader s, int highlight, Matrix4d t)
void drawPoint(Tuple3f location, int pixelSize, Tuple3f color, int highlight, Matrix4d t)
void drawPointCloud(float[] locations, float pointSize, Tuple3f color, int highlight, Matrix4d t)
locations
- array containing a sequence (x,y,z) of pointspointSize
- size of the point on screencolor
- color of the pointhighlight
- t
- transformation of the point cloudvoid drawPolygons(Polygonizable polygons, java.lang.Object obj, boolean asNode, Shader s, int highlight, Matrix4d t)
void drawRectangle(int x, int y, int w, int h, Tuple3f color)
void drawSphere(float radius, Shader s, int highlight, Matrix4d t)
void drawString(int x, int y, java.lang.String text, java.awt.Font font, Tuple3f color)
void drawSupershape(float a, float b, float m1, float n11, float n12, float n13, float m2, float n21, float n22, float n23, Shader s, int highlight, Matrix4d t)
a,
- b length of curvesm,
- n shape parametersshader
- highlight
- t
- transformation of the point cloudfloat estimateScaleAt(Tuple3f point)
void fillRectangle(int x, int y, int w, int h, Tuple3f color)
int getCurrentHighlight()
Shader getCurrentShader()
java.awt.FontMetrics getFontMetrics(java.awt.Font font)
Pool getPool()
GraphState getRenderGraphState()
boolean getWindowPos(Tuple3f location, Tuple2f out)
location
- a location in local object coordinatesout
- the computed window coordinates are placed in here
true
iff the window coordinates are valid
(i.e., the location is in the clipping region)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |