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
public class MoMaterial extends MoActionNode
Property node that defines the material of surface representations.This node specifies the coloring to be used in subsequent nodes inheriting from
MoMeshRepresentationand 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:
MoMaterialElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMoMaterial.ColoringTypeColor Coloring type-
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 SoSFColorfaceColorUniform color used for faces whenfaceColoringis set toCOLOR.SoSFEnum<MoMaterial.ColoringType>faceColoringThe coloring method for faces.SoSFColorlineColorUniform color used for lines and edges whenlineColoringis set toCOLOR.SoSFEnum<MoMaterial.ColoringType>lineColoringThe coloring method for lines.SoSFColorpointColorUniform color used for points whenpointColoringis set toCOLOR.SoSFEnum<MoMaterial.ColoringType>pointColoringThe coloring method for points.SoSFFloattransparencyTransparency value used to display surfaces.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description MoMaterial()Constructs a property node with color and coloring options set to default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoAction(SoAction action)-
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
affectsState, copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touch, write
-
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
-
faceColoring
public SoSFEnum<MoMaterial.ColoringType> faceColoring
The coloring method for faces. The default value isCONTOURING.
-
faceColor
public SoSFColor faceColor
Uniform color used for faces whenfaceColoringis set toCOLOR. The default value is white:(1,1,1).
-
lineColoring
public SoSFEnum<MoMaterial.ColoringType> lineColoring
The coloring method for lines. The default value isCONTOURING.
-
lineColor
public SoSFColor lineColor
Uniform color used for lines and edges whenlineColoringis set toCOLOR. The default value is red:(1,0,0).
-
pointColoring
public SoSFEnum<MoMaterial.ColoringType> pointColoring
The coloring method for points. The default value isCONTOURING.
-
pointColor
public SoSFColor pointColor
Uniform color used for points whenpointColoringis set toCOLOR. The default value is green:(0,1,0).
-
transparency
public SoSFFloat transparency
Transparency value used to display surfaces. 1 means fully transparent, 0 opaque. The default value is 0.
-
-