|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.imp3d.Visitor3D
de.grogra.imp3d.DisplayVisitor
de.grogra.imp3d.gl20.GL20DisplayVisitor
public class GL20DisplayVisitor
The GL20DisplayVisitor travels through the graph and collect information about it.
| Field Summary |
|---|
| Fields inherited from class de.grogra.imp3d.DisplayVisitor |
|---|
lastEntered, lastEnteredIsNode |
| Fields inherited from class de.grogra.imp3d.Visitor3D |
|---|
layer, state, transformation |
| Fields inherited from interface de.grogra.imp3d.RenderState |
|---|
CURRENT_HIGHLIGHT |
| Fields inherited from interface de.grogra.graph.Visitor |
|---|
STOP |
| Constructor Summary | |
|---|---|
GL20DisplayVisitor()
|
|
| 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 sh,
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()
|
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 |
| Methods inherited from class de.grogra.imp3d.DisplayVisitor |
|---|
getCurrentShader, init, isInVisibleLayer, resolveShader |
| Methods inherited from class de.grogra.imp3d.Visitor3D |
|---|
getCurrentTransformation, getGraphState, init, visitEnter, visitEnter, visitInstanceEnter, visitInstanceLeave, visitLeave |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.grogra.imp3d.RenderState |
|---|
getCurrentShader |
| Constructor Detail |
|---|
public GL20DisplayVisitor()
| Method Detail |
|---|
public void drawBox(float halfWidth,
float halfLength,
float height,
Shader s,
int highlight,
Matrix4d t)
drawBox in interface RenderState
public void drawFrustum(float height,
float baseRadius,
float topRadius,
boolean baseClosed,
boolean topClosed,
float scaleV,
Shader s,
int highlight,
Matrix4d t)
drawFrustum in interface RenderState
public void drawLine(Tuple3f start,
Tuple3f end,
Tuple3f color,
int highlight,
Matrix4d t)
drawLine in interface RenderState
public void drawParallelogram(float axis,
Vector3f secondAxis,
float scaleU,
float scaleV,
Shader s,
int highlight,
Matrix4d t)
drawParallelogram in interface RenderState
public void drawPlane(Shader s,
int highlight,
Matrix4d t)
drawPlane in interface RenderState
public void drawPoint(Tuple3f location,
int pixelSize,
Tuple3f color,
int highlight,
Matrix4d t)
drawPoint in interface RenderState
public void drawPointCloud(float[] locations,
float pointSize,
Tuple3f color,
int highlight,
Matrix4d t)
RenderState
drawPointCloud 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 cloud
public void drawPolygons(Polygonizable polygons,
java.lang.Object obj,
boolean asNode,
Shader s,
int highlight,
Matrix4d t)
drawPolygons in interface RenderState
public void drawRectangle(int x,
int y,
int w,
int h,
Tuple3f color)
drawRectangle in interface RenderState
public void drawSphere(float radius,
Shader s,
int highlight,
Matrix4d t)
drawSphere in interface RenderState
public void drawString(int x,
int y,
java.lang.String text,
java.awt.Font font,
Tuple3f color)
drawString in interface RenderState
public 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)
RenderState
drawSupershape in interface RenderStatet - transformation of the point cloudpublic float estimateScaleAt(Tuple3f point)
estimateScaleAt in interface RenderState
public 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 RenderState
public boolean getWindowPos(Tuple3f location,
Tuple2f out)
RenderState
getWindowPos in interface RenderStatelocation - 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)
public void initialize(GraphState gs,
View3D view,
boolean toolTravel)
gs - the current GraphStateview - toolTravel - true - when this run is the tool traveling run
protected void visitEnterImpl(java.lang.Object object,
boolean asNode,
Path path)
Node, the associated GL20Node
will be entered
visitEnterImpl 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 edge
protected void visitImpl(java.lang.Object object,
boolean asNode,
Shader s,
Path path)
Nodes that have information
for displaying
visitImpl in class DisplayVisitor
protected void visitLeaveImpl(java.lang.Object object,
boolean asNode,
Path path)
Node, the associated GL20Node
will be leaved
visitLeaveImpl 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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||