1 // SALOME OBJECT : kernel of SALOME component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SVTK_CubeAxesActor2D.h
25 // Author : Eugeny Nikolaev
29 #ifndef __SVTK_CubeAxesActor2D_h
30 #define __SVTK_CubeAxesActor2D_h
32 #include <vtkCubeAxesActor2D.h>
33 #include <vtkSmartPointer.h>
39 class vtkTextProperty;
40 class vtkPolyDataMapper;
41 class vtkRectilinearGridGeometryFilter;
42 class VTKViewer_Transform;
47 class VTK_HYBRID_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
49 class SVTK_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
53 vtkTypeRevisionMacro(SVTK_CubeAxesActor2D,vtkCubeAxesActor2D);
56 // Instantiate object with bold, italic, and shadow enabled; font family
57 // set to Arial; and label format "6.3g". The number of labels per axis
59 static SVTK_CubeAxesActor2D *New();
62 // Draw the axes as per the vtkProp superclass' API.
63 int RenderOverlay(vtkViewport*);
64 int RenderOpaqueGeometry(vtkViewport*);
67 // Release any graphics resources that are being consumed by this actor.
68 // The parameter window could be used to determine which graphic
69 // resources to release.
70 void ReleaseGraphicsResources(vtkWindow *);
74 vtkActor* GetWireActorXY(){return this->wireActorXY;}
75 vtkActor* GetWireActorYZ(){return this->wireActorYZ;}
76 vtkActor* GetWireActorXZ(){return this->wireActorXZ;}
78 void SetTransform(VTKViewer_Transform* theTransform);
79 VTKViewer_Transform* GetTransform();
82 SVTK_CubeAxesActor2D();
83 ~SVTK_CubeAxesActor2D();
85 vtkActor* wireActorXY;
86 vtkActor* wireActorYZ;
87 vtkActor* wireActorXZ;
90 // hide the superclass' ShallowCopy() from the user and the compiler.
91 void ShallowCopy(vtkProp *prop) { this->vtkProp::ShallowCopy( prop ); };
93 vtkRectilinearGridGeometryFilter *planeXY; // rectilinear grid XY
94 vtkPolyDataMapper *rgridMapperXY;
96 vtkRectilinearGridGeometryFilter *planeYZ; // rectilinear grid YZ
97 vtkPolyDataMapper *rgridMapperYZ;
99 vtkRectilinearGridGeometryFilter *planeXZ; // rectilinear grid XZ
100 vtkPolyDataMapper *rgridMapperXZ;
102 vtkSmartPointer<VTKViewer_Transform> m_Transform;
104 SVTK_CubeAxesActor2D(const SVTK_CubeAxesActor2D&); // Not implemented.
105 void operator=(const SVTK_CubeAxesActor2D&); // Not implemented.