|
|||||||||
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.NodeComponentRetained
javax.media.j3d.GeometryRetained
javax.media.j3d.Text3DRetained
class Text3DRetained
Implements Text3D class.
Field Summary | |
---|---|
(package private) int |
alignment
|
(package private) float |
charSpacing
|
(package private) Transform3D[] |
charTransforms
The temporary transforms for this Text3D |
(package private) Transform3D |
drawTransform
|
(package private) Font3D |
font3D
Packaged scope variables needed for implementation |
(package private) GeometryArrayRetained[] |
geometryList
A cached list of geometry arrays for the current settings |
(package private) java.awt.font.GlyphVector[] |
glyphVecs
|
(package private) Point3d |
lower
Bounding box data for this text string. |
(package private) java.util.ArrayList |
newGeometryAtomList
An Array list used for messages |
(package private) int |
numChars
|
(package private) java.util.ArrayList |
oldGeometryAtomList
|
(package private) int |
path
|
(package private) Point3f |
position
|
(package private) java.lang.String |
string
|
(package private) static int |
targetThreads
|
(package private) Point3d |
upper
|
(package private) Transform3D |
vpcToEc
temporary model view matrix for immediate mode only |
Fields inherited from class javax.media.j3d.NodeComponentRetained |
---|
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users |
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 | |
---|---|
Text3DRetained()
|
Method Summary | |
---|---|
(package private) void |
computeBoundingBox()
|
(package private) void |
execute(Canvas3D cv,
RenderAtom ra,
boolean isNonUniformScale,
boolean updateAlpha,
float alpha,
int screen,
boolean ignoreVertexColors)
|
(package private) int |
getAlignment()
Retrieves the text alignment policy for this Text3D NodeComponent object. |
(package private) void |
getBoundingBox(BoundingBox bounds)
Retrieves the 3D bounding box that encloses this Text3D object. |
(package private) float |
getCharacterSpacing()
Retrieves the character spacing used to construct the Text3D string. |
(package private) int |
getClassType()
|
(package private) Font3D |
getFont3D()
Returns the Font3D objects used by this Text3D NodeComponent object. |
(package private) int |
getPath()
Retrieves the node's path field. |
(package private) void |
getPosition(Point3f position)
Copies the node's position field into the supplied
parameter. |
(package private) java.lang.String |
getString()
Copies the character string used in the construction of the Text3D node into the supplied parameter. |
(package private) java.util.ArrayList |
getUniqueSource(java.util.ArrayList shapeList)
|
(package private) boolean |
intersect(Bounds targetBound)
|
(package private) boolean |
intersect(PickShape pickShape,
PickInfo pickInfo,
int flags,
Point3d iPnt,
GeometryRetained geom,
int geomIndex)
|
(package private) boolean |
intersect(Point3d[] pnts)
|
(package private) boolean |
intersect(Transform3D thisToOtherVworld,
GeometryRetained geom)
|
(package private) void |
sendDataChangedMessage()
|
(package private) void |
sendTransformChangedMessage()
|
(package private) void |
setAlignment(int alignment)
Sets the text alignment policy for this Text3D NodeComponent object. |
(package private) void |
setCharacterSpacing(float characterSpacing)
Sets the character spacing used hwne constructing the Text3D string. |
(package private) void |
setFont3D(Font3D font3d)
Sets the Font3D object used by this Text3D NodeComponent object. |
(package private) void |
setLive(boolean inBackgroundGroup,
int refCount)
This method is called when the SceneGraph becomes live. |
(package private) void |
setModelViewMatrix(Transform3D vpcToEc,
Transform3D drawTransform)
|
(package private) void |
setPath(int path)
Sets the node's path field. |
(package private) void |
setPosition(Point3f position)
Sets the node's position field to the supplied
parameter. |
(package private) void |
setString(java.lang.String string)
Copies the character string from the supplied parameter into Tex3D node. |
(package private) void |
update()
|
(package private) void |
updateCharacterData()
Update internal reprsentation of tranform matrices and geometry. |
(package private) void |
updateTransformData()
Update per character transform based on Text3D location, per character size and path. |
Methods inherited from class javax.media.j3d.GeometryRetained |
---|
addUser, canBeInDisplayList, computeCentroid, decrComputeGeoBounds, doSetLive, getVertexFormat, incrComputeGeoBounds, intersect, intersect, isEquivalenceClass, removeUser, storeInterestData, updateObject |
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addAMirrorUser, addUser, clearLive, clone, copyMirrorUsers, createMirrorObject, decRefCnt, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, initMirrorObject, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, updateMirrorObject |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, handleFrequencyChange, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, 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 |
---|
Font3D font3D
java.lang.String string
Point3f position
int alignment
int path
float charSpacing
int numChars
static final int targetThreads
Transform3D[] charTransforms
GeometryArrayRetained[] geometryList
java.awt.font.GlyphVector[] glyphVecs
Point3d lower
Point3d upper
java.util.ArrayList newGeometryAtomList
java.util.ArrayList oldGeometryAtomList
Transform3D vpcToEc
Transform3D drawTransform
Constructor Detail |
---|
Text3DRetained()
Method Detail |
---|
void computeBoundingBox()
computeBoundingBox
in class GeometryRetained
void update()
update
in class GeometryRetained
final Font3D getFont3D()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal void setFont3D(Font3D font3d)
font3d
- the Font3D object to associate with this Text3D node.
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal java.lang.String getString()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal void setString(java.lang.String string)
string
- the String object to recieve the Text3D node's string.
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal void getPosition(Point3f position)
position
field into the supplied
parameter. The position
is used to determine the
initial placement of the Text3D string. The position, combined with
the path and alignment control how the text is displayed.
position
- the point to position the text.
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphgetAlignment()
,
getPath()
final void setPosition(Point3f position)
position
field to the supplied
parameter. The position
is used to determine the
initial placement of the Text3D string. The position, combined with
the path and alignment control how the text is displayed.
position
- the point to position the text.
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphgetAlignment()
,
getPath()
final int getAlignment()
alignment
is used to specify how
glyphs in the string are placed in relation to the
position
field. Valid values for this field
are:
position
point.
position
point.
position
point.
ALIGN_FIRST
.
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphgetPosition(javax.vecmath.Point3f)
final void setAlignment(int alignment)
alignment
is used to specify how
glyphs in the string are placed in relation to the
position
field. Valid values for this field
are:
position
point.
position
point.
position
point.
ALIGN_FIRST
.
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphgetPosition(javax.vecmath.Point3f)
final int getPath()
path
field. This field
is used to specify how succeeding
glyphs in the string are placed in relation to the previous glyph.
Valid values for this field are:
PATH_RIGHT
.
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal void setPath(int path)
path
field. This field
is used to specify how succeeding
glyphs in the string are placed in relation to the previous glyph.
Valid values for this field are:
PATH_RIGHT
.
path
- the value to set the path to.
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal void getBoundingBox(BoundingBox bounds)
bounds
- the object to copy the bounding information to.
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphBoundingBox
final float getCharacterSpacing()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal void setCharacterSpacing(float characterSpacing)
characterSpacing
- the new character spacing value
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal void sendDataChangedMessage()
final void sendTransformChangedMessage()
final void updateCharacterData()
final void updateTransformData()
void setLive(boolean inBackgroundGroup, int refCount)
setLive
in class GeometryRetained
boolean intersect(PickShape pickShape, PickInfo pickInfo, int flags, Point3d iPnt, GeometryRetained geom, int geomIndex)
intersect
in class GeometryRetained
boolean intersect(Point3d[] pnts)
intersect
in class GeometryRetained
boolean intersect(Transform3D thisToOtherVworld, GeometryRetained geom)
intersect
in class GeometryRetained
boolean intersect(Bounds targetBound)
intersect
in class GeometryRetained
void setModelViewMatrix(Transform3D vpcToEc, Transform3D drawTransform)
void execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors)
execute
in class GeometryRetained
int getClassType()
getClassType
in class GeometryRetained
java.util.ArrayList getUniqueSource(java.util.ArrayList shapeList)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |