Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Servers/ServerManager/vtkSMBoxWidgetProxy.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkSMBoxWidgetProxy.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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   // Save the proxy state in the batch file.
00050   virtual void SaveInBatchScript(ofstream *file);
00051 
00052 protected:
00053   //BTX
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   //Current iVars.
00075   double Position[3];
00076   double Rotation[3];
00077   double Scale[3];
00078 
00079 private:
00080   vtkSMBoxWidgetProxy(const vtkSMBoxWidgetProxy&); // Not implemented
00081   void operator=(const vtkSMBoxWidgetProxy&); // Not implemented
00082   //ETX
00083 };
00084 
00085 #endif

Generated on Tue May 30 12:31:47 2006 for ParaView by doxygen 1.3.5