Version: 9.12.0
SMESH_NodeLabelActor Class Reference

#include <SMESH_NodeLabelActor.h>

Inheritance diagram for SMESH_NodeLabelActor:

Public Types

enum  EReperesent {
  ePoint , eWireframe , eSurface , eInsideframe ,
  eNoneRepr =-1
}
 

Public Member Functions

 vtkTypeMacro (SMESH_NodeLabelActor, SMESH_DeviceActor) virtual void SetPointsLabeled(bool theIsPointsLabeled)
 
virtual bool GetPointsLabeled ()
 
virtual void SetVisibility (int theMode)
 
virtual void AddToRender (vtkRenderer *theRenderer)
 
virtual void RemoveFromRender (vtkRenderer *theRenderer)
 
virtual void SetFontProperties (SMESH::LabelFont family, int size, bool bold, bool italic, bool shadow, double r, double g, double b)
 
void UpdateLabels ()
 
 vtkTypeMacro (SMESH_DeviceActor, vtkLODActor) static SMESH_DeviceActor *New()
 
void SetStoreClippingMapping (bool theStoreMapping)
 
void SetStoreGemetryMapping (bool theStoreMapping)
 
void SetStoreIDMapping (bool theStoreMapping)
 
virtual vtkIdType GetNodeObjId (vtkIdType theVtkID)
 
virtual double * GetNodeCoord (vtkIdType theObjID)
 
virtual vtkIdType GetNodeVtkId (vtkIdType theObjID)
 
virtual vtkIdType GetElemObjId (vtkIdType theVtkID)
 
virtual vtkCell * GetElemCell (vtkIdType theObjID)
 
virtual void SetTransform (VTKViewer_Transform *theTransform)
 
virtual vtkMTimeType GetMTime ()
 
virtual void SetFacesOriented (bool theIsFacesOriented)
 
virtual bool GetFacesOriented ()
 
virtual void SetFacesOrientationColor (double r, double g, double b)
 
virtual void GetFacesOrientationColor (double &r, double &g, double &b)
 
virtual void SetFacesOrientationScale (double theScale)
 
virtual double GetFacesOrientationScale ()
 
virtual void SetFacesOrientation3DVectors (bool theState)
 
virtual bool GetFacesOrientation3DVectors ()
 
virtual void SetQuadraticArcMode (bool theFlag)
 Setting for displaying quadratic elements. More...
 
virtual bool GetQuadraticArcMode ()
 Return true if 2D quadratic element displayed as arked polygon. More...
 
virtual void SetQuadraticArcAngle (double theMaxAngle)
 Set Max angle for representation 2D quadratic element as arked polygon. More...
 
virtual double GetQuadraticArcAngle ()
 Return Max angle of the representation 2D quadratic element as arked polygon. More...
 
void UpdateFaceOrientation ()
 
double GetShrinkFactor ()
 
void SetShrinkFactor (double value)
 
bool IsShrunkable ()
 
bool IsShrunk ()
 
void SetShrink ()
 
void UnShrink ()
 
EReperesent GetRepresentation ()
 
void SetRepresentation (EReperesent theMode)
 
virtual int GetVisibility ()
 
VTKViewer_ExtractUnstructuredGrid * GetExtractUnstructuredGrid ()
 
vtkUnstructuredGridGetUnstructuredGrid ()
 
void SetPlaneCollection (vtkPlaneCollection *theCollection)
 
void SetControlMode (SMESH::Controls::FunctorPtr theFunctor, SMESH_ScalarBarActor *theScalarBarActor, vtkLookupTable *theLookupTable)
 
void SetExtControlMode (SMESH::Controls::FunctorPtr theFunctor, SMESH_ScalarBarActor *theScalarBarActor, vtkLookupTable *theLookupTable)
 
void SetExtControlMode (SMESH::Controls::FunctorPtr theFunctor)
 
bool IsHighlited ()
 
void SetHighlited (bool theIsHighlited)
 
virtual void SetCoincident3DAllowed (bool theIsFeatureEdgesAllowed)
 
