Class MoMaterial
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.MoMaterial
- All Implemented Interfaces:
SafeDisposable
Property node that defines the material of surface representations.
This node specifies the coloring to be used in subsequent nodes inheriting
from MoMeshRepresentation and defining a surface.
Specifically the face, edge and point coloring methods which can be uniform
or contouring:
- uniform color means that all entities are drawn using the face, line or edge color
- contouring means that the rendering uses the color mapping defined by a
scalar set and a color mapping function (see
MoColorMapping) to display color contours
- See Also:
-
Nested Class Summary
Nested ClassesNested 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 TypeFieldDescriptionUniform color used for faces whenfaceColoringis set toCOLOR.The coloring method for faces.Uniform color used for lines and edges whenlineColoringis set toCOLOR.The coloring method for lines.Uniform color used for points whenpointColoringis set toCOLOR.The coloring method for points.Transparency value used to display surfaces.Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a property node with color and coloring options set to default values. -
Method Summary
Methods 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
affectsState, copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touch, writeMethods 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
-
faceColoring
The coloring method for faces. The default value isCONTOURING. -
faceColor
Uniform color used for faces whenfaceColoringis set toCOLOR. The default value is white:(1,1,1). -
lineColoring
The coloring method for lines. The default value isCONTOURING. -
lineColor
Uniform color used for lines and edges whenlineColoringis set toCOLOR. The default value is red:(1,0,0). -
pointColoring
The coloring method for points. The default value isCONTOURING. -
pointColor
Uniform color used for points whenpointColoringis set toCOLOR. The default value is green:(0,1,0). -
transparency
Transparency value used to display surfaces. 1 means fully transparent, 0 opaque. The default value is 0.
-
-
Constructor Details
-
MoMaterial
public MoMaterial()Constructs a property node with color and coloring options set to default values.-
faceColoring = CONTOURING -
faceColor= white -
lineColoring = CONTOURING -
lineColor= red -
pointColoring = CONTOURING -
pointColor= green -
transparency= 0
-
-
-
Method Details