00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMatrixToLinearTransform.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 00042 #ifndef __vtkMatrixToLinearTransform_h 00043 #define __vtkMatrixToLinearTransform_h 00044 00045 #include "vtkLinearTransform.h" 00046 00047 class vtkMatrix4x4; 00048 00049 class VTK_COMMON_EXPORT vtkMatrixToLinearTransform : public vtkLinearTransform 00050 { 00051 public: 00052 static vtkMatrixToLinearTransform *New(); 00053 vtkTypeRevisionMacro(vtkMatrixToLinearTransform,vtkLinearTransform); 00054 void PrintSelf (ostream& os, vtkIndent indent); 00055 00057 00059 virtual void SetInput(vtkMatrix4x4*); 00060 vtkGetObjectMacro(Input,vtkMatrix4x4); 00062 00065 void Inverse(); 00066 00068 unsigned long GetMTime(); 00069 00071 vtkAbstractTransform *MakeTransform(); 00072 00074 00075 void SetMatrix(vtkMatrix4x4 *matrix) { 00076 this->SetInput(matrix); 00077 vtkWarningMacro("SetMatrix: deprecated, use SetInput() instead"); } 00079 00080 protected: 00081 vtkMatrixToLinearTransform(); 00082 ~vtkMatrixToLinearTransform(); 00083 00084 void InternalUpdate(); 00085 void InternalDeepCopy(vtkAbstractTransform *transform); 00086 00087 int InverseFlag; 00088 vtkMatrix4x4 *Input; 00089 private: 00090 vtkMatrixToLinearTransform(const vtkMatrixToLinearTransform&); // Not implemented. 00091 void operator=(const vtkMatrixToLinearTransform&); // Not implemented. 00092 }; 00093 00094 #endif