Property node that defines the material of surface representations. More...
#include <MeshVizXLM/mapping/nodes/MoMaterial.h>
Public Types | |
enum | ColoringType { COLOR, CONTOURING } |
Public Member Functions | |
virtual SoType | getTypeId () const |
MoMaterial () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFEnum | faceColoring |
SoSFColor | faceColor |
SoSFEnum | lineColoring |
SoSFColor | lineColor |
SoSFEnum | pointColoring |
SoSFColor | pointColor |
SoSFFloat | transparency |
SoSFBool | enhancedColoring |
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.
When the enhanced coloring method is enabled (enhancedColoring field set to TRUE), polygons are colored using a technique allowing to display more accurately the color gradient than what can be achieved normally with OpenGL.
faceColoring | CONTOURING |
faceColor | (1,1,1) |
lineColoring | CONTOURING |
lineColor | (1,0,0) |
pointColoring | CONTOURING |
pointColor | (0,1,0) |
transparency | (0.0) |
enhancedColoring | FALSE |
MoDrawStyle for turning on display of facets, edges and points.
PEBIMeshViz, QuadraticWheelHexa27, Turbine, CellShapeConnectedFromSkin, ClipLine, ClipLineOnSkin, ElevatedPlaneSlice, EnhancedColoring, FenceSlice, FenceSliceSelection, Isoline, Legend, MaterialAndDrawStyle, Polyhedron, QuadraticHexa20, QuadraticHexa27, QuadraticSkin, QuadraticTetra10, QuadraticTube, QuadraticWedge18, QuadraticWheelHexa20, QuadraticWheelTetra10, QuadraticWheelWedge18, SampleSurface, SphereCylinderPlaneSlices, TutorialPicking1, TutorialPicking2, TutorialPicking3, TutorialPicking4, TutorialPicking5, TutorialPicking6, TutorialPicking7, TutorialPicking8, TutorialPicking9, WheelHexa8
MoMaterial::MoMaterial | ( | ) |
Constructor.
static SoType MoMaterial::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoActionNode.
virtual SoType MoMaterial::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoActionNode.
When set to TRUE, polygons with more than three points are colored using a technique that more accurately displays the color gradient.
The default interpolation (FALSE) provided by OpenGL is done by splitting the polygons into triangles and coloring each triangle independently, ignoring information about the other nodes of the polygon.
On the following image, you can see the difference between the coloring obtained with this flag set (left) and not set (right).
|
Uniform color used for faces when faceColoring is set to COLOR.
Default is white (1,1,1).
The coloring method for faces.
Use enum ColoringType. Default is CONTOURING.
Uniform color used for lines and edges when lineColoring is set to COLOR.
Default is red (1,0,0).
The coloring method for lines.
Use enum ColoringType. Default is CONTOURING.
Uniform color used for points when pointColoring is set to COLOR.
Default is green (0,1,0).
The coloring method for points.
Default is CONTOURING.
Transparency value used to display surfaces.
1 means fully transparent, 0 opaque (default).