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 VTK_LEGACY(void SetMatrix(vtkMatrix4x4 *matrix)); 00062 00063 protected: 00064 vtkMatrixToHomogeneousTransform(); 00065 ~vtkMatrixToHomogeneousTransform(); 00066 00067 void InternalUpdate(); 00068 void InternalDeepCopy(vtkAbstractTransform *transform); 00069 00070 int InverseFlag; 00071 vtkMatrix4x4 *Input; 00072 private: 00073 vtkMatrixToHomogeneousTransform(const vtkMatrixToHomogeneousTransform&); // Not implemented. 00074 void operator=(const vtkMatrixToHomogeneousTransform&); // Not implemented. 00075 }; 00076 00077 #endif