|
|||||||||
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.RenderMolecule
class RenderMolecule
The RenderMolecule manages a collection of RenderAtoms.
Field Summary | |
---|---|
(package private) RenderAtom |
addRAs
|
(package private) static int |
ALL_DIRTY_BITS
|
(package private) float |
alpha
The cached TransparencyAttributes transparency value. |
(package private) java.lang.Object |
appHandle
|
(package private) float |
blue
|
(package private) static int |
BOUNDS_RECOMPUTE_UPDATE
|
(package private) VertexArrayRenderMethod |
cachedVertexArrayRenderMethod
|
(package private) int |
closestSwitchIndex
|
(package private) SwitchRetained |
closestSwitchParent
|
(package private) ColoringAttributesRetained |
coloringAttributes
|
(package private) static int |
COLORINGATTRS_DIRTY
|
(package private) static int |
COMPRESSED
|
(package private) static int |
COMPRESSED_MOLECULE
|
(package private) float |
dBlue
|
(package private) ColoringAttributesRetained |
definingColoringAttributes
The ColoringAttribute reference for this RenderMolecule |
(package private) LineAttributesRetained |
definingLineAttributes
The LineAttributes for this RenderMolecule |
(package private) MaterialRetained |
definingMaterial
The Material reference for this RenderMolecule |
(package private) PointAttributesRetained |
definingPointAttributes
The PointAttributes for this RenderMolecule |
(package private) PolygonAttributesRetained |
definingPolygonAttributes
The PolygonAttributes for this RenderMolecule |
(package private) TransparencyAttributesRetained |
definingTransparency
The Transparency reference for this RenderMolecule |
(package private) float |
dGreen
|
(package private) int |
dirtyAttrsAcrossRms
bit mask of all attr fields that are equivalent across renderMolecules |
(package private) int |
displayListId
|
(package private) java.lang.Integer |
displayListIdObj
|
(package private) static int |
DLIST_MOLECULE
|
(package private) boolean |
doInfinite
|
(package private) float |
dRed
Cached diffuse color value |
(package private) boolean |
enableLighting
A boolean indicating whether or not lighting should be on. |
(package private) int |
geometryType
The geometry type for this RenderMolecule |
(package private) float |
green
|
(package private) static int |
IN_DIRTY_RENDERMOLECULE_LIST
|
(package private) Transform3D[] |
infLocalToVworld
|
(package private) boolean |
inOrderedGroup
|
(package private) boolean |
isNonUniformScale
specify whether scale is nonuniform |
(package private) boolean |
isOpaqueOrInOG
|
(package private) boolean |
isQuadGeometryArray
|
(package private) boolean |
isTriGeometryArray
|
(package private) static int |
LINE
|
(package private) boolean |
lineAA
|
(package private) LineAttributesRetained |
lineAttributes
|
(package private) static int |
LINEATTRS_DIRTY
|
(package private) Locale |
locale
|
(package private) static int |
LOCALE_CHANGED
|
(package private) static int |
LOCALE_TRANSLATION
|
(package private) Transform3D[] |
localeLocalToVworld
|
(package private) Vector3d |
localeTranslation
|
(package private) Transform3D[] |
localToVworld
The localToVworld for this RenderMolecule |
(package private) int[] |
localToVworldIndex
|
(package private) MaterialRetained |
material
|
(package private) static int |
MATERIAL_DIRTY
|
(package private) static int |
NEW_RENDERATOMS_UPDATE
|
(package private) RenderMolecule |
next
The references to the next and previous RenderMolecule in the list. |
(package private) RenderMolecule |
nextMap
If this is end of the linked list for this xform, then this field is non-null, if there is a map after this |
(package private) boolean |
normalPresent
|
(package private) int |
numEditingRenderAtoms
number of render atoms, used during the renderBin update time |
(package private) int |
numRenderAtoms
number of renderAtoms to be rendered in this RenderMolecule |
(package private) static int |
ON_UPDATE_CHECK_LIST
|
(package private) int |
onUpdateList
|
(package private) static int |
ORIENTEDSHAPE3D_MOLECULE
|
(package private) static int |
POINT
Values for the geometryType field |
(package private) boolean |
pointAA
|
(package private) PointAttributesRetained |
pointAttributes
|
(package private) static int |
POINTATTRS_DIRTY
|
(package private) PolygonAttributesRetained |
polygonAttributes
|
(package private) static int |
POLYGONATTRS_DIRTY
|
(package private) int |
polygonMode
Cached values for polygonMode, line antialiasing, and point antialiasing |
(package private) RenderMolecule |
prev
|
(package private) RenderMolecule |
prevMap
|
(package private) boolean |
primaryChanged
|
(package private) int |
primaryMoleculeType
A boolean indicating whether or not this molecule rendered Text3D |
(package private) RenderAtomListInfo |
primaryRenderAtomList
The list of RenderAtoms in this RenderMolecule that are not using vertex arrays. |
(package private) RenderMethod |
primaryRenderMethod
The primary renderMethod object for this RenderMolecule this is either a Text3D, display list, or compressed geometry renderer. |
(package private) static int |
RASTER
|
(package private) static int |
RASTER_MOLECULE
|
(package private) float |
red
The cached ColoringAttributes color value. |
(package private) static int |
REMOVE_RENDER_ATOM_IN_RM_LIST
|
(package private) RenderAtom |
removeRAs
|
(package private) static int |
RENDER_MOLECULE_LIST
|
(package private) RenderBin |
renderBin
The RenderBino for this molecule |
(package private) static int |
RM_COMPONENTS
|
(package private) RenderMethod |
secondaryRenderMethod
The secondary renderMethod object for this RenderMolecule this is used for geometry that is shared |
(package private) static int |
SEPARATE_DLIST_PER_RINFO_MOLECULE
|
(package private) RenderAtomListInfo |
separateDlistRenderAtomList
The list of RenderAtoms in this RenderMolecule that are using separte dlist . |
(package private) boolean |
soleUser
If the any of the node component of the appearance in RM will be changed frequently, then confine it to a separate bin |
(package private) int |
soleUserCompDirty
|
(package private) static int |
SURFACE
|
(package private) int |
texCoordSetMapLen
The texCoordSetMap length for this RenderMolecule. |
(package private) static int |
TEXT3D_MOLECULE
|
(package private) TextureBin |
textureBin
The TextureBin that this RenderMolecule resides |
(package private) static int |
TOTAL_INDEXED_UNORDER_SET_TYPES
|
(package private) Transform3D[] |
trans
Transform3D - point to the right one based on bg or not |
(package private) TransparencyAttributesRetained |
transparency
|
(package private) static int |
TRANSPARENCY_DIRTY
|
(package private) static int |
UPDATE_BACKGROUND_TRANSFORM
|
(package private) boolean |
useAlpha
|
(package private) RenderAtomListInfo |
vertexArrayRenderAtomList
The list of RenderAtoms in this RenderMolecule that are using vertex arrays. |
(package private) int |
vertexFormat
The vertex format for this RenderMolecule. |
(package private) BoundingBox |
vwcBounds
This BoundingBox is used for View Frustum culling on the primary list |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
RenderMolecule(GeometryAtom ga,
PolygonAttributesRetained polygonAttributes,
LineAttributesRetained lineAttributes,
PointAttributesRetained pointAttributes,
MaterialRetained material,
ColoringAttributesRetained coloringAttributes,
TransparencyAttributesRetained transparency,
RenderingAttributesRetained renderAttrs,
TextureUnitStateRetained[] texUnits,
Transform3D[] transform,
int[] transformIndex,
RenderBin rb)
|
Method Summary | |
---|---|
(package private) void |
addRemoveTransparentObject(RenderBin renderBin,
boolean add)
|
private void |
addRemoveTransparentObject(RenderBin renderBin,
boolean add,
RenderAtomListInfo rinfo)
|
(package private) void |
addRenderAtom(RenderAtom renderAtom,
RenderBin rb)
Adds the given RenderAtom to this RenderMolecule. |
(package private) boolean |
blendOn()
|
(package private) boolean |
canBeInDisplayList(GeometryRetained geo,
GeometryAtom ga)
|
(package private) void |
checkEquivalenceWithBothNeighbors(int dirtyBits)
|
(package private) void |
checkEquivalenceWithLeftNeighbor(RenderMolecule rm,
int dirtyBits)
|
(package private) boolean |
coloringEquivalent(RenderMolecule rm,
boolean reload_color)
|
(package private) boolean |
equals(RenderAtom ra,
PolygonAttributesRetained polygonAttributes,
LineAttributesRetained lineAttributes,
PointAttributesRetained pointAttributes,
MaterialRetained material,
ColoringAttributesRetained coloringAttributes,
TransparencyAttributesRetained transparency,
Transform3D[] transform)
This tests if the given attributes matches this TextureBin |
(package private) void |
evalAlphaUsage(RenderingAttributesRetained renderAttrs,
TextureUnitStateRetained[] texUnits)
|
(package private) void |
evalMaterialCachedState()
|
(package private) int |
evalRinfoGroupType(RenderAtomListInfo r)
|
(package private) boolean |
geoNotAltered(GeometryArrayRetained geo)
|
(package private) VirtualUniverse |
getVirtualUniverse()
|
(package private) void |
handleLocaleChange()
|
(package private) void |
handleMaterialEquivalence()
|
(package private) boolean |
isOpaque()
|
(package private) boolean |
isSwitchOn()
|
(package private) void |
markBitsAsDirty(int leftBits,
int rightBits)
|
(package private) boolean |
materialEquivalent(RenderMolecule rm,
boolean reloadColor)
|
(package private) void |
recalcBounds()
Recalculates the vwcBounds for a RenderMolecule |
(package private) void |
reEvaluateEquivalence()
|
(package private) void |
releaseAllPrimaryDisplayListID()
|
(package private) void |
releaseAllPrimaryDisplayListResources(Canvas3D cv,
Context ctx)
|
(package private) boolean |
reloadColor(RenderMolecule rm)
|
(package private) void |
removeRenderAtom(RenderAtom r)
Removes the given RenderAtom from this RenderMolecule. |
(package private) boolean |
render(Canvas3D cv,
int pass,
int dirtyBits)
Renders this RenderMolecule |
(package private) void |
reset(GeometryAtom ga,
PolygonAttributesRetained polygonAttributes,
LineAttributesRetained lineAttributes,
PointAttributesRetained pointAttributes,
MaterialRetained material,
ColoringAttributesRetained coloringAttributes,
TransparencyAttributesRetained transparency,
RenderingAttributesRetained renderAttrs,
TextureUnitStateRetained[] texUnits,
Transform3D[] transform,
int[] transformIndex)
|
(package private) void |
translate()
|
(package private) boolean |
transparencyEquivalent(RenderMolecule rm)
|
(package private) void |
transparentSortRender(Canvas3D cv,
int pass,
TransparentRenderingInfo tinfo)
|
(package private) void |
updateAllPrimaryDisplayLists(Canvas3D cv)
|
(package private) void |
updateAttributes(Canvas3D cv,
int dirtyBits)
|
(package private) void |
updateDisplayList(Canvas3D cv)
|
(package private) boolean |
updateNodeComponent()
|
void |
updateNodeComponentCheck()
updateNodeComponentCheck is called for each soleUser RenderMolecule into which new renderAtom has been added. |
void |
updateObject()
The actual update function. |
void |
updateRemoveRenderAtoms()
|
(package private) void |
updateTransparencyAttributes(Canvas3D cv)
This render method is used to render the transparency attributes. |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int REMOVE_RENDER_ATOM_IN_RM_LIST
static final int RENDER_MOLECULE_LIST
static final int TOTAL_INDEXED_UNORDER_SET_TYPES
static final int POINT
static final int LINE
static final int SURFACE
static final int RASTER
static final int COMPRESSED
static int RM_COMPONENTS
PolygonAttributesRetained polygonAttributes
LineAttributesRetained lineAttributes
PointAttributesRetained pointAttributes
MaterialRetained material
ColoringAttributesRetained coloringAttributes
TransparencyAttributesRetained transparency
boolean normalPresent
static final int POINTATTRS_DIRTY
static final int LINEATTRS_DIRTY
static final int POLYGONATTRS_DIRTY
static final int MATERIAL_DIRTY
static final int TRANSPARENCY_DIRTY
static final int COLORINGATTRS_DIRTY
static final int ALL_DIRTY_BITS
int dirtyAttrsAcrossRms
int soleUserCompDirty
PolygonAttributesRetained definingPolygonAttributes
LineAttributesRetained definingLineAttributes
PointAttributesRetained definingPointAttributes
TextureBin textureBin
Transform3D[] localToVworld
int[] localToVworldIndex
MaterialRetained definingMaterial
ColoringAttributesRetained definingColoringAttributes
TransparencyAttributesRetained definingTransparency
Transform3D[] trans
boolean isNonUniformScale
int numRenderAtoms
int numEditingRenderAtoms
RenderAtom addRAs
RenderAtom removeRAs
float red
float green
float blue
float dRed
float dGreen
float dBlue
float alpha
int geometryType
boolean enableLighting
int primaryMoleculeType
static int COMPRESSED_MOLECULE
static int TEXT3D_MOLECULE
static int DLIST_MOLECULE
static int RASTER_MOLECULE
static int ORIENTEDSHAPE3D_MOLECULE
static int SEPARATE_DLIST_PER_RINFO_MOLECULE
int polygonMode
boolean lineAA
boolean pointAA
int vertexFormat
int texCoordSetMapLen
RenderMethod primaryRenderMethod
RenderMethod secondaryRenderMethod
RenderBin renderBin
RenderMolecule next
RenderMolecule prev
RenderAtomListInfo primaryRenderAtomList
RenderAtomListInfo separateDlistRenderAtomList
RenderAtomListInfo vertexArrayRenderAtomList
BoundingBox vwcBounds
RenderMolecule nextMap
RenderMolecule prevMap
boolean soleUser
java.lang.Object appHandle
VertexArrayRenderMethod cachedVertexArrayRenderMethod
boolean isQuadGeometryArray
boolean isTriGeometryArray
int displayListId
java.lang.Integer displayListIdObj
int onUpdateList
static int NEW_RENDERATOMS_UPDATE
static int BOUNDS_RECOMPUTE_UPDATE
static int LOCALE_TRANSLATION
static int UPDATE_BACKGROUND_TRANSFORM
static int IN_DIRTY_RENDERMOLECULE_LIST
static int LOCALE_CHANGED
static int ON_UPDATE_CHECK_LIST
boolean doInfinite
Transform3D[] infLocalToVworld
boolean useAlpha
Locale locale
Transform3D[] localeLocalToVworld
Vector3d localeTranslation
boolean primaryChanged
boolean isOpaqueOrInOG
boolean inOrderedGroup
SwitchRetained closestSwitchParent
int closestSwitchIndex
Constructor Detail |
---|
RenderMolecule(GeometryAtom ga, PolygonAttributesRetained polygonAttributes, LineAttributesRetained lineAttributes, PointAttributesRetained pointAttributes, MaterialRetained material, ColoringAttributesRetained coloringAttributes, TransparencyAttributesRetained transparency, RenderingAttributesRetained renderAttrs, TextureUnitStateRetained[] texUnits, Transform3D[] transform, int[] transformIndex, RenderBin rb)
Method Detail |
---|
void reset(GeometryAtom ga, PolygonAttributesRetained polygonAttributes, LineAttributesRetained lineAttributes, PointAttributesRetained pointAttributes, MaterialRetained material, ColoringAttributesRetained coloringAttributes, TransparencyAttributesRetained transparency, RenderingAttributesRetained renderAttrs, TextureUnitStateRetained[] texUnits, Transform3D[] transform, int[] transformIndex)
boolean equals(RenderAtom ra, PolygonAttributesRetained polygonAttributes, LineAttributesRetained lineAttributes, PointAttributesRetained pointAttributes, MaterialRetained material, ColoringAttributesRetained coloringAttributes, TransparencyAttributesRetained transparency, Transform3D[] transform)
public void updateRemoveRenderAtoms()
public void updateObject()
ObjectUpdate
updateObject
in interface ObjectUpdate
boolean canBeInDisplayList(GeometryRetained geo, GeometryAtom ga)
final boolean geoNotAltered(GeometryArrayRetained geo)
int evalRinfoGroupType(RenderAtomListInfo r)
void addRenderAtom(RenderAtom renderAtom, RenderBin rb)
void removeRenderAtom(RenderAtom r)
void recalcBounds()
void evalAlphaUsage(RenderingAttributesRetained renderAttrs, TextureUnitStateRetained[] texUnits)
final boolean isSwitchOn()
boolean render(Canvas3D cv, int pass, int dirtyBits)
void updateAttributes(Canvas3D cv, int dirtyBits)
void transparentSortRender(Canvas3D cv, int pass, TransparentRenderingInfo tinfo)
void updateTransparencyAttributes(Canvas3D cv)
void updateDisplayList(Canvas3D cv)
void releaseAllPrimaryDisplayListID()
void releaseAllPrimaryDisplayListResources(Canvas3D cv, Context ctx)
void updateAllPrimaryDisplayLists(Canvas3D cv)
void checkEquivalenceWithBothNeighbors(int dirtyBits)
boolean reloadColor(RenderMolecule rm)
void checkEquivalenceWithLeftNeighbor(RenderMolecule rm, int dirtyBits)
void translate()
boolean isOpaque()
boolean updateNodeComponent()
void addRemoveTransparentObject(RenderBin renderBin, boolean add)
private void addRemoveTransparentObject(RenderBin renderBin, boolean add, RenderAtomListInfo rinfo)
void evalMaterialCachedState()
void markBitsAsDirty(int leftBits, int rightBits)
void handleMaterialEquivalence()
void reEvaluateEquivalence()
boolean materialEquivalent(RenderMolecule rm, boolean reloadColor)
boolean coloringEquivalent(RenderMolecule rm, boolean reload_color)
boolean transparencyEquivalent(RenderMolecule rm)
boolean blendOn()
VirtualUniverse getVirtualUniverse()
getVirtualUniverse
in class IndexedObject
void handleLocaleChange()
public void updateNodeComponentCheck()
updateNodeComponentCheck
in interface NodeComponentUpdate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |