|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeRetained
javax.media.j3d.LeafRetained
javax.media.j3d.Shape3DRetained
javax.media.j3d.OrientedShape3DRetained
class OrientedShape3DRetained
Field Summary | |
---|---|
private AxisAngle4d |
aa
|
(package private) static int |
ALIGNMENT_CHANGED
|
(package private) Vector3f |
axis
|
(package private) static int |
AXIS_CHANGED
|
(package private) static int |
CONSTANT_SCALE_CHANGED
|
(package private) boolean |
constantScale
|
(package private) static double |
EPSILON
|
private Vector3d |
eyeVec
|
private Vector4d[] |
im_vec
|
private Transform3D |
left_xform
|
private Vector4d |
lvec
|
(package private) int |
mode
|
private Vector3d |
nAxis
|
(package private) boolean |
orientedTransformDirty
|
(package private) Transform3D[] |
orientedTransforms
|
private Transform3D |
right_xform
|
(package private) static int |
ROTATION_CHANGED
|
(package private) Point3f |
rotationPoint
|
(package private) static int |
SCALE_FACTOR_CHANGED
|
(package private) double |
scaleFactor
|
(package private) Transform3D |
scaleXform
|
private Vector3d |
vector
|
private Point3d |
viewPosition
|
private Transform3D |
xform
|
private Vector3d |
yAxis
|
private Vector3d |
yUp
|
private Point3d |
yUpPoint
|
private Vector3d |
zAxis
|
private Transform3D |
zRotate
|
Fields inherited from class javax.media.j3d.Shape3DRetained |
---|
altApps, appearance, APPEARANCE_CHANGED, APPEARANCEOVERRIDE_CHANGED, appearanceOverrideEnable, bounds, BOUNDS_CHANGED, branchGroupPath, changedFrequent, closestSwitchIndex, closestSwitchParent, COLLISION_CHANGED, collisionBound, collisionVwcBound, fogs, GEOMETRY_CHANGED, geometryList, inImmCtx, isCollidable, isDirty, isPickable, key, LAST_DEFINED_BIT, lights, mirrorShape3D, modelClips, numAltApps, numfogs, numlights, numModelClips, orderedPath, otherAppearance, sourceNode, targetThreads, viewList, visible, vwcBounds |
Fields inherited from class javax.media.j3d.LeafRetained |
---|
boundsDirty, switchState |
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
OrientedShape3DRetained()
Constructs a OrientedShape3D node with default parameters. |
Method Summary | |
---|---|
(package private) void |
compile(CompileState compState)
This is the default compile() method, which just marks the sgo as compiled. |
(package private) void |
getAlignmentAxis(Vector3f axis)
Retrieves the alignment axis of this OrientedShape3D node, and copies it into the specified vector. |
(package private) int |
getAlignmentMode()
Retrieves the alignment mode. |
(package private) boolean |
getConstantScaleEnable()
|
(package private) Transform3D |
getOrientedTransform(int viewIndex)
|
(package private) void |
getRotationPoint(Point3f point)
Retrieves the rotation point of this OrientedShape3D node, and copies it into the specified vector. |
(package private) double |
getScale()
|
(package private) void |
initAlignmentAxis(float x,
float y,
float z)
|
(package private) void |
initAlignmentAxis(Vector3f axis)
|
(package private) void |
initAlignmentMode(int mode)
|
(package private) void |
initConstantScaleEnable(boolean cons_scale)
|
(package private) void |
initRotationPoint(float x,
float y,
float z)
|
(package private) void |
initRotationPoint(Point3f point)
|
(package private) void |
initScale(double scale)
|
private boolean |
projectToPlane(Vector3d projVec,
Vector3d planeVec)
|
(package private) void |
searchGeometryAtoms(UnorderList list)
|
(package private) void |
sendChangedMessage(int component,
java.lang.Object attr)
|
(package private) void |
setAlignmentAxis(float x,
float y,
float z)
Sets the new alignment axis. |
(package private) void |
setAlignmentAxis(Vector3f axis)
Sets the new alignment axis. |
(package private) void |
setAlignmentMode(int mode)
Sets the alignment mode. |
(package private) void |
setConstantScaleEnable(boolean enable)
|
(package private) void |
setRotationPoint(float x,
float y,
float z)
Sets the new rotation point. |
(package private) void |
setRotationPoint(Point3f point)
Sets the new rotation point. |
(package private) void |
setScale(double scale)
|
(package private) void |
updateImmediateMirrorObject(java.lang.Object[] args)
|
(package private) void |
updateOrientedTransform(Canvas3D canvas,
int viewIndex)
|
Methods inherited from class javax.media.j3d.LeafRetained |
---|
clone, updateBoundingLeaf, updateMirrorObject, updateTransformChange |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, clone, doSetLive, getSource, isInSetLive, markAsLive, setCompiled, setLive, setSource, traverse |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int ALIGNMENT_CHANGED
static final int AXIS_CHANGED
static final int ROTATION_CHANGED
static final int CONSTANT_SCALE_CHANGED
static final int SCALE_FACTOR_CHANGED
int mode
Vector3f axis
Point3f rotationPoint
private Vector3d nAxis
private Point3d viewPosition
private Point3d yUpPoint
private Vector3d eyeVec
private Vector3d yUp
private Vector3d zAxis
private Vector3d yAxis
private Vector3d vector
private AxisAngle4d aa
private Transform3D xform
private Transform3D zRotate
boolean constantScale
double scaleFactor
private Transform3D left_xform
private Transform3D right_xform
Transform3D scaleXform
private Vector4d[] im_vec
private Vector4d lvec
boolean orientedTransformDirty
Transform3D[] orientedTransforms
static final double EPSILON
Constructor Detail |
---|
public OrientedShape3DRetained()
Method Detail |
---|
void initAlignmentMode(int mode)
void setAlignmentMode(int mode)
mode
- one of: ROTATE_ABOUT_AXIS or ROTATE_ABOUT_POINTint getAlignmentMode()
void initAlignmentAxis(Vector3f axis)
void initAlignmentAxis(float x, float y, float z)
void setAlignmentAxis(Vector3f axis)
axis
- the new alignment axisvoid setAlignmentAxis(float x, float y, float z)
x
- the x component of the alignment axisy
- the y component of the alignment axisz
- the z component of the alignment axisvoid getAlignmentAxis(Vector3f axis)
axis
- the vector that will contain the alignment axisvoid initRotationPoint(Point3f point)
void initRotationPoint(float x, float y, float z)
void setRotationPoint(Point3f point)
point
- the new rotation pointvoid setRotationPoint(float x, float y, float z)
x
- the x component of the rotation pointy
- the y component of the rotation pointz
- the z component of the rotation pointvoid getRotationPoint(Point3f point)
axis
- the point that will contain the rotation pointvoid setConstantScaleEnable(boolean enable)
boolean getConstantScaleEnable()
void initConstantScaleEnable(boolean cons_scale)
void setScale(double scale)
void initScale(double scale)
double getScale()
void sendChangedMessage(int component, java.lang.Object attr)
void updateImmediateMirrorObject(java.lang.Object[] args)
updateImmediateMirrorObject
in class Shape3DRetained
Transform3D getOrientedTransform(int viewIndex)
void updateOrientedTransform(Canvas3D canvas, int viewIndex)
private boolean projectToPlane(Vector3d projVec, Vector3d planeVec)
void compile(CompileState compState)
SceneGraphObjectRetained
compile
in class Shape3DRetained
void searchGeometryAtoms(UnorderList list)
searchGeometryAtoms
in class Shape3DRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |