00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00058 #ifndef __vtkPointSet_h
00059 #define __vtkPointSet_h
00060
00061 #include "vtkDataSet.h"
00062 #include "vtkPointLocator.h"
00063
00064 class VTK_EXPORT vtkPointSet : public vtkDataSet
00065 {
00066 public:
00067 vtkTypeMacro(vtkPointSet,vtkDataSet);
00068 void PrintSelf(ostream& os, vtkIndent indent);
00069
00071 void Initialize();
00072
00074 void CopyStructure(vtkDataSet *pd);
00075
00077 int GetNumberOfPoints();
00078 float *GetPoint(int ptId) {return this->Points->GetPoint(ptId);};
00079 void GetPoint(int ptId, float x[3]) {this->Points->GetPoint(ptId,x);};
00080 int FindPoint(float x[3]);
00081 int FindPoint(float x, float y, float z) { return this->vtkDataSet::FindPoint(x, y, z);};
00082 int FindCell(float x[3], vtkCell *cell, int cellId, float tol2, int& subId,
00083 float pcoords[3], float *weights);
00084 int FindCell(float x[3], vtkCell *cell, vtkGenericCell *gencell,
00085 int cellId, float tol2, int& subId,
00086 float pcoords[3], float *weights);
00087
00089 unsigned long GetMTime();
00090
00092 void ComputeBounds();
00093
00095 void Squeeze();
00096
00098 vtkSetObjectMacro(Points,vtkPoints);
00099 vtkGetObjectMacro(Points,vtkPoints);
00100
00102 void UnRegister(vtkObject *o);
00103
00107 virtual int GetNetReferenceCount();
00108
00114 unsigned long GetActualMemorySize();
00115
00117 void ShallowCopy(vtkDataObject *src);
00118 void DeepCopy(vtkDataObject *src);
00119
00120 protected:
00121 vtkPointSet();
00122 ~vtkPointSet();
00123 vtkPointSet(const vtkPointSet&) {};
00124 void operator=(const vtkPointSet&) {};
00125
00126 vtkPoints *Points;
00127 vtkPointLocator *Locator;
00128
00129 };
00130
00131 inline int vtkPointSet::GetNumberOfPoints()
00132 {
00133 if (this->Points)
00134 {
00135 return this->Points->GetNumberOfPoints();
00136 }
00137 else
00138 {
00139 return 0;
00140 }
00141 }
00142
00143
00144 #endif
00145
00146