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
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 and
MoMeshSkin, are using an inner SoPolygonOffset node to allow
line representations, such as MoMeshOutline, on top without
artifacts. However SoPolygonOffset can introduce other artifacts on
surfaces when the two-sided lighting mode is active. Thus, to disable this
SoPolygonOffset node, set the
SoPreferences.MESHVIZ_POLYGON_OFFSET
environment variable to false (See
SoPreferences).
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionField 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
Modifier and TypeMethodDescriptionvoidvoidsetExtractorCallback(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, writeMethods inherited from class com.openinventor.meshvizxlm.mapping.nodes.MoActionNode
callback, distribute, getBoundingBox, getMatrix, getPrimitiveCount, getRenderEngineMode, GLRender, handleEvent, pick, rayPickMethods inherited from class com.openinventor.inventor.nodes.SoNode
copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touchMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
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.colorScalarSetIdis 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 Details
-
setExtractorCallback
Set the extraction callback which will be called each time an extraction is performed.- Parameters:
extractorCallback- the extraction callback
-
doAction
- Overrides:
doActionin classMoMeshBaseRepresentation
-