Common/vtkPixel.h Source File

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

# Common/vtkPixel.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkPixel.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 =========================================================================*/
    00047 #ifndef __vtkPixel_h
    00048 #define __vtkPixel_h
    00049
    00050 #include "vtkCell.h"
    00051
    00052 class vtkLine;
    00053
    00054 class VTK_COMMON_EXPORT vtkPixel : public vtkCell
    00055 {
    00056 public:
    00057   static vtkPixel *New();
    00058   vtkTypeRevisionMacro(vtkPixel,vtkCell);
    00059
    00061
    00062   int GetCellType() {return VTK_PIXEL;};
    00063   int GetCellDimension() {return 2;};
    00064   int GetNumberOfEdges() {return 4;};
    00065   int GetNumberOfFaces() {return 0;};
    00066   vtkCell *GetEdge(int edgeId);
    00067   vtkCell *GetFace(int) {return 0;};
    00068   int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
    00069   void Contour(float value, vtkDataArray *cellScalars,
    00070                vtkPointLocator *locator, vtkCellArray *verts,
    00071                vtkCellArray *lines, vtkCellArray *polys,
    00072                vtkPointData *inPd, vtkPointData *outPd,
    00073                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
    00074   void Clip(float value, vtkDataArray *cellScalars,
    00075             vtkPointLocator *locator, vtkCellArray *polys,
    00076             vtkPointData *inPd, vtkPointData *outPd,
    00077             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
    00078             int insideOut);
    00079   int EvaluatePosition(float x[3], float* closestPoint,
    00080                        int& subId, float pcoords[3],
    00081                        float& dist2, float *weights);
    00082   void EvaluateLocation(int& subId, float pcoords[3], float x[3],
    00083                         float *weights);
    00084   int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
    00085                         float x[3], float pcoords[3], int& subId);
    00086   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
    00087   void Derivatives(int subId, float pcoords[3], float *values,
    00088                    int dim, float *derivs);
    00090
    00092
    00093   static void InterpolationFunctions(float pcoords[3], float weights[4]);
    00094   static void InterpolationDerivs(float pcoords[3], float derivs[8]);
    00096
    00097
    00098 protected:
    00099   vtkPixel();
    00100   ~vtkPixel();
    00101
    00102   vtkLine *Line;
    00103
    00104 private:
    00105   vtkPixel(const vtkPixel&);  // Not implemented.
    00106   void operator=(const vtkPixel&);  // Not implemented.
    00107 };
    00108
    00109 #endif
    00110
    00111