• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Filtering/vtkVoxel.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkVoxel.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 =========================================================================*/
00030 #ifndef __vtkVoxel_h
00031 #define __vtkVoxel_h
00032 
00033 #include "vtkCell3D.h"
00034 
00035 class vtkLine;
00036 class vtkPixel;
00037 
00038 class VTK_FILTERING_EXPORT vtkVoxel : public vtkCell3D
00039 {
00040 public:
00041   static vtkVoxel *New();
00042   vtkTypeRevisionMacro(vtkVoxel,vtkCell3D);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   virtual void GetEdgePoints(int edgeId, int* &pts);
00048   virtual void GetFacePoints(int faceId, int* &pts);
00049   virtual double *GetParametricCoords();
00051 
00053 
00054   int GetCellType() {return VTK_VOXEL;}
00055   int GetCellDimension() {return 3;}
00056   int GetNumberOfEdges() {return 12;}
00057   int GetNumberOfFaces() {return 6;}
00058   vtkCell *GetEdge(int edgeId);
00059   vtkCell *GetFace(int faceId);
00060   int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00061   void Contour(double value, vtkDataArray *cellScalars,
00062                vtkPointLocator *locator, vtkCellArray *verts,
00063                vtkCellArray *lines, vtkCellArray *polys,
00064                vtkPointData *inPd, vtkPointData *outPd,
00065                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00066   int EvaluatePosition(double x[3], double* closestPoint,
00067                        int& subId, double pcoords[3],
00068                        double& dist2, double *weights);
00069   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00070                         double *weights);
00071   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00072                         double x[3], double pcoords[3], int& subId);
00073   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00074   void Derivatives(int subId, double pcoords[3], double *values,
00075                    int dim, double *derivs);
00077 
00079 
00080   static void InterpolationFunctions(double pcoords[3], double weights[8]);
00081   // Description:
00082   // @deprecated Replaced by vtkVoxel::InterpolateDerivs as of VTK 5.2
00083   static void InterpolationDerivs(double pcoords[3], double derivs[24]);
00084   // Description:
00085   // Compute the interpolation functions/derivatives
00086   // (aka shape functions/derivatives)
00087   virtual void InterpolateFunctions(double pcoords[3], double weights[8])
00088     {
00089     vtkVoxel::InterpolationFunctions(pcoords,weights);
00090     }
00091   virtual void InterpolateDerivs(double pcoords[3], double derivs[24])
00092     {
00093     vtkVoxel::InterpolationDerivs(pcoords,derivs);
00094     }
00096 
00098 
00100   static int *GetEdgeArray(int edgeId);
00101   static int *GetFaceArray(int faceId);
00103 
00104 protected:
00105   vtkVoxel();
00106   ~vtkVoxel();
00107 
00108   vtkLine *Line;
00109   vtkPixel *Pixel;
00110 
00111 private:
00112   vtkVoxel(const vtkVoxel&);  // Not implemented.
00113   void operator=(const vtkVoxel&);  // Not implemented.
00114 };
00115 
00116 #endif
00117 
00118 

Generated by  doxygen 1.7.1