de.grogra.imp3d
public interface RenderState
| Modifier and Type | Field and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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 |
drawFrustumIrregular(float height,
int sectorCount,
float[] baseRadii,
float[] topRadii,
boolean baseClosed,
boolean topclosed,
float scaleV,
Shader s,
int highlight,
Matrix4d t) |
void |
drawLamella(float halfWidth,
float halfLength,
float height,
float a,
float b,
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 |
drawPrismRectangular(float y,
float xPos,
float xNeg,
float zPos,
float zNeg,
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).
|
void |
drawTextBlock(java.lang.String caption,
java.awt.Font font,
float depth,
Shader s,
int highlight,
Matrix4d t) |
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.
|
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.void drawBox(float halfWidth,
float halfLength,
float height,
Shader s,
int highlight,
Matrix4d t)
halfWidth - halfLength - height - s - highlight - t - void drawFrustum(float height,
float baseRadius,
float topRadius,
boolean baseClosed,
boolean topClosed,
float scaleV,
Shader s,
int highlight,
Matrix4d t)
height - baseRadius - topRadius - baseClosed - topClosed - scaleV - s - highlight - t - void drawFrustumIrregular(float height,
int sectorCount,
float[] baseRadii,
float[] topRadii,
boolean baseClosed,
boolean topclosed,
float scaleV,
Shader s,
int highlight,
Matrix4d t)
void drawLamella(float halfWidth,
float halfLength,
float height,
float a,
float b,
Shader s,
int highlight,
Matrix4d t)
halfWidth - halfLength - height - a - amplitudeb - frequencys - highlight - t - void drawParallelogram(float axis,
Vector3f secondAxis,
float scaleU,
float scaleV,
Shader s,
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)
polygons - obj - asNode - s - highlight - t - void drawPrismRectangular(float y,
float xPos,
float xNeg,
float zPos,
float zNeg,
int highlight,
Matrix4d t)
y - xPos - xNeg - zPos - zNeg - highlight - t - void drawRectangle(int x,
int y,
int w,
int h,
Tuple3f color)
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 cloudvoid drawTextBlock(java.lang.String caption,
java.awt.Font font,
float depth,
Shader s,
int highlight,
Matrix4d t)
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)
location - a location in local object coordinatesout - the computed window coordinates are placed in heretrue iff the window coordinates are valid
(i.e., the location is in the clipping region)