virtual bool IsCoincident3DAllowed () const
 
virtual void Render (vtkRenderer *, vtkMapper *)
 
void SetImplicitFunctionUsed (bool theIsImplicitFunctionUsed)
 
bool IsImplicitFunctionUsed () const
 
void SetMarkerEnabled (bool)
 Set point marker enabled. More...
 
void SetBallEnabled (bool)
 Set point marker enabled. More...
 
void SetBallScale (double)
 Set point marker scale factor. More...
 
void SetMarkerStd (VTK::MarkerType, VTK::MarkerScale)
 Set standard point marker. More...
 
void SetMarkerTexture (int, VTK::MarkerTexture)
 Set custom point marker. More...
 
VTK::MarkerType GetMarkerType ()
 Get type of the point marker. More...
 
VTK::MarkerScale GetMarkerScale ()
 Get scale of the point marker. More...
 
int GetMarkerTexture ()
 Get texture identifier of the point marker. More...
 
double GetBallScale ()
 Get scale factor of ball element. More...
 

Static Public Member Functions

static SMESH_NodeLabelActorNew ()
 
static void ProcessEvents (vtkObject *theObject, unsigned long theEvent, void *theClientData, void *theCallData)
 

Protected Member Functions

 SMESH_NodeLabelActor ()
 
 ~SMESH_NodeLabelActor ()
 Destructor. More...
 
 SMESH_NodeLabelActor (const SMESH_NodeLabelActor &)
 
void operator= (const SMESH_NodeLabelActor &)
 
void Init (TVisualObjPtr theVisualObj, vtkImplicitBoolean *theImplicitBoolean)
 
void SetUnstructuredGrid (vtkUnstructuredGrid *theGrid)
 
void SetPolygonOffsetParameters (double factor, double units)
 
void GetPolygonOffsetParameters (double &factor, double &units)
 

Protected Attributes

bool myIsPointsLabeled
 
vtkUnstructuredGridmyPointsNumDataSet
 
vtkActor2DmyPointLabels
 
vtkMaskPoints * myPtsMaskPoints
 
vtkLabeledDataMapper * myPtsLabeledDataMapper
 
vtkSelectVisiblePoints * myPtsSelectVisiblePoints
 
vtkTextProperty * myPtsTextProp
 
VTKViewer_PolyDataMapper * myMapper
 
TVisualObjPtr myVisualObj
 
vtkSmartPointer< vtkPlaneCollection > myPlaneCollection
 
vtkProperty * myProperty
 
EReperesent myRepresentation
 
SMESH_ExtractGeometrymyExtractGeometry
 
bool myIsImplicitFunctionUsed
 
vtkMergeFilter * myMergeFilter
 
VTKViewer_ExtractUnstructuredGrid * myExtractUnstructuredGrid
 
bool myIsFacesOriented
 
SMESH_FaceOrientationFiltermyFaceOrientationFilter
 
vtkPolyDataMapper * myFaceOrientationDataMapper
 
vtkActor * myFaceOrientation
 
bool myStoreClippingMapping
 
VTKViewer_GeometryFilter * myGeomFilter
 
VTKViewer_TransformFilter * myTransformFilter
 
std::vector< vtkPassThrough * > myPassFilter
 
vtkShrinkFilter * myShrinkFilter
 
bool myIsShrinkable
 
bool myIsShrunk
 
bool myIsHighlited
 
double myPolygonOffsetFactor
 
double myPolygonOffsetUnits
 

Member Enumeration Documentation

◆ EReperesent

Enumerator
ePoint 
eWireframe 
eSurface 
eInsideframe 
eNoneRepr 

Constructor & Destructor Documentation

◆ SMESH_NodeLabelActor() [1/2]

SMESH_NodeLabelActor::SMESH_NodeLabelActor ( )
protected

◆ ~SMESH_NodeLabelActor()

SMESH_NodeLabelActor::~SMESH_NodeLabelActor ( )
protected

◆ SMESH_NodeLabelActor() [2/2]

SMESH_NodeLabelActor::SMESH_NodeLabelActor ( const SMESH_NodeLabelActor )
protected

