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

vtkHexahedron.h

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

Generated on Mon Jan 21 23:07:19 2008 for VTK by  doxygen 1.4.3-20050530