X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_CellLabelActor.h;h=f9a6a239de7abac3cee52e960b7bb44c4e5c2861;hp=988a0dcaf8cb2994ee4544a4e227d3aa6719f9dd;hb=refs%2Ftags%2FdistribGeom_11Feb13;hpb=1b57300c826e4cb17d9a40124991a14eabb9eee8 diff --git a/src/OBJECT/SMESH_CellLabelActor.h b/src/OBJECT/SMESH_CellLabelActor.h index 988a0dcaf..f9a6a239d 100644 --- a/src/OBJECT/SMESH_CellLabelActor.h +++ b/src/OBJECT/SMESH_CellLabelActor.h @@ -27,12 +27,14 @@ #define SMESH_CELL_LABEL_ACTOR_H #include "SMESH_DeviceActor.h" +#include "SMESH_ActorUtils.h" class vtkSelectVisiblePoints; class vtkLabeledDataMapper; class vtkActor2D; class vtkMaskPoints; class vtkUnstructuredGrid; +class vtkTextProperty; class VTKViewer_CellCenters; @@ -42,9 +44,9 @@ public: static SMESH_CellLabelActor* New(); static void ProcessEvents(vtkObject* theObject, - unsigned long theEvent, - void* theClientData, - void* theCallData); + unsigned long theEvent, + void* theClientData, + void* theCallData); vtkTypeMacro(SMESH_CellLabelActor, SMESH_DeviceActor); @@ -57,6 +59,10 @@ public: virtual void AddToRender(vtkRenderer* theRenderer); virtual void RemoveFromRender(vtkRenderer* theRenderer); + + virtual void SetFontProperties( SMESH::LabelFont family, int size, + bool bold, bool italic, bool shadow, + vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointType b ); void UpdateLabels(); @@ -72,6 +78,7 @@ protected: vtkLabeledDataMapper* myClsLabeledDataMapper; vtkSelectVisiblePoints* myClsSelectVisiblePoints; SMESH_DeviceActor* myBaseActor; //Pointer to the base actor + vtkTextProperty* myClsTextProp; protected: // Not implemented.