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

vtkPixel.h

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