de.grogra.imp3d
public abstract class VolumeBuilder extends VolumeBuilderBase implements RenderState
epsilon, polyCacheCURRENT_HIGHLIGHT| Constructor and Description |
|---|
VolumeBuilder(PolygonizationCache polyCache,
float epsilon) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addVolume(Volume v,
Matrix4d t,
Shader s) |
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 pz,
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() |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font) |
Pool |
getPool() |
boolean |
getWindowPos(Tuple3f location,
Tuple2f out)
Computes the window coordinates in pixels of a location
in the current object coordinates.
|
buildBaseFrustum, buildBox, buildFrustum, buildLamella, buildParallelogram, buildPlane, buildPolygons, buildSphere, buildSupershape, getCurrentTransformation, getTransformation, setInvTransformationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentShader, getRenderGraphStatepublic VolumeBuilder(PolygonizationCache polyCache, float epsilon)
public 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 pz, 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 s,
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 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)