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 00031 #ifndef __vtkMatrixToLinearTransform_h 00032 #define __vtkMatrixToLinearTransform_h 00033 00034 #include "vtkLinearTransform.h" 00035 00036 class vtkMatrix4x4; 00037 00038 class VTK_COMMON_EXPORT vtkMatrixToLinearTransform : public vtkLinearTransform 00039 { 00040 public: 00041 static vtkMatrixToLinearTransform *New(); 00042 vtkTypeRevisionMacro(vtkMatrixToLinearTransform,vtkLinearTransform); 00043 void PrintSelf (ostream& os, vtkIndent indent); 00044 00046 00048 virtual void SetInput(vtkMatrix4x4*); 00049 vtkGetObjectMacro(Input,vtkMatrix4x4); 00051 00054 void Inverse(); 00055 00057 unsigned long GetMTime(); 00058 00060 vtkAbstractTransform *MakeTransform(); 00061 00063 00064 void SetMatrix(vtkMatrix4x4 *matrix) { 00065 this->SetInput(matrix); 00066 vtkWarningMacro("SetMatrix: deprecated, use SetInput() instead"); } 00068 00069 protected: 00070 vtkMatrixToLinearTransform(); 00071 ~vtkMatrixToLinearTransform(); 00072 00073 void InternalUpdate(); 00074 void InternalDeepCopy(vtkAbstractTransform *transform); 00075 00076 int InverseFlag; 00077 vtkMatrix4x4 *Input; 00078 private: 00079 vtkMatrixToLinearTransform(const vtkMatrixToLinearTransform&); // Not implemented. 00080 void operator=(const vtkMatrixToLinearTransform&); // Not implemented. 00081 }; 00082 00083 #endif