|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.imp3d.glsl.GLSLVolumeBuilder
public class GLSLVolumeBuilder
Simple class that will gather Scene information about the extend of all objects
Field Summary |
---|
Fields inherited from interface de.grogra.imp3d.RenderState |
---|
CURRENT_HIGHLIGHT |
Constructor Summary | |
---|---|
GLSLVolumeBuilder()
|
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)
|
void |
finish()
Should be called after all renderables have been processed. |
Vector3d |
getCenter()
|
int |
getCurrentHighlight()
|
float |
getCurrentRadius()
|
Shader |
getCurrentShader()
|
TransformableVolume |
getCurrentVolume()
|
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
|
Pool |
getPool()
|
double |
getRadius()
|
GraphState |
getRenderGraphState()
|
boolean |
getWindowPos(Tuple3f location,
Tuple2f out)
Computes the window coordinates in pixels of a location in the current object coordinates. |
void |
initSceneExtent(GLDisplay disp)
Initializes values for calculation of scene extend. |
boolean |
needsData()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLSLVolumeBuilder()
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 RenderState
locations
- 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 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 s, int highlight, Matrix4d t)
RenderState
drawSupershape
in interface RenderState
t
- 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 RenderState
public void finish()
public Vector3d getCenter()
public int getCurrentHighlight()
getCurrentHighlight
in interface RenderState
public float getCurrentRadius()
public Shader getCurrentShader()
getCurrentShader
in interface RenderState
public TransformableVolume getCurrentVolume()
getCurrentRadius()
public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
getFontMetrics
in interface RenderState
public Pool getPool()
getPool
in interface RenderState
public double getRadius()
public GraphState getRenderGraphState()
getRenderGraphState
in interface RenderState
public boolean getWindowPos(Tuple3f location, Tuple2f out)
RenderState
getWindowPos
in interface RenderState
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)public void initSceneExtent(GLDisplay disp)
disp
- The Display using this class.public boolean needsData()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |