Common/vtkMatrixToLinearTransform.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Common/vtkMatrixToLinearTransform.h

Go to the documentation of this file.

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