Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef SVTK_ACTOR_H
00024 #define SVTK_ACTOR_H
00025
00026 #include <TColStd_IndexedMapOfInteger.hxx>
00027
00028 class vtkRenderer;
00029 class vtkShrinkFilter;
00030 class vtkDataSetMapper;
00031 class vtkUnstructuredGrid;
00032
00033 #include "SVTK.h"
00034 #include "SVTK_DeviceActor.h"
00035
00036 #include <vtkSmartPointer.h>
00037
00038 class SALOME_Actor;
00039
00040 #ifdef WIN32
00041 #pragma warning ( disable:4251 )
00042 #endif
00043
00045 class SVTK_EXPORT SVTK_Actor : public SVTK_DeviceActor
00046 {
00047 public:
00048 static SVTK_Actor* New();
00049
00050 vtkTypeMacro(SVTK_Actor,SVTK_DeviceActor);
00051
00053 void
00054 Initialize();
00055
00057 void
00058 SetSource(vtkUnstructuredGrid* theUnstructuredGrid);
00059
00061 vtkUnstructuredGrid*
00062 GetSource();
00063
00065 void
00066 MapCells(SALOME_Actor* theMapActor,
00067 const TColStd_IndexedMapOfInteger& theMapIndex);
00068
00070 void
00071 MapPoints(SALOME_Actor* theMapActor,
00072 const TColStd_IndexedMapOfInteger& theMapIndex);
00073
00075 void
00076 MapEdge(SALOME_Actor* theMapActor,
00077 const TColStd_IndexedMapOfInteger& theMapIndex);
00078
00079 const TColStd_IndexedMapOfInteger&
00080 GetMapIndex() const;
00081
00082 protected:
00083 TColStd_IndexedMapOfInteger myMapIndex;
00084
00085 vtkSmartPointer<vtkUnstructuredGrid> myUnstructuredGrid;
00086
00087 SVTK_Actor();
00088 virtual
00089 ~SVTK_Actor();
00090 };
00091
00092 #ifdef WIN32
00093 #pragma warning ( default:4251 )
00094 #endif
00095
00096 #endif