Rendering node that displays annotated isolines. More...
#include <MeshVizXLM/mapping/nodes/MoMeshAnnotatedIsoline.h>
Classes | |
class | ChordalDistance |
Public Types | |
enum | AnnotPath { TANGENTIAL_PATH, HORIZONTAL_PATH, VERTICAL_PATH } |
Public Member Functions | |
virtual SoType | getTypeId () const |
MoMeshAnnotatedIsoline () | |
void | setExtractorCallback (MiExtractorCallback *extractorCallback) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFBool | isVisible |
SoSFBool | isText2D |
SoSFEnum | path |
SoSFVec3f | upVector |
SoSFFloat | gap |
SoSFFloat | fontSize |
SoSFColor | color |
SoSFBool | isBackground |
SoSFColor | backgroundColor |
SoSFColor | borderColor |
This class is similar to MoMeshIsoline except that isolines can be annotated with their isovalue.
Only major contour lines defined by the firstMajor and majorPeriod inherited fields can be annotated. The scalar set used to extract the isolines is defined by the inherited isoScalarSetId field. This is an index into the list of scalar sets existing in the traversal state (see the MoScalarSetxxx nodes). This scalar set must be defined per node to be valid.
The isolines can be colored using a scalar set defined in the colorScalarSetId inherited field. To disable coloring set this field to -1.
colorScalarSetId | 0 |
parallel | TRUE |
isovalues | 0.0 |
isoScalarSetId | 0 |
majorPeriod | 3 |
firstMajor | 0 |
majorLinePattern | 0xFFFF |
minorLinePattern | 0xFFFF |
isVisible | TRUE |
isText2D | FALSE |
path | TANGENTIAL_PATH |
upVector | SbVec3f(0,1,0) |
gap | 0.0 |
fontSize | 0.01 |
color | SbColor(1,1,1) |
isBackground | FALSE |
backgroundColor | SbColor(0.3,0.3,0.3) |
borderColor | SbColor(1,1,1) |
MoMeshIsoline, MiIsolineExtractIj, MiIsolineExtractUnstructured, MoLineDetail
MoMeshAnnotatedIsoline::MoMeshAnnotatedIsoline | ( | ) |
Constructor.
static SoType MoMeshAnnotatedIsoline::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoMeshIsoline.
virtual SoType MoMeshAnnotatedIsoline::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoMeshIsoline.
void MoMeshAnnotatedIsoline::setExtractorCallback | ( | MiExtractorCallback * | extractorCallback | ) | [virtual] |
Set the extraction callback which will be called each time an extraction is performed.
Reimplemented from MoMeshRepresentation.
Color used for the annotation background Default is gray = SbColor(0.3,0.3,0.3).
Color used for the annotation background border.
Default is white = SbColor(1,1,1)
Color used for the annotation text Default is white = SbColor(1,1,1).
Font size of annotation text in mesh coordinates units.
When isText2D = FALSE, the real font size is a factor of this value and of the size of the mesh. When isText2D = TRUE, the font size is given in points (same as SoText2D). Default is 0.01
Curvilinear distance between two annotations of the same contour line.
Default is 0 (a single annotation in the middle of the line).
Defines if the annotations are framed by a background.
Default is FALSE.
If TRUE, draw text using a SoText2D primitive (bitmapped text).
Otherwise use a SoAnnoText3 (polygonal text). Default is FALSE.
Contour line annotation visibility.
Default is TRUE.
Annotation path.
Use enum AnnotPath. Default is TANGENTIAL_PATH.
Annotation text up vector.
This vector is used as the vertical axis of all annotations. Default is (0,1,0).