MoMeshAnnotatedIsoline Class Reference
[Representations]

MeshViz Rendering node that displays annotated isolines. More...

#include <MeshVizXLM/mapping/nodes/MoMeshAnnotatedIsoline.h>

Inheritance diagram for MoMeshAnnotatedIsoline:
MoMeshIsoline MoMeshRepresentation MoMeshBaseRepresentation MoActionNode SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

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

Detailed Description

MeshViz Rendering node that displays annotated isolines.

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.

FILE FORMAT/DEFAULT

SEE ALSO

MoMeshIsoline, MiIsolineExtractIj, MiIsolineExtractUnstructured, MoLineDetail

See related examples:

Isoline


Member Enumeration Documentation

Path of annotation text.

Enumerator:
TANGENTIAL_PATH 

Annotations are tangential to the contour lines.

HORIZONTAL_PATH 

Annotations are horizontal.

VERTICAL_PATH 

Annotations are vertical.


Constructor & Destructor Documentation

MoMeshAnnotatedIsoline::MoMeshAnnotatedIsoline (  ) 

Constructor.


Member Function Documentation

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.


Member Data Documentation

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.

Note:
When isText2D = TRUE , isBackground has no effect.

If TRUE, draw text using a SoText2D primitive (bitmapped text).

Otherwise use a SoAnnoText3 (polygonal text). Default is FALSE.

Note:
2D text cannot have a background

Contour line annotation visibility.

Default is TRUE.

Annotation path.

  • TANGENTIAL_PATH, annotations are tangential to the contour lines.
  • HORIZONTAL_PATH, annotations are horizontal.
  • VERTICAL_PATH, annotations are vertical.

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).


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/