Member Function Documentation

◆ AddToRender()

void SMESH_NodeLabelActor::AddToRender ( vtkRenderer *  theRenderer)
virtual

◆ GetBallScale()

double SMESH_DeviceActor::GetBallScale ( )
inherited

Get scale factor of ball element.

Returns
scale factor of ball element

Referenced by SMESH_ActorDef::GetBallScale().

◆ GetElemCell()

vtkCell * SMESH_DeviceActor::GetElemCell ( vtkIdType  theObjID)
virtualinherited

References MESSAGE.

Referenced by SMESH_ActorDef::GetElemCell().

◆ GetElemObjId()

vtkIdType SMESH_DeviceActor::GetElemObjId ( vtkIdType  theVtkID)
virtualinherited

References MESSAGE.

Referenced by SMESH_ActorDef::GetElemObjId().

◆ GetExtractUnstructuredGrid()

VTKViewer_ExtractUnstructuredGrid * SMESH_DeviceActor::GetExtractUnstructuredGrid ( )
inherited

◆ GetFacesOrientation3DVectors()

bool SMESH_DeviceActor::GetFacesOrientation3DVectors ( )
virtualinherited

◆ GetFacesOrientationColor()

void SMESH_DeviceActor::GetFacesOrientationColor ( double &  r,
double &  g,
double &  b 
)
virtualinherited

◆ GetFacesOrientationScale()

double SMESH_DeviceActor::GetFacesOrientationScale ( )
virtualinherited

◆ GetFacesOriented()

virtual bool SMESH_DeviceActor::GetFacesOriented ( )
virtualinherited

◆ GetMarkerScale()

VTK::MarkerScale SMESH_DeviceActor::GetMarkerScale ( )
inherited

Get scale of the point marker.

Returns
scale of the point marker

◆ GetMarkerTexture()

int SMESH_DeviceActor::GetMarkerTexture ( )
inherited

Get texture identifier of the point marker.

Returns
texture identifier of the point marker

◆ GetMarkerType()

VTK::MarkerType SMESH_DeviceActor::GetMarkerType ( )
inherited

Get type of the point marker.

Returns
type of the point marker

◆ GetMTime()

vtkMTimeType SMESH_DeviceActor::GetMTime ( )
virtualinherited

◆ GetNodeCoord()

double * SMESH_DeviceActor::GetNodeCoord ( vtkIdType  theObjID)
virtualinherited

References MESSAGE.

Referenced by SMESH_ActorDef::GetNodeCoord().

◆ GetNodeObjId()

vtkIdType SMESH_DeviceActor::GetNodeObjId ( vtkIdType  theVtkID)
virtualinherited

References MESSAGE.

Referenced by SMESH_ActorDef::GetNodeObjId().

◆ GetNodeVtkId()

vtkIdType SMESH_DeviceActor::GetNodeVtkId ( vtkIdType  theObjID)
virtualinherited

◆ GetPointsLabeled()

virtual bool SMESH_NodeLabelActor::GetPointsLabeled ( )
virtual

◆ GetPolygonOffsetParameters()

void SMESH_DeviceActor::GetPolygonOffsetParameters ( double &  factor,
double &  units 
)
protectedinherited

Referenced by SMESH_ActorDef::Init().

◆ GetQuadraticArcAngle()

double SMESH_DeviceActor::GetQuadraticArcAngle ( )
virtualinherited

Return Max angle of the representation 2D quadratic element as arked polygon.

◆ GetQuadraticArcMode()

bool SMESH_DeviceActor::GetQuadraticArcMode ( )
virtualinherited

Return true if 2D quadratic element displayed as arked polygon.

Referenced by SMESH_ActorDef::GetQuadratic2DRepresentation().

◆ GetRepresentation()

EReperesent SMESH_DeviceActor::GetRepresentation ( )
inherited

◆ GetShrinkFactor()

double SMESH_DeviceActor::GetShrinkFactor ( )
inherited

◆ GetUnstructuredGrid()

