00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMatrixToHomogeneousTransform.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/ 00015 00031 #ifndef __vtkMatrixToHomogeneousTransform_h 00032 #define __vtkMatrixToHomogeneousTransform_h 00033 00034 #include "vtkHomogeneousTransform.h" 00035 00036 class vtkMatrix4x4; 00037 00038 class VTK_COMMON_EXPORT vtkMatrixToHomogeneousTransform : public vtkHomogeneousTransform 00039 { 00040 public: 00041 static vtkMatrixToHomogeneousTransform *New(); 00042 vtkTypeRevisionMacro(vtkMatrixToHomogeneousTransform,vtkHomogeneousTransform); 00043 void PrintSelf (ostream& os, vtkIndent indent); 00044 00045 // Set the input matrix. Any modifications to the matrix will be 00046 // reflected in the transformation. 00047 virtual void SetInput(vtkMatrix4x4*); 00048 vtkGetObjectMacro(Input,vtkMatrix4x4); 00049 00052 void Inverse(); 00053 00055 unsigned long GetMTime(); 00056 00058 vtkAbstractTransform *MakeTransform(); 00059 00061 00062 void SetMatrix(vtkMatrix4x4 *matrix) { 00063 this->SetInput(matrix); 00064 vtkWarningMacro("SetMatrix: deprecated, use SetInput() instead"); } 00066 00067 protected: 00068 vtkMatrixToHomogeneousTransform(); 00069 ~vtkMatrixToHomogeneousTransform(); 00070 00071 void InternalUpdate(); 00072 void InternalDeepCopy(vtkAbstractTransform *transform); 00073 00074 int InverseFlag; 00075 vtkMatrix4x4 *Input; 00076 private: 00077 vtkMatrixToHomogeneousTransform(const vtkMatrixToHomogeneousTransform&); // Not implemented. 00078 void operator=(const vtkMatrixToHomogeneousTransform&); // Not implemented. 00079 }; 00080 00081 #endif