Salome HOME
cf0ab13cb7b1480f3327e5aa28652c7c1120b409
[modules/visu.git] / src / OBJECT / VISU_PointMap3dActor.h
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  VISU OBJECT : interactive object for VISU entities implementation
23 //  File   : VISU_PointMap3dActor.h
24 //  Author : Dmitry MATVEICHEV with help of Alexey PETROV
25 //  Module : VISU
26 //  $Header$
27 //
28 #ifndef VISU_PointMap3dActor_HeaderFile
29 #define VISU_PointMap3dActor_HeaderFile
30
31 #include "VISU_OBJECT.h"
32 #include "SALOME_Actor.h"
33 #include "VISU_DataSetActor.h"
34 #include "VISU_BoostSignals.h"
35
36 class VISU_ScalarBarActor;
37
38 #ifdef _WIN32
39 #define VTKOCC_EXPORT __declspec (dllexport)
40 #else
41 #define VTKOCC_EXPORT VTK_EXPORT
42 #endif
43
44 class VISU_DeformedGridPL;
45
46 class VISU_OBJECT_EXPORT VISU_PointMap3dActor : public VISU_ActorBase
47 {
48  public:
49   vtkTypeMacro(VISU_PointMap3dActor,SALOME_Actor);
50
51   static
52   VISU_PointMap3dActor* 
53   New();
54
55   ~VISU_PointMap3dActor();
56   
57 //----------------------------------------------------------------------------
58   virtual
59     void
60     AddToRender( vtkRenderer* ); 
61   
62   virtual
63     void
64     RemoveFromRender( vtkRenderer* );
65   
66   virtual
67     void
68     SetVisibility(int theMode);
69   
70   virtual
71     VISU_ScalarBarActor* 
72     GetScalarBar();
73
74 //----------------------------------------------------------------------------
75   virtual
76   void
77   setIO(const Handle(SALOME_InteractiveObject)& theIO);
78
79 //----------------------------------------------------------------------------
80   virtual
81   VISU_DeformedGridPL* 
82   GetPipeLine();
83
84   virtual 
85   void
86   SetPipeLine(VISU_DeformedGridPL* thePipeLine);
87   
88  protected:
89   VISU_PointMap3dActor();
90   vtkSmartPointer<VISU_DeformedGridPL> myPipeLine;
91
92   VISU_ScalarBarActor* myScalarBar;
93 };
94
95 #endif