Version: 9.16.0
SVTK_CubeAxesActor2D.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, 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, or (at your option) any later version.
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
23// SALOME OBJECT : kernel of SALOME component
24// File : SVTK_CubeAxesActor2D.h
25// Author : Eugeny Nikolaev
26
27#ifndef __SVTK_CubeAxesActor2D_h
28#define __SVTK_CubeAxesActor2D_h
29
30#include <vtkCubeAxesActor2D.h>
31#include <vtkSmartPointer.h>
32
33class vtkActor;
34class vtkAxisActor2D;
35class vtkCamera;
36class vtkDataSet;
37class vtkTextProperty;
38class vtkPolyDataMapper;
39class vtkRectilinearGridGeometryFilter;
41
42#include "SVTK.h"
43#include "VTKViewer.h"
44
45#ifdef WIN32
46#pragma warning ( disable:4251 )
47#endif
48
49#ifndef WIN32
50class VTKRENDERINGANNOTATION_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
51#else
53#endif
54{
55public:
57
58 // Description:
59 // Instantiate object with bold, italic, and shadow enabled; font family
60 // set to Arial; and label format "6.3g". The number of labels per axis
61 // is set to 3.
62 static SVTK_CubeAxesActor2D *New();
63
64 // Description:
65 // Draw the axes as per the vtkProp superclass' API.
66 int RenderOverlay(vtkViewport*);
67 int RenderOpaqueGeometry(vtkViewport*);
68
69 // Description:
70 // Release any graphics resources that are being consumed by this actor.
71 // The parameter window could be used to determine which graphic
72 // resources to release.
73 void ReleaseGraphicsResources(vtkWindow *);
74
75 // Description:
76
77 vtkActor* GetWireActorXY(){return this->wireActorXY;}
78 vtkActor* GetWireActorYZ(){return this->wireActorYZ;}
79 vtkActor* GetWireActorXZ(){return this->wireActorXZ;}
80
81 void SetTransform(VTKViewer_Transform* theTransform);
83
84protected:
87
88 vtkActor* wireActorXY;
89 vtkActor* wireActorYZ;
90 vtkActor* wireActorXZ;
91
92private:
93 // hide the superclass' ShallowCopy() from the user and the compiler.
94 void ShallowCopy(vtkProp *prop) { this->vtkProp::ShallowCopy( prop ); };
95
96 vtkRectilinearGridGeometryFilter *planeXY; // rectilinear grid XY
97 vtkPolyDataMapper *rgridMapperXY;
98
99 vtkRectilinearGridGeometryFilter *planeYZ; // rectilinear grid YZ
100 vtkPolyDataMapper *rgridMapperYZ;
101
102 vtkRectilinearGridGeometryFilter *planeXZ; // rectilinear grid XZ
103 vtkPolyDataMapper *rgridMapperXZ;
104
105 vtkSmartPointer<VTKViewer_Transform> m_Transform;
106private:
107 SVTK_CubeAxesActor2D(const SVTK_CubeAxesActor2D&); // Not implemented.
108 void operator=(const SVTK_CubeAxesActor2D&); // Not implemented.
109};
110
111#ifdef WIN32
112#pragma warning ( default:4251 )
113#endif
114
115#endif
#define SVTK_EXPORT
Definition: SVTK.h:37
Definition: SVTK_CubeAxesActor2D.h:54
int RenderOverlay(vtkViewport *)
Definition: SVTK_CubeAxesActor2D.cxx:151
vtkActor * GetWireActorXY()
Definition: SVTK_CubeAxesActor2D.h:77
void ShallowCopy(vtkProp *prop)
Definition: SVTK_CubeAxesActor2D.h:94
~SVTK_CubeAxesActor2D()
Definition: SVTK_CubeAxesActor2D.cxx:129
vtkRectilinearGridGeometryFilter * planeYZ
Definition: SVTK_CubeAxesActor2D.h:99
vtkPolyDataMapper * rgridMapperYZ
Definition: SVTK_CubeAxesActor2D.h:100
vtkSmartPointer< VTKViewer_Transform > m_Transform
Definition: SVTK_CubeAxesActor2D.h:105
void ReleaseGraphicsResources(vtkWindow *)
Definition: SVTK_CubeAxesActor2D.cxx:633
vtkActor * wireActorYZ
Definition: SVTK_CubeAxesActor2D.h:89
void SetTransform(VTKViewer_Transform *theTransform)
Definition: SVTK_CubeAxesActor2D.cxx:644
vtkPolyDataMapper * rgridMapperXY
Definition: SVTK_CubeAxesActor2D.h:97
VTKViewer_Transform * GetTransform()
Definition: SVTK_CubeAxesActor2D.cxx:648
int RenderOpaqueGeometry(vtkViewport *)
Definition: SVTK_CubeAxesActor2D.cxx:249
vtkActor * GetWireActorYZ()
Definition: SVTK_CubeAxesActor2D.h:78
vtkActor * wireActorXY
Definition: SVTK_CubeAxesActor2D.h:88
vtkRectilinearGridGeometryFilter * planeXY
Definition: SVTK_CubeAxesActor2D.h:96
vtkActor * wireActorXZ
Definition: SVTK_CubeAxesActor2D.h:90
void operator=(const SVTK_CubeAxesActor2D &)
vtkTypeMacro(SVTK_CubeAxesActor2D, vtkCubeAxesActor2D) static SVTK_CubeAxesActor2D *New()
vtkRectilinearGridGeometryFilter * planeXZ
Definition: SVTK_CubeAxesActor2D.h:102
vtkActor * GetWireActorXZ()
Definition: SVTK_CubeAxesActor2D.h:79
vtkPolyDataMapper * rgridMapperXZ
Definition: SVTK_CubeAxesActor2D.h:103
SVTK_CubeAxesActor2D(const SVTK_CubeAxesActor2D &)
Describes linear transformations via a 4x4 matrix.
Definition: VTKViewer_Transform.h:34