Version: 6.3.1

src/SVTK/SVTK_CubeAxesActor2D.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  SALOME OBJECT : kernel of SALOME component
00024 //  File   : SVTK_CubeAxesActor2D.h
00025 //  Author : Eugeny Nikolaev
00026 //  Module : SALOME
00027 //  $Header: /home/server/cvs/GUI/GUI_SRC/src/SVTK/SVTK_CubeAxesActor2D.h,v 1.6.22.1.12.1 2011-06-01 13:53:40 vsr Exp $
00028 //
00029 #ifndef __SVTK_CubeAxesActor2D_h
00030 #define __SVTK_CubeAxesActor2D_h
00031 
00032 #include <vtkCubeAxesActor2D.h>
00033 #include <vtkSmartPointer.h>
00034 
00035 class vtkActor;
00036 class vtkAxisActor2D;
00037 class vtkCamera;
00038 class vtkDataSet;
00039 class vtkTextProperty;
00040 class vtkPolyDataMapper;
00041 class vtkRectilinearGridGeometryFilter;
00042 class VTKViewer_Transform;
00043 
00044 #include "SVTK.h"
00045 #include "VTKViewer.h"
00046 
00047 #ifdef WIN32
00048 #pragma warning ( disable:4251 )
00049 #endif
00050 
00051 #ifndef WIN32
00052 class VTK_HYBRID_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
00053 #else
00054 class SVTK_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
00055 #endif
00056 {
00057 public:
00058   vtkTypeRevisionMacro(SVTK_CubeAxesActor2D,vtkCubeAxesActor2D);
00059 
00060   // Description:
00061   // Instantiate object with bold, italic, and shadow enabled; font family
00062   // set to Arial; and label format "6.3g". The number of labels per axis
00063   // is set to 3.
00064   static SVTK_CubeAxesActor2D *New();
00065   
00066   // Description:
00067   // Draw the axes as per the vtkProp superclass' API.
00068   int RenderOverlay(vtkViewport*);
00069   int RenderOpaqueGeometry(vtkViewport*);
00070 
00071   // Description:
00072   // Release any graphics resources that are being consumed by this actor.
00073   // The parameter window could be used to determine which graphic
00074   // resources to release.
00075   void ReleaseGraphicsResources(vtkWindow *);
00076 
00077   // Description:
00078   
00079   vtkActor* GetWireActorXY(){return this->wireActorXY;}
00080   vtkActor* GetWireActorYZ(){return this->wireActorYZ;}
00081   vtkActor* GetWireActorXZ(){return this->wireActorXZ;}
00082 
00083   void SetTransform(VTKViewer_Transform* theTransform);
00084   VTKViewer_Transform* GetTransform();
00085   
00086 protected:
00087   SVTK_CubeAxesActor2D();
00088   ~SVTK_CubeAxesActor2D();
00089 
00090   vtkActor* wireActorXY;
00091   vtkActor* wireActorYZ;
00092   vtkActor* wireActorXZ;
00093 
00094 private:
00095   // hide the superclass' ShallowCopy() from the user and the compiler.
00096   void ShallowCopy(vtkProp *prop) { this->vtkProp::ShallowCopy( prop ); };
00097 
00098   vtkRectilinearGridGeometryFilter *planeXY; // rectilinear grid XY
00099   vtkPolyDataMapper *rgridMapperXY;
00100   
00101   vtkRectilinearGridGeometryFilter *planeYZ; // rectilinear grid YZ
00102   vtkPolyDataMapper *rgridMapperYZ;
00103 
00104   vtkRectilinearGridGeometryFilter *planeXZ; // rectilinear grid XZ
00105   vtkPolyDataMapper *rgridMapperXZ;
00106   
00107   vtkSmartPointer<VTKViewer_Transform> m_Transform;
00108 private:
00109   SVTK_CubeAxesActor2D(const SVTK_CubeAxesActor2D&);  // Not implemented.
00110   void operator=(const SVTK_CubeAxesActor2D&);  // Not implemented.
00111 };
00112 
00113 #ifdef WIN32
00114 #pragma warning ( default:4251 )
00115 #endif
00116 
00117 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS