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