00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00019 #ifndef __vtkSMBoxWidgetProxy_h
00020 #define __vtkSMBoxWidgetProxy_h
00021
00022 #include "vtkSM3DWidgetProxy.h"
00023
00024 class vtkTransform;
00025 class vtkMatrix4x4;
00026
00027 class VTK_EXPORT vtkSMBoxWidgetProxy : public vtkSM3DWidgetProxy
00028 {
00029 public:
00030 static vtkSMBoxWidgetProxy* New();
00031 vtkTypeRevisionMacro(vtkSMBoxWidgetProxy, vtkSM3DWidgetProxy);
00032 void PrintSelf(ostream& os, vtkIndent indent);
00033
00035
00038 vtkSetVector3Macro(Position,double);
00039 vtkGetVector3Macro(Position,double);
00040 vtkSetVector3Macro(Scale,double);
00041 vtkGetVector3Macro(Scale,double);
00042 vtkSetVector3Macro(Rotation,double);
00043 vtkGetVector3Macro(Rotation,double);
00045
00047 virtual void UpdateVTKObjects();
00048
00049
00050 virtual void SaveInBatchScript(ofstream *file);
00051
00052 protected:
00053
00054 vtkSMBoxWidgetProxy();
00055 ~vtkSMBoxWidgetProxy();
00056
00058
00062 void SetMatrix(vtkMatrix4x4* mat);
00063 void GetMatrix(vtkMatrix4x4* mat);
00065
00067
00068 virtual void ExecuteEvent(vtkObject*, unsigned long, void*);
00069 virtual void CreateVTKObjects(int numObjects);
00071
00072 vtkTransform* BoxTransform;
00073
00074
00075 double Position[3];
00076 double Rotation[3];
00077 double Scale[3];
00078
00079 private:
00080 vtkSMBoxWidgetProxy(const vtkSMBoxWidgetProxy&);
00081 void operator=(const vtkSMBoxWidgetProxy&);
00082
00083 };
00084
00085 #endif