de.grogra.imp3d.gl20
public class GL20DisplayVisitor extends DisplayVisitor implements RenderState
lastEntered, lastEnteredIsNodelayer, state, transformationCURRENT_HIGHLIGHT| Constructor and Description |
|---|
GL20DisplayVisitor() |
| 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 sh,
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() |
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.
|
void |
initialize(GraphState gs,
View3D view,
boolean toolTravel)
initialize a complete new visiting
|
protected void |
visitEnterImpl(java.lang.Object object,
boolean asNode,
Path path)
this is just a wrapper
when entering a
Node, the associated GL20Node
will be entered |
protected void |
visitImpl(java.lang.Object object,
boolean asNode,
Shader s,
Path path)
this method collect all data from
Nodes that have information
for displaying |
protected void |
visitLeaveImpl(java.lang.Object object,
boolean asNode,
Path path)
this is just a wrapper
when leaving a
Node, the associated GL20Node
will be leaved |
getCurrentShader, init, isInVisibleLayer, isInVisibleScale, resolveShadergetCurrentTransformation, getGraphState, init, visitEnter, visitEnter, visitInstanceEnter, visitInstanceLeave, visitLeaveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentShaderpublic void drawBox(float halfWidth,
float halfLength,
float height,
Shader s,
int highlight,
Matrix4d t)
drawBox in interface RenderStatepublic void drawFrustum(float height,
float baseRadius,
float topRadius,
boolean baseClosed,
boolean topClosed,
float scaleV,
Shader s,
int highlight,
Matrix4d t)
drawFrustum in interface RenderStatepublic void drawFrustumIrregular(float height,
int sectorCount,
float[] baseRadii,
float[] topRadii,
boolean baseClosed,
boolean topclosed,
float scaleV,
Shader s,
int highlight,
Matrix4d t)
drawFrustumIrregular in interface RenderStatepublic void drawLamella(float halfWidth,
float halfLength,
float height,
float a,
float b,
Shader s,
int highlight,
Matrix4d t)
drawLamella in interface RenderStatea - amplitudeb - frequencypublic void drawLine(Tuple3f start, Tuple3f end, Tuple3f color, int highlight, Matrix4d t)
drawLine in interface RenderStatepublic void drawParallelogram(float axis,
Vector3f secondAxis,
float scaleU,
float scaleV,
Shader s,
int highlight,
Matrix4d t)
drawParallelogram in interface RenderStatepublic void drawPlane(Shader s, int highlight, Matrix4d t)
drawPlane in interface RenderStatepublic void drawPoint(Tuple3f location, int pixelSize, Tuple3f color, int highlight, Matrix4d t)
drawPoint in interface RenderStatepublic void drawPointCloud(float[] locations,
float pointSize,
Tuple3f color,
int highlight,
Matrix4d t)
RenderStatedrawPointCloud in interface RenderStatelocations - array containing a sequence (x,y,z) of pointspointSize - size of the point on screencolor - color of the pointt - transformation of the point cloudpublic void drawPolygons(Polygonizable polygons, java.lang.Object obj, boolean asNode, Shader s, int highlight, Matrix4d t)
drawPolygons in interface RenderStatepublic void drawPrismRectangular(float y,
float xPos,
float xNeg,
float zPos,
float zNeg,
int highlight,
Matrix4d t)
drawPrismRectangular in interface RenderStatepublic void drawRectangle(int x,
int y,
int w,
int h,
Tuple3f color)
drawRectangle in interface RenderStatepublic void drawSphere(float radius,
Shader s,
int highlight,
Matrix4d t)
drawSphere in interface RenderStatepublic void drawString(int x,
int y,
java.lang.String text,
java.awt.Font font,
Tuple3f color)
drawString in interface RenderStatepublic void drawSupershape(float a,
float b,
float m1,
float n11,
float n12,
float n13,
float m2,
float n21,
float n22,
float n23,
Shader sh,
int highlight,
Matrix4d t)
RenderStatedrawSupershape in interface RenderStatet - transformation of the point cloudpublic void drawTextBlock(java.lang.String caption,
java.awt.Font font,
float depth,
Shader s,
int highlight,
Matrix4d t)
drawTextBlock in interface RenderStatepublic float estimateScaleAt(Tuple3f point)
estimateScaleAt in interface RenderStatepublic void fillRectangle(int x,
int y,
int w,
int h,
Tuple3f color)
fillRectangle in interface RenderStatepublic int getCurrentHighlight()
getCurrentHighlight in interface RenderStatepublic java.awt.FontMetrics getFontMetrics(java.awt.Font font)
getFontMetrics in interface RenderStatepublic Pool getPool()
getPool in interface RenderStatepublic GraphState getRenderGraphState()
getRenderGraphState in interface RenderStatepublic boolean getWindowPos(Tuple3f location, Tuple2f out)
RenderStategetWindowPos in interface RenderStatelocation - 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)public void initialize(GraphState gs, View3D view, boolean toolTravel)
gs - the current GraphStateview - toolTravel - true - when this run is the tool traveling runprotected void visitEnterImpl(java.lang.Object object,
boolean asNode,
Path path)
Node, the associated GL20Node
will be enteredvisitEnterImpl in class DisplayVisitorobject - the object being enteredasNode - is object a node or an edge?path - the path to object if object
is a node, the path to the node where object points to
if object is an edgeprotected void visitImpl(java.lang.Object object,
boolean asNode,
Shader s,
Path path)
Nodes that have information
for displayingvisitImpl in class DisplayVisitorprotected void visitLeaveImpl(java.lang.Object object,
boolean asNode,
Path path)
Node, the associated GL20Node
will be leavedvisitLeaveImpl in class DisplayVisitorobject - the object being leftasNode - is object a node or an edge?path - the path to object if object
is a node, the path to the node where object points to
if object is an edge