vtkUnstructuredGrid * SMESH_DeviceActor::GetUnstructuredGrid ( )
inherited

◆ GetVisibility()

int SMESH_DeviceActor::GetVisibility ( )
virtualinherited

◆ Init()

void SMESH_DeviceActor::Init ( TVisualObjPtr  theVisualObj,
vtkImplicitBoolean *  theImplicitBoolean 
)
protectedinherited

Referenced by SMESH_ActorDef::Init().

◆ IsCoincident3DAllowed()

bool SMESH_DeviceActor::IsCoincident3DAllowed ( ) const
virtualinherited

◆ IsHighlited()

bool SMESH_DeviceActor::IsHighlited ( )
inherited

◆ IsImplicitFunctionUsed()

bool SMESH_DeviceActor::IsImplicitFunctionUsed ( ) const
inherited

◆ IsShrunk()

bool SMESH_DeviceActor::IsShrunk ( )
inherited

◆ IsShrunkable()

bool SMESH_DeviceActor::IsShrunkable ( )
inherited

◆ New()

static SMESH_NodeLabelActor* SMESH_NodeLabelActor::New ( )
static

◆ operator=()

void SMESH_NodeLabelActor::operator= ( const SMESH_NodeLabelActor )
protected

◆ ProcessEvents()

void SMESH_NodeLabelActor::ProcessEvents ( vtkObject *  theObject,
unsigned long  theEvent,
void *  theClientData,
void *  theCallData 
)
static

References UpdateLabels().

Referenced by vtkStandardNewMacro().

◆ RemoveFromRender()

void SMESH_NodeLabelActor::RemoveFromRender ( vtkRenderer *  theRenderer)
virtual

◆ Render()

void SMESH_DeviceActor::Render ( vtkRenderer *  ren,
vtkMapper *  m 
)
virtualinherited

◆ SetBallEnabled()

void SMESH_DeviceActor::SetBallEnabled ( bool  theBallEnabled)
inherited

Set point marker enabled.

Parameters
theBallEnabledflag to enable/disable ball drawing

Referenced by SMESH_ActorDef::SMESH_ActorDef().

◆ SetBallScale()

void SMESH_DeviceActor::SetBallScale ( double  theBallScale)
inherited

Set point marker scale factor.

Parameters
theBallScaledouble value which specifies a scale factor of ball element

Referenced by SMESH_ActorDef::SetBallScale().

◆ SetCoincident3DAllowed()

void SMESH_DeviceActor::SetCoincident3DAllowed ( bool  theIsFeatureEdgesAllowed)
virtualinherited

◆ SetControlMode()

void SMESH_DeviceActor::SetControlMode ( SMESH::Controls::FunctorPtr  theFunctor,
SMESH_ScalarBarActor theScalarBarActor,
vtkLookupTable *  theLookupTable 
)
inherited

◆ SetExtControlMode() [1/2]

void SMESH_DeviceActor::SetExtControlMode ( SMESH::Controls::FunctorPtr  theFunctor)
inherited

◆ SetExtControlMode() [2/2]

void SMESH_DeviceActor::SetExtControlMode ( SMESH::Controls::FunctorPtr  theFunctor,
SMESH_ScalarBarActor theScalarBarActor,
vtkLookupTable *  theLookupTable 
)
inherited

◆ SetFacesOrientation3DVectors()

void SMESH_DeviceActor::SetFacesOrientation3DVectors ( bool  theState)
virtualinherited

◆ SetFacesOrientationColor()

void SMESH_DeviceActor::SetFacesOrientationColor ( double  r,
double  g,
double  b 
)
virtualinherited

◆ SetFacesOrientationScale()

void SMESH_DeviceActor::SetFacesOrientationScale ( double  theScale)
virtualinherited

◆ SetFacesOriented()

void SMESH_DeviceActor::SetFacesOriented ( bool  theIsFacesOriented)
virtualinherited

◆ SetFontProperties()

void SMESH_NodeLabelActor::SetFontProperties ( SMESH::LabelFont  family,
int  size,
bool  bold,
bool  italic,
bool  shadow,
double  r,
double  g,
double  b 
)
virtual

