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

# Common/vtkMatrixToHomogeneousTransform.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkMatrixToHomogeneousTransform.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
    00047 #ifndef __vtkMatrixToHomogeneousTransform_h
    00048 #define __vtkMatrixToHomogeneousTransform_h
    00049
    00050 #include "vtkHomogeneousTransform.h"
    00051
    00052 class vtkMatrix4x4;
    00053
    00054 class VTK_COMMON_EXPORT vtkMatrixToHomogeneousTransform : public vtkHomogeneousTransform
    00055 {
    00056  public:
    00057   static vtkMatrixToHomogeneousTransform *New();
    00058   vtkTypeRevisionMacro(vtkMatrixToHomogeneousTransform,vtkHomogeneousTransform);
    00059   void PrintSelf (ostream& os, vtkIndent indent);
    00060
    00061   // Set the input matrix.  Any modifications to the matrix will be
    00062   // reflected in the transformation.
    00063   virtual void SetInput(vtkMatrix4x4*);
    00064   vtkGetObjectMacro(Input,vtkMatrix4x4);
    00065
    00068   void Inverse();
    00069
    00071   unsigned long GetMTime();
    00072
    00074   vtkAbstractTransform *MakeTransform();
    00075
    00077
    00078   void SetMatrix(vtkMatrix4x4 *matrix) {
    00079     this->SetInput(matrix);
    00080     vtkWarningMacro("SetMatrix: deprecated, use SetInput() instead"); }
    00082
    00083 protected:
    00084   vtkMatrixToHomogeneousTransform();
    00085   ~vtkMatrixToHomogeneousTransform();
    00086
    00087   void InternalUpdate();
    00088   void InternalDeepCopy(vtkAbstractTransform *transform);
    00089
    00090   int InverseFlag;
    00091   vtkMatrix4x4 *Input;
    00092 private:
    00093   vtkMatrixToHomogeneousTransform(const vtkMatrixToHomogeneousTransform&);  // Not implemented.
    00094   void operator=(const vtkMatrixToHomogeneousTransform&);  // Not implemented.
    00095 };
    00096
    00097 #endif