Version: 8.3.0
SMESH_CellLabelActor Class Reference

#include <SMESH_CellLabelActor.h>

Inheritance diagram for SMESH_CellLabelActor:

Public Types

enum  EReperesent { ePoint, eWireframe, eSurface, eInsideframe }
 

Public Member Functions

 vtkTypeMacro (SMESH_CellLabelActor, SMESH_DeviceActor)
 
virtual void SetCellsLabeled (bool theIsCellsLabeled)
 
virtual bool GetCellsLabeled ()
 
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)
 
void SetStoreClippingMapping (bool theStoreMapping)
 
void SetStoreGemetryMapping (bool theStoreMapping)
 
void SetStoreIDMapping (bool theStoreMapping)
 
virtual int GetNodeObjId (int theVtkID)
 
virtual double * GetNodeCoord (int theObjID)
 
virtual int GetElemObjId (int theVtkID)
 
virtual vtkCell * GetElemCell (int 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_CellLabelActorNew ()
 
static void ProcessEvents (vtkObject *theObject, unsigned long theEvent, void *theClientData, void *theCallData)
 

Protected Member Functions

 SMESH_CellLabelActor ()
 Constructor. More...
 
 ~SMESH_CellLabelActor ()
 Destructor. More...
 
 SMESH_CellLabelActor (const SMESH_CellLabelActor &)
 
void operator= (const SMESH_CellLabelActor &)
 
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 myIsCellsLabeled
 
vtkUnstructuredGridmyCellsNumDataSet
 
vtkActor2DmyCellsLabels
 
vtkMaskPoints * myClsMaskPoints
 
VTKViewer_CellCenters * myCellCenters
 
vtkLabeledDataMapper * myClsLabeledDataMapper
 
vtkSelectVisiblePoints * myClsSelectVisiblePoints
 
SMESH_DeviceActormyBaseActor
 
vtkTextProperty * myClsTextProp
 
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
< vtkPassThroughFilter * > 
myPassFilter
 
vtkShrinkFilter * myShrinkFilter
 
bool myIsShrinkable
 
bool myIsShrunk
 
bool myIsHighlited
 
double myPolygonOffsetFactor
 
double myPolygonOffsetUnits
 

Member Enumeration Documentation

Enumerator
ePoint 
eWireframe 
eSurface 
eInsideframe 

Constructor & Destructor Documentation

SMESH_CellLabelActor::~SMESH_CellLabelActor ( )
protected
SMESH_CellLabelActor::SMESH_CellLabelActor ( const SMESH_CellLabelActor )
protected

Member Function Documentation

void SMESH_CellLabelActor::AddToRender ( vtkRenderer *  theRenderer)
virtual
double SMESH_DeviceActor::GetBallScale ( )
inherited

Get scale factor of ball element.

Returns
scale factor of ball element

Referenced by SMESH_ActorDef::GetBallScale().

virtual bool SMESH_CellLabelActor::GetCellsLabeled ( )
virtual
vtkCell * SMESH_DeviceActor::GetElemCell ( int  theObjID)
virtualinherited

References MESSAGE.

Referenced by SMESH_ActorDef::GetElemCell().

int SMESH_DeviceActor::GetElemObjId ( int  theVtkID)
virtualinherited

References MESSAGE.

Referenced by SMESH_ActorDef::GetElemObjId().

VTKViewer_ExtractUnstructuredGrid * SMESH_DeviceActor::GetExtractUnstructuredGrid ( )
inherited
bool SMESH_DeviceActor::GetFacesOrientation3DVectors ( )
virtualinherited
void SMESH_DeviceActor::GetFacesOrientationColor ( double &  r,
double &  g,
double &  b 
)
virtualinherited
double SMESH_DeviceActor::GetFacesOrientationScale ( )
virtualinherited
virtual bool SMESH_DeviceActor::GetFacesOriented ( )
virtualinherited
VTK::MarkerScale SMESH_DeviceActor::GetMarkerScale ( )
inherited

Get scale of the point marker.

Returns
scale of the point marker
int SMESH_DeviceActor::GetMarkerTexture ( )
inherited

Get texture identifier of the point marker.

Returns
texture identifier of the point marker
VTK::MarkerType SMESH_DeviceActor::GetMarkerType ( )
inherited

Get type of the point marker.

Returns
type of the point marker
vtkMTimeType SMESH_DeviceActor::GetMTime ( )
virtualinherited
double * SMESH_DeviceActor::GetNodeCoord ( int  theObjID)
virtualinherited

References MESSAGE.

Referenced by SMESH_ActorDef::GetNodeCoord().

int SMESH_DeviceActor::GetNodeObjId ( int  theVtkID)
virtualinherited

References MESSAGE.

Referenced by SMESH_ActorDef::GetNodeObjId().

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

Referenced by SMESH_ActorDef::Init().

double SMESH_DeviceActor::GetQuadraticArcAngle ( )
virtualinherited

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

bool SMESH_DeviceActor::GetQuadraticArcMode ( )
virtualinherited

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

Referenced by SMESH_ActorDef::GetQuadratic2DRepresentation().

EReperesent SMESH_DeviceActor::GetRepresentation ( )
inherited
double SMESH_DeviceActor::GetShrinkFactor ( )
inherited
vtkUnstructuredGrid * SMESH_DeviceActor::GetUnstructuredGrid ( )
inherited
int SMESH_DeviceActor::GetVisibility ( )
virtualinherited
void SMESH_DeviceActor::Init ( TVisualObjPtr  theVisualObj,
vtkImplicitBoolean *  theImplicitBoolean 
)
protectedinherited

Referenced by SMESH_ActorDef::Init().

bool SMESH_DeviceActor::IsCoincident3DAllowed ( ) const
virtualinherited
bool SMESH_DeviceActor::IsHighlited ( )
inherited
bool SMESH_DeviceActor::IsImplicitFunctionUsed ( ) const
inherited
bool SMESH_DeviceActor::IsShrunk ( )
inherited
bool SMESH_DeviceActor::IsShrunkable ( )
inherited
static SMESH_CellLabelActor* SMESH_CellLabelActor::New ( )
static
void SMESH_CellLabelActor::operator= ( const SMESH_CellLabelActor )
protected
void SMESH_CellLabelActor::ProcessEvents ( vtkObject *  theObject,
unsigned long  theEvent,
void *  theClientData,
void *  theCallData 
)
static

References UpdateLabels().

Referenced by SMESH_CellLabelActor().

void SMESH_CellLabelActor::RemoveFromRender ( vtkRenderer *  theRenderer)
virtual
void SMESH_DeviceActor::Render ( vtkRenderer *  ren,
vtkMapper *  m 
)
virtualinherited
void SMESH_DeviceActor::SetBallEnabled ( bool  theBallEnabled)
inherited

Set point marker enabled.

Parameters
theBallEnabledflag to enable/disable ball drawing

Referenced by SMESH_ActorDef::SMESH_ActorDef().

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

void SMESH_DeviceActor::SetCoincident3DAllowed ( bool  theIsFeatureEdgesAllowed)
virtualinherited
void SMESH_DeviceActor::SetControlMode ( SMESH::Controls::FunctorPtr  theFunctor,
SMESH_ScalarBarActor theScalarBarActor,
vtkLookupTable *  theLookupTable 
)
inherited
void SMESH_DeviceActor::SetExtControlMode ( SMESH::Controls::FunctorPtr  theFunctor,
SMESH_ScalarBarActor theScalarBarActor,
vtkLookupTable *  theLookupTable 
)
inherited
void SMESH_DeviceActor::SetExtControlMode ( SMESH::Controls::FunctorPtr  theFunctor)
inherited
void SMESH_DeviceActor::SetFacesOrientation3DVectors ( bool  theState)
virtualinherited
void SMESH_DeviceActor::SetFacesOrientationColor ( double  r,
double  g,
double  b 
)
virtualinherited
void SMESH_DeviceActor::SetFacesOrientationScale ( double  theScale)
virtualinherited
void SMESH_DeviceActor::SetFacesOriented ( bool  theIsFacesOriented)
virtualinherited
void SMESH_CellLabelActor::SetFontProperties ( SMESH::LabelFont  family,
int  size,
bool  bold,
bool  italic,
bool  shadow,
double  r,
double  g,
double  b 
)
virtual
void SMESH_DeviceActor::SetHighlited ( bool  theIsHighlited)
inherited
void SMESH_DeviceActor::SetImplicitFunctionUsed ( bool  theIsImplicitFunctionUsed)
inherited
void SMESH_DeviceActor::SetMarkerEnabled ( bool  theMarkerEnabled)
inherited

Set point marker enabled.

Parameters
theMarkerEnabledflag to enable/disable point marker
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().

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

void SMESH_DeviceActor::SetPlaneCollection ( vtkPlaneCollection *  theCollection)
inherited
void SMESH_DeviceActor::SetPolygonOffsetParameters ( double  factor,
double  units 
)
protectedinherited

Referenced by SMESH_ActorDef::Init().

void SMESH_DeviceActor::SetQuadraticArcAngle ( double  theMaxAngle)
virtualinherited

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

Referenced by SMESH_ActorDef::SMESH_ActorDef().

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

void SMESH_DeviceActor::SetRepresentation ( EReperesent  theMode)
inherited
void SMESH_DeviceActor::SetShrink ( )
inherited
void SMESH_DeviceActor::SetShrinkFactor ( double  value)
inherited
void SMESH_DeviceActor::SetStoreClippingMapping ( bool  theStoreMapping)
inherited
void SMESH_DeviceActor::SetStoreGemetryMapping ( bool  theStoreMapping)
inherited
void SMESH_DeviceActor::SetStoreIDMapping ( bool  theStoreMapping)
inherited
void SMESH_DeviceActor::SetTransform ( VTKViewer_Transform *  theTransform)
virtualinherited
void SMESH_DeviceActor::SetUnstructuredGrid ( vtkUnstructuredGrid theGrid)
protectedinherited
void SMESH_CellLabelActor::SetVisibility ( int  theMode)
virtual
void SMESH_DeviceActor::UnShrink ( )
inherited
void SMESH_DeviceActor::UpdateFaceOrientation ( )
inherited
void SMESH_CellLabelActor::UpdateLabels ( )
SMESH_CellLabelActor::vtkTypeMacro ( SMESH_CellLabelActor  ,
SMESH_DeviceActor   
)
SMESH_DeviceActor::vtkTypeMacro ( SMESH_DeviceActor  ,
vtkLODActor   
)
inherited

Field Documentation

SMESH_DeviceActor* SMESH_CellLabelActor::myBaseActor
protected
VTKViewer_CellCenters* SMESH_CellLabelActor::myCellCenters
protected
vtkActor2D* SMESH_CellLabelActor::myCellsLabels
protected
vtkUnstructuredGrid* SMESH_CellLabelActor::myCellsNumDataSet
protected
vtkLabeledDataMapper* SMESH_CellLabelActor::myClsLabeledDataMapper
protected
vtkMaskPoints* SMESH_CellLabelActor::myClsMaskPoints
protected
vtkSelectVisiblePoints* SMESH_CellLabelActor::myClsSelectVisiblePoints
protected
vtkTextProperty* SMESH_CellLabelActor::myClsTextProp
protected
SMESH_ExtractGeometry* SMESH_DeviceActor::myExtractGeometry
protectedinherited

Referenced by SetCellsLabeled().

VTKViewer_ExtractUnstructuredGrid* SMESH_DeviceActor::myExtractUnstructuredGrid
protectedinherited
vtkActor* SMESH_DeviceActor::myFaceOrientation
protectedinherited
vtkPolyDataMapper* SMESH_DeviceActor::myFaceOrientationDataMapper
protectedinherited
SMESH_FaceOrientationFilter* SMESH_DeviceActor::myFaceOrientationFilter
protectedinherited
VTKViewer_GeometryFilter* SMESH_DeviceActor::myGeomFilter
protectedinherited
bool SMESH_CellLabelActor::myIsCellsLabeled
protected
bool SMESH_DeviceActor::myIsFacesOriented
protectedinherited
bool SMESH_DeviceActor::myIsHighlited
protectedinherited
bool SMESH_DeviceActor::myIsImplicitFunctionUsed
protectedinherited
bool SMESH_DeviceActor::myIsShrinkable
protectedinherited
bool SMESH_DeviceActor::myIsShrunk
protectedinherited
VTKViewer_PolyDataMapper* SMESH_DeviceActor::myMapper
protectedinherited
vtkMergeFilter* SMESH_DeviceActor::myMergeFilter
protectedinherited
std::vector<vtkPassThroughFilter*> SMESH_DeviceActor::myPassFilter
protectedinherited
vtkSmartPointer<vtkPlaneCollection> SMESH_DeviceActor::myPlaneCollection
protectedinherited
double SMESH_DeviceActor::myPolygonOffsetFactor
protectedinherited
double SMESH_DeviceActor::myPolygonOffsetUnits
protectedinherited
vtkProperty* SMESH_DeviceActor::myProperty
protectedinherited
EReperesent SMESH_DeviceActor::myRepresentation
protectedinherited
vtkShrinkFilter* SMESH_DeviceActor::myShrinkFilter
protectedinherited
bool SMESH_DeviceActor::myStoreClippingMapping
protectedinherited
VTKViewer_TransformFilter* SMESH_DeviceActor::myTransformFilter
protectedinherited
TVisualObjPtr SMESH_DeviceActor::myVisualObj
protectedinherited