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

vtkMatrixToHomogeneousTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMatrixToHomogeneousTransform.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00016 
00035 #ifndef __vtkMatrixToHomogeneousTransform_h
00036 #define __vtkMatrixToHomogeneousTransform_h
00037 
00038 #include "vtkHomogeneousTransform.h"
00039 
00040 class vtkMatrix4x4;
00041 
00042 class VTK_COMMON_EXPORT vtkMatrixToHomogeneousTransform : public vtkHomogeneousTransform
00043 {
00044  public:
00045   static vtkMatrixToHomogeneousTransform *New();
00046   vtkTypeRevisionMacro(vtkMatrixToHomogeneousTransform,vtkHomogeneousTransform);
00047   void PrintSelf (ostream& os, vtkIndent indent);
00048 
00049   // Set the input matrix.  Any modifications to the matrix will be
00050   // reflected in the transformation.
00051   virtual void SetInput(vtkMatrix4x4*);
00052   vtkGetObjectMacro(Input,vtkMatrix4x4);
00053 
00056   void Inverse();
00057 
00059   unsigned long GetMTime();
00060 
00062   vtkAbstractTransform *MakeTransform();
00063 
00065 
00066   void SetMatrix(vtkMatrix4x4 *matrix) {
00067     this->SetInput(matrix);
00068     vtkWarningMacro("SetMatrix: deprecated, use SetInput() instead"); }
00070 
00071 protected:
00072   vtkMatrixToHomogeneousTransform();
00073   ~vtkMatrixToHomogeneousTransform();
00074 
00075   void InternalUpdate();
00076   void InternalDeepCopy(vtkAbstractTransform *transform);
00077 
00078   int InverseFlag;
00079   vtkMatrix4x4 *Input;
00080 private:
00081   vtkMatrixToHomogeneousTransform(const vtkMatrixToHomogeneousTransform&);  // Not implemented.
00082   void operator=(const vtkMatrixToHomogeneousTransform&);  // Not implemented.
00083 };
00084 
00085 #endif