Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkHomogeneousTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkHomogeneousTransform.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 =========================================================================*/
00036 #ifndef __vtkHomogeneousTransform_h
00037 #define __vtkHomogeneousTransform_h
00038 
00039 #include "vtkAbstractTransform.h"
00040 
00041 class vtkMatrix4x4;
00042 
00043 class VTK_COMMON_EXPORT vtkHomogeneousTransform : public vtkAbstractTransform
00044 {
00045 public:
00046 
00047   vtkTypeRevisionMacro(vtkHomogeneousTransform,vtkAbstractTransform);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00052   void TransformPoints(vtkPoints *inPts, vtkPoints *outPts);
00053 
00055 
00057   virtual void TransformPointsNormalsVectors(vtkPoints *inPts, 
00058                                              vtkPoints *outPts, 
00059                                              vtkDataArray *inNms, 
00060                                              vtkDataArray *outNms,
00061                                              vtkDataArray *inVrs, 
00062                                              vtkDataArray *outVrs);
00064 
00067   void GetMatrix(vtkMatrix4x4 *m);
00068 
00073   vtkMatrix4x4 *GetMatrix() { this->Update(); return this->Matrix; };
00074 
00076 
00078   vtkHomogeneousTransform *GetHomogeneousInverse() {
00079     return (vtkHomogeneousTransform *)this->GetInverse(); };
00081 
00083 
00085   void InternalTransformPoint(const float in[3], float out[3]);
00086   void InternalTransformPoint(const double in[3], double out[3]);
00088 
00090 
00092   void InternalTransformDerivative(const float in[3], float out[3],
00093                                    float derivative[3][3]);
00094   void InternalTransformDerivative(const double in[3], double out[3],
00095                                    double derivative[3][3]);
00097 
00098 protected:
00099   vtkHomogeneousTransform();
00100   ~vtkHomogeneousTransform();
00101 
00102   void InternalDeepCopy(vtkAbstractTransform *transform);
00103 
00104   vtkMatrix4x4 *Matrix;
00105 
00106 private:
00107   vtkHomogeneousTransform(const vtkHomogeneousTransform&);  // Not implemented.
00108   void operator=(const vtkHomogeneousTransform&);  // Not implemented.
00109 };
00110 
00111 #endif
00112 
00113 
00114 
00115 
00116