Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
Common/vtkVoxel.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00045 #ifndef __vtkVoxel_h
00046 #define __vtkVoxel_h
00047
00048 #include "vtkCell3D.h"
00049
00050 class vtkLine;
00051 class vtkPixel;
00052
00053 class VTK_COMMON_EXPORT vtkVoxel : public vtkCell3D
00054 {
00055 public:
00056 static vtkVoxel *New();
00057 vtkTypeRevisionMacro(vtkVoxel,vtkCell3D);
00058
00060
00061 virtual void GetEdgePoints(int edgeId, int* &pts);
00062 virtual void GetFacePoints(int faceId, int* &pts);
00063 virtual float *GetParametricCoords();
00065
00067
00068 int GetCellType() {return VTK_VOXEL;}
00069 int GetCellDimension() {return 3;}
00070 int GetNumberOfEdges() {return 12;}
00071 int GetNumberOfFaces() {return 6;}
00072 vtkCell *GetEdge(int edgeId);
00073 vtkCell *GetFace(int faceId);
00074 int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
00075 void Contour(float value, vtkDataArray *cellScalars,
00076 vtkPointLocator *locator, vtkCellArray *verts,
00077 vtkCellArray *lines, vtkCellArray *polys,
00078 vtkPointData *inPd, vtkPointData *outPd,
00079 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00080 int EvaluatePosition(float x[3], float* closestPoint,
00081 int& subId, float pcoords[3],
00082 float& dist2, float *weights);
00083 void EvaluateLocation(int& subId, float pcoords[3], float x[3],
00084 float *weights);
00085 int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
00086 float x[3], float pcoords[3], int& subId);
00087 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00088 void Derivatives(int subId, float pcoords[3], float *values,
00089 int dim, float *derivs);
00091
00093
00094 static void InterpolationFunctions(float pcoords[3], float weights[8]);
00095 static void InterpolationDerivs(float pcoords[3], float derivs[24]);
00096 static int *GetEdgeArray(int edgeId);
00097 static int *GetFaceArray(int faceId);
00099
00100 protected:
00101 vtkVoxel();
00102 ~vtkVoxel();
00103
00104 vtkLine *Line;
00105 vtkPixel *Pixel;
00106
00107 private:
00108 vtkVoxel(const vtkVoxel&);
00109 void operator=(const vtkVoxel&);
00110 };
00111
00112 #endif
00113
00114