|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object camera3d.VcObject camera3d.GeometryBag
This class allows the easy creation of many kinds of geometry. Its main intended use is helping with the debugging of programs and fast prototyping of applications. The types of geometry currently supported include cube, line, plane and sphere.
Field Summary |
Fields inherited from class camera3d.VcObject |
transformationMode |
Constructor Summary | |
GeometryBag()
|
Method Summary | |
void |
addCube(javax.vecmath.Point3d lowCorner,
javax.vecmath.Point3d upCorner)
|
void |
addLine(javax.vecmath.Point3d p1,
javax.vecmath.Point3d p2)
|
void |
addLine(javax.vecmath.Point3d p1,
javax.vecmath.Vector3d direction)
|
void |
addLineSegment(javax.vecmath.Point3d p1,
javax.vecmath.Point3d p2)
|
void |
addPlane(javax.vecmath.Point3d p1,
javax.vecmath.Point3d p2,
javax.vecmath.Point3d p3)
|
void |
addPlane(javax.vecmath.Point3d point,
javax.vecmath.Vector3d normal)
|
void |
addPlane(javax.vecmath.Vector4d plane4d)
|
void |
addPlane(javax.vecmath.Vector4d plane4d,
javax.vecmath.Color3b color)
|
void |
addPoint(javax.vecmath.Point3d point)
|
void |
addSphere(javax.vecmath.Point3d center,
double radius)
|
void |
clearAll()
Erases all geometry contained in this object |
void |
clearCubes()
Erases all cubes contained in this object |
void |
clearLines()
Erases all lines contained in this object |
void |
clearPlanes()
|
void |
clearPoints()
Erases all points contained in this object |
void |
finishLineArray()
|
javax.swing.Icon |
getIcon()
Returns the Icon associated with GeometryBag. |
static int |
getInstanceCounter()
Returns the number of objects instatiated so far. |
boolean |
isColorRotating()
|
boolean |
isUsingDefaultColors()
Lines, points and planes usually have a default color associated with them. |
static void |
main(java.lang.String[] args)
|
void |
popColor()
Pops a color from aforementioned stack |
void |
pushColor(byte r,
byte g,
byte b)
Pushes a color onto a stack. |
void |
setColor(byte r,
byte g,
byte b)
|
void |
setColorRotatingEnable(boolean enable)
|
void |
setIcon(javax.swing.Icon bagIcon)
Sets the Icon associated with GeometryBag. |
void |
setPlaneWidth(double planeWidth)
|
void |
setPointWidth(double width)
I know, I know, points are not supposed to have a dimension. |
void |
setUsingDefaultColors(boolean b)
Lines, points and planes usually have a default color associated with them. |
void |
startLineArray()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GeometryBag()
Method Detail |
public static int getInstanceCounter()
public void addLine(javax.vecmath.Point3d p1, javax.vecmath.Point3d p2)
public void startLineArray()
public void addLineSegment(javax.vecmath.Point3d p1, javax.vecmath.Point3d p2)
public void finishLineArray()
public void addLine(javax.vecmath.Point3d p1, javax.vecmath.Vector3d direction)
public void addPoint(javax.vecmath.Point3d point)
public void addPlane(javax.vecmath.Point3d p1, javax.vecmath.Point3d p2, javax.vecmath.Point3d p3)
public void addPlane(javax.vecmath.Point3d point, javax.vecmath.Vector3d normal)
public void addPlane(javax.vecmath.Vector4d plane4d)
public void addPlane(javax.vecmath.Vector4d plane4d, javax.vecmath.Color3b color)
public void addSphere(javax.vecmath.Point3d center, double radius)
public void addCube(javax.vecmath.Point3d lowCorner, javax.vecmath.Point3d upCorner)
public void setColor(byte r, byte g, byte b)
public void pushColor(byte r, byte g, byte b)
public void popColor()
public void clearAll()
public void clearLines()
public void clearPoints()
public void clearCubes()
public void clearPlanes()
public void setPlaneWidth(double planeWidth)
public void setPointWidth(double width)
public void setUsingDefaultColors(boolean b)
public boolean isUsingDefaultColors()
public javax.swing.Icon getIcon()
getIcon
in class VcObject
public void setIcon(javax.swing.Icon bagIcon)
setIcon
in class VcObject
public void setColorRotatingEnable(boolean enable)
public boolean isColorRotating()
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |