Class MoMeshRepresentation
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.meshvizxlm.mapping.nodes.MoActionNode
-
- com.openinventor.meshvizxlm.mapping.nodes.MoMeshBaseRepresentation
-
- com.openinventor.meshvizxlm.mapping.nodes.MoMeshRepresentation
-
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
MoMeshCellShape
,MoMeshCylinderSlice
,MoMeshIsosurface
,MoMeshOutline
,MoMeshPlaneSlice
,MoMeshSkin
,MoMeshSlab
,MoMeshSphereSlice
,MoMeshStreamline
,MoMeshSurface
,MoMeshVector
public abstract class MoMeshRepresentation extends MoMeshBaseRepresentation
Abstract base class for all MeshViz XLM representation nodes containing an extractor.The basic representations and the meshes they apply to are:
- Volume mesh
- Surface mesh
- Line mesh
All surface representations, for instance
MoMeshIsosurface
andMoMeshSkin
, are using an innerSoPolygonOffset
node to allow line representations, such asMoMeshOutline
, on top without artifacts. HoweverSoPolygonOffset
can introduce other artifacts on surfaces when the two-sided lighting mode is active. Thus, to disable thisSoPolygonOffset
node, set theSoPreferences.MESHVIZ_POLYGON_OFFSET
environment variable to false (SeeSoPreferences
).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFInt32
colorScalarSetId
Field representing the scalar set node to be used to map colors onto the representation.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAction(SoAction action)
void
setExtractorCallback(MiExtractorCallback extractorCallback)
Set the extraction callback which will be called each time an extraction is performed.-
Methods inherited from class com.openinventor.meshvizxlm.mapping.nodes.MoMeshBaseRepresentation
affectsState, write
-
Methods inherited from class com.openinventor.meshvizxlm.mapping.nodes.MoActionNode
callback, distribute, getBoundingBox, getMatrix, getPrimitiveCount, getRenderEngineMode, GLRender, handleEvent, pick, rayPick
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touch
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
colorScalarSetId
public SoSFInt32 colorScalarSetId
Field representing the scalar set node to be used to map colors onto the representation. During traversal of the scene graph, scalar set nodes are accumulated in a list of scalar sets.colorScalarSetId
is an index into this list. The default value is 0 which means that the first scalar set stored in the scene graph is used. Setting this value to -1 disables color mapping.
-
-
Method Detail
-
setExtractorCallback
public void setExtractorCallback(MiExtractorCallback extractorCallback)
Set the extraction callback which will be called each time an extraction is performed.- Parameters:
extractorCallback
- the extraction callback
-
doAction
public void doAction(SoAction action)
- Overrides:
doAction
in classMoMeshBaseRepresentation
-
-