Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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