Common/vtkIdentityTransform.h Source File

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

# Common/vtkIdentityTransform.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkIdentityTransform.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 =========================================================================*/
    00043 #ifndef __vtkIdentityTransform_h
    00044 #define __vtkIdentityTransform_h
    00045
    00046 #include "vtkLinearTransform.h"
    00047
    00048 class VTK_COMMON_EXPORT vtkIdentityTransform : public vtkLinearTransform
    00049 {
    00050 public:
    00051   static vtkIdentityTransform *New();
    00052
    00053   vtkTypeRevisionMacro(vtkIdentityTransform,vtkLinearTransform);
    00054   void PrintSelf(ostream& os, vtkIndent indent);
    00055
    00058   void TransformPoints(vtkPoints *inPts, vtkPoints *outPts);
    00059
    00062   void TransformNormals(vtkDataArray *inNms, vtkDataArray *outNms);
    00063
    00066   void TransformVectors(vtkDataArray *inVrs, vtkDataArray *outVrs);
    00067
    00069
    00071   void TransformPointsNormalsVectors(vtkPoints *inPts,
    00072                                      vtkPoints *outPts,
    00073                                      vtkDataArray *inNms,
    00074                                      vtkDataArray *outNms,
    00075                                      vtkDataArray *inVrs,
    00076                                      vtkDataArray *outVrs);
    00078
    00079   // Invert the transformation.  This doesn't do anything to the
    00080   // identity transformation.
    00081   void Inverse() {};
    00082
    00084
    00086   void InternalTransformPoint(const float in[3], float out[3]);
    00087   void InternalTransformPoint(const double in[3], double out[3]);
    00089
    00091
    00093   void InternalTransformNormal(const float in[3], float out[3]);
    00094   void InternalTransformNormal(const double in[3], double out[3]);
    00096
    00098
    00100   void InternalTransformVector(const float in[3], float out[3]);
    00101   void InternalTransformVector(const double in[3], double out[3]);
    00103
    00105
    00107   void InternalTransformDerivative(const float in[3], float out[3],
    00108                                    float derivative[3][3]);
    00109   void InternalTransformDerivative(const double in[3], double out[3],
    00110                                    double derivative[3][3]);
    00112
    00115   vtkAbstractTransform *MakeTransform();
    00116
    00117 protected:
    00118   vtkIdentityTransform();
    00119   ~vtkIdentityTransform();
    00120
    00121   void InternalDeepCopy(vtkAbstractTransform *t);
    00122
    00123 private:
    00124   vtkIdentityTransform(const vtkIdentityTransform&);  // Not implemented.
    00125   void operator=(const vtkIdentityTransform&);  // Not implemented.
    00126 };
    00127
    00128 #endif
    00129
    00130
    00131
    00132
    00133