Version: 6.3.1

src/OBJECT/VISU_PickingSettings.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 //  VISU OBJECT : interactive object for VISU entities implementation
00021 //  File   : VISU_PickingSettings.cxx
00022 //  Author : Oleg UVAROV
00023 //  Module : VISU
00024 //
00025 #ifndef VISU_PickingSettings_HeaderFile
00026 #define VISU_PickingSettings_HeaderFile
00027 
00028 #include "VISU_OBJECT.h"
00029 #include <vtkObject.h>
00030 #include <vtkCommand.h>
00031 
00032 #include "VTKViewer.h"
00033 
00034 #include "VISU_Actor.h"
00035 
00036 //============================================================================
00037 namespace VISU
00038 {
00039   const vtkIdType UpdatePickingSettingsEvent     = vtkCommand::UserEvent + 103; 
00040 }
00041 
00043 
00049 class VISU_OBJECT_EXPORT VISU_PickingSettings : public vtkObject
00050 {
00051  public:
00052   enum { BelowPoint = 0, TopLeftCorner };
00053 
00054  public:
00055   vtkTypeMacro( VISU_PickingSettings, vtkObject );
00056 
00057   static
00058   VISU_PickingSettings*
00059   Get();
00060 
00061   static
00062   VISU_PickingSettings*
00063   New();
00064 
00065   vtkSetMacro( IsInitial, bool );
00066   vtkGetMacro( IsInitial, bool );
00067 
00068   vtkSetMacro( PyramidHeight, vtkFloatingPointType );
00069   vtkGetMacro( PyramidHeight, vtkFloatingPointType );
00070 
00071   vtkSetMacro( CursorSize, vtkFloatingPointType );
00072   vtkGetMacro( CursorSize, vtkFloatingPointType );
00073 
00074   vtkSetVector3Macro( Color, vtkFloatingPointType );
00075   vtkGetVector3Macro( Color, vtkFloatingPointType );
00076 
00077   vtkSetMacro( PointTolerance, vtkFloatingPointType );
00078   vtkGetMacro( PointTolerance, vtkFloatingPointType );
00079 
00080   vtkSetMacro( InfoWindowEnabled, bool );
00081   vtkGetMacro( InfoWindowEnabled, bool );
00082 
00083   vtkSetMacro( InfoWindowTransparency, vtkFloatingPointType );
00084   vtkGetMacro( InfoWindowTransparency, vtkFloatingPointType );
00085 
00086   vtkSetMacro( InfoWindowPosition, int );
00087   vtkGetMacro( InfoWindowPosition, int );
00088 
00089   vtkSetMacro( CameraMovementEnabled, bool );
00090   vtkGetMacro( CameraMovementEnabled, bool );
00091 
00092   vtkSetMacro( ZoomFactor, vtkFloatingPointType );
00093   vtkGetMacro( ZoomFactor, vtkFloatingPointType );
00094 
00095   vtkSetMacro( StepNumber, int );
00096   vtkGetMacro( StepNumber, int );
00097 
00098   vtkSetMacro( DisplayParentMesh, bool );
00099   vtkGetMacro( DisplayParentMesh, bool );
00100 
00101 private:
00102   VISU_PickingSettings();
00103   virtual ~VISU_PickingSettings();
00104 
00105 private:
00106   bool                 IsInitial;
00107 
00108   vtkFloatingPointType PyramidHeight;
00109   vtkFloatingPointType CursorSize;
00110 
00111   vtkFloatingPointType PointTolerance;
00112 
00113   vtkFloatingPointType Color[3];
00114 
00115   bool                 InfoWindowEnabled;
00116   vtkFloatingPointType InfoWindowTransparency;
00117   int                  InfoWindowPosition;
00118 
00119   bool                 CameraMovementEnabled;
00120   vtkFloatingPointType ZoomFactor;
00121   int                  StepNumber;
00122 
00123   bool                 DisplayParentMesh;
00124 };
00125 
00126 #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