◆ SetHighlited()

void SMESH_DeviceActor::SetHighlited ( bool  theIsHighlited)
inherited

◆ SetImplicitFunctionUsed()

void SMESH_DeviceActor::SetImplicitFunctionUsed ( bool  theIsImplicitFunctionUsed)
inherited

◆ SetMarkerEnabled()

void SMESH_DeviceActor::SetMarkerEnabled ( bool  theMarkerEnabled)
inherited

Set point marker enabled.

Parameters
theMarkerEnabledflag to enable/disable point marker

◆ SetMarkerStd()

void SMESH_DeviceActor::SetMarkerStd ( VTK::MarkerType  theMarkerType,
VTK::MarkerScale  theMarkerScale 
)
inherited

Set standard point marker.

Parameters
theMarkerTypetype of the marker

Referenced by SMESH_ActorDef::SetMarkerStd().

◆ SetMarkerTexture()

void SMESH_DeviceActor::SetMarkerTexture ( int  theMarkerId,
VTK::MarkerTexture  theMarkerTexture 
)
inherited

Set custom point marker.

Parameters
theMarkerIdid of the marker texture
theMarkerTexturemarker texture

Referenced by SMESH_ActorDef::SetMarkerTexture().

◆ SetPlaneCollection()

void SMESH_DeviceActor::SetPlaneCollection ( vtkPlaneCollection *  theCollection)
inherited

◆ SetPolygonOffsetParameters()

void SMESH_DeviceActor::SetPolygonOffsetParameters ( double  factor,
double  units 
)
protectedinherited

Referenced by SMESH_ActorDef::Init().

◆ SetQuadraticArcAngle()

void SMESH_DeviceActor::SetQuadraticArcAngle ( double  theMaxAngle)
virtualinherited

Set Max angle for representation 2D quadratic element as arked polygon.

Referenced by SMESH_ActorDef::SMESH_ActorDef().

◆ SetQuadraticArcMode()

void SMESH_DeviceActor::SetQuadraticArcMode ( bool  theFlag)
virtualinherited

Setting for displaying quadratic elements.

On/Off representation 2D quadratic element as arked polygon.

Referenced by SMESH_ActorDef::SetQuadratic2DRepresentation(), SMESH_ActorDef::SetRepresentation(), and SMESH_ActorDef::SMESH_ActorDef().

◆ SetRepresentation()

void SMESH_DeviceActor::SetRepresentation ( EReperesent  theMode)
inherited

◆ SetShrink()

void SMESH_DeviceActor::SetShrink ( )
inherited

◆ SetShrinkFactor()

void SMESH_DeviceActor::SetShrinkFactor ( double  value)
inherited

◆ SetStoreClippingMapping()

void SMESH_DeviceActor::SetStoreClippingMapping ( bool  theStoreMapping)
inherited

◆ SetStoreGemetryMapping()

void SMESH_DeviceActor::SetStoreGemetryMapping ( bool  theStoreMapping)
inherited

◆ SetStoreIDMapping()

void SMESH_DeviceActor::SetStoreIDMapping ( bool  theStoreMapping)
inherited

◆ SetTransform()

void SMESH_DeviceActor::SetTransform ( VTKViewer_Transform *  theTransform)
virtualinherited

◆ SetUnstructuredGrid()

void SMESH_DeviceActor::SetUnstructuredGrid ( vtkUnstructuredGrid theGrid)
protectedinherited

◆ SetVisibility()

void SMESH_NodeLabelActor::SetVisibility ( int  theMode)
virtual

◆ UnShrink()

void SMESH_DeviceActor::UnShrink ( )
inherited

◆ UpdateFaceOrientation()

void SMESH_DeviceActor::UpdateFaceOrientation ( )
inherited

◆ UpdateLabels()

◆ vtkTypeMacro() [1/2]

SMESH_DeviceActor::vtkTypeMacro ( SMESH_DeviceActor  ,
vtkLODActor   
)
inherited

◆ vtkTypeMacro() [2/2]

SMESH_NodeLabelActor::vtkTypeMacro ( SMESH_NodeLabelActor  ,
SMESH_DeviceActor   
)

Field Documentation

◆ myExtractGeometry

SMESH_ExtractGeometry* SMESH_DeviceActor::myExtractGeometry
protectedinherited

◆ myExtractUnstructuredGrid

VTKViewer_ExtractUnstructuredGrid* SMESH_DeviceActor::myExtractUnstructuredGrid
protectedinherited

◆ myFaceOrientation

vtkActor* SMESH_DeviceActor::myFaceOrientation
protectedinherited

◆ myFaceOrientationDataMapper

vtkPolyDataMapper* SMESH_DeviceActor::myFaceOrientationDataMapper
protectedinherited

◆ myFaceOrientationFilter

SMESH_FaceOrientationFilter* SMESH_DeviceActor::myFaceOrientationFilter
protectedinherited

◆ myGeomFilter

VTKViewer_GeometryFilter* SMESH_DeviceActor::myGeomFilter
protectedinherited

◆ myIsFacesOriented

bool SMESH_DeviceActor::myIsFacesOriented
protectedinherited

◆ myIsHighlited

bool SMESH_DeviceActor::myIsHighlited
protectedinherited

◆ myIsImplicitFunctionUsed

bool SMESH_DeviceActor::myIsImplicitFunctionUsed
protectedinherited

◆ myIsPointsLabeled

bool SMESH_NodeLabelActor::myIsPointsLabeled
protected

◆ myIsShrinkable

bool SMESH_DeviceActor::myIsShrinkable
protectedinherited

◆ myIsShrunk

bool SMESH_DeviceActor::myIsShrunk
protectedinherited

◆ myMapper

VTKViewer_PolyDataMapper* SMESH_DeviceActor::myMapper
protectedinherited

◆ myMergeFilter

vtkMergeFilter* SMESH_DeviceActor::myMergeFilter
protectedinherited

◆ myPassFilter

std::vector<vtkPassThrough*> SMESH_DeviceActor::myPassFilter
protectedinherited

◆ myPlaneCollection

vtkSmartPointer<vtkPlaneCollection> SMESH_DeviceActor::myPlaneCollection
protectedinherited

◆ myPointLabels

vtkActor2D* SMESH_NodeLabelActor::myPointLabels
protected

◆ myPointsNumDataSet

vtkUnstructuredGrid* SMESH_NodeLabelActor::myPointsNumDataSet
protected

◆ myPolygonOffsetFactor

double SMESH_DeviceActor::myPolygonOffsetFactor
protectedinherited

◆ myPolygonOffsetUnits

double SMESH_DeviceActor::myPolygonOffsetUnits
protectedinherited

◆ myProperty

vtkProperty* SMESH_DeviceActor::myProperty
protectedinherited

◆ myPtsLabeledDataMapper

vtkLabeledDataMapper* SMESH_NodeLabelActor::myPtsLabeledDataMapper
protected

◆ myPtsMaskPoints

vtkMaskPoints* SMESH_NodeLabelActor::myPtsMaskPoints
protected

◆ myPtsSelectVisiblePoints

vtkSelectVisiblePoints* SMESH_NodeLabelActor::myPtsSelectVisiblePoints
protected

◆ myPtsTextProp

vtkTextProperty* SMESH_NodeLabelActor::myPtsTextProp
protected

◆ myRepresentation

EReperesent SMESH_DeviceActor::myRepresentation
protectedinherited

◆ myShrinkFilter

vtkShrinkFilter* SMESH_DeviceActor::myShrinkFilter
protectedinherited

◆ myStoreClippingMapping

bool SMESH_DeviceActor::myStoreClippingMapping
protectedinherited

◆ myTransformFilter

VTKViewer_TransformFilter* SMESH_DeviceActor::myTransformFilter
protectedinherited

Referenced by vtkStandardNewMacro().

◆ myVisualObj

TVisualObjPtr SMESH_DeviceActor::myVisualObj
protectedinherited