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

vtkVertex.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkVertex.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 =========================================================================*/
00037 #ifndef __vtkVertex_h
00038 #define __vtkVertex_h
00039 
00040 #include "vtkCell.h"
00041 
00042 class VTK_FILTERING_EXPORT vtkVertex : public vtkCell
00043 {
00044 public:
00045   static vtkVertex *New();
00046   vtkTypeRevisionMacro(vtkVertex,vtkCell);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00053   int GetCellType() {return VTK_VERTEX;};
00054   int GetCellDimension() {return 0;};
00055   int GetNumberOfEdges() {return 0;};
00056   int GetNumberOfFaces() {return 0;};
00057   vtkCell *GetEdge(int) {return 0;};
00058   vtkCell *GetFace(int) {return 0;};
00059   void Clip(double value, vtkDataArray *cellScalars, 
00060             vtkPointLocator *locator, vtkCellArray *pts,
00061             vtkPointData *inPd, vtkPointData *outPd,
00062             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00063             int insideOut);
00064   int EvaluatePosition(double x[3], double* closestPoint, 
00065                        int& subId, double pcoords[3], 
00066                        double& dist2, double *weights);
00067   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00068                         double *weights);
00069   virtual double *GetParametricCoords();
00071 
00077   int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00078 
00080 
00084   void Contour(double value, vtkDataArray *cellScalars, 
00085                vtkPointLocator *locator, vtkCellArray *verts1, 
00086                vtkCellArray *lines, vtkCellArray *verts2, 
00087                vtkPointData *inPd, vtkPointData *outPd,
00088                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00090 
00092 
00095   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00096                         double x[3], double pcoords[3], int& subId);
00098   
00101   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00102 
00104 
00106   void Derivatives(int subId, double pcoords[3], double *values, 
00107                    int dim, double *derivs);
00109 
00111   static void InterpolationFunctions(double pcoords[3], double weights[1]);
00112 
00113 protected:
00114   vtkVertex();
00115   ~vtkVertex() {};
00116   
00117 private:
00118   vtkVertex(const vtkVertex&);  // Not implemented.
00119   void operator=(const vtkVertex&);  // Not implemented.
00120 };
00121 
00122 #endif
00123 
00124