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
00056 #ifndef __vtkPointSet_h
00057 #define __vtkPointSet_h
00058
00059 #include "vtkDataSet.h"
00060 #include "vtkPointLocator.h"
00061
00062 class VTK_COMMON_EXPORT vtkPointSet : public vtkDataSet
00063 {
00064 public:
00065 vtkTypeMacro(vtkPointSet,vtkDataSet);
00066 void PrintSelf(ostream& os, vtkIndent indent);
00067
00069 void Initialize();
00070
00072 void CopyStructure(vtkDataSet *pd);
00073
00075
00076 vtkIdType GetNumberOfPoints();
00077 float *GetPoint(vtkIdType ptId) {return this->Points->GetPoint(ptId);};
00078 void GetPoint(vtkIdType ptId, float x[3]) {this->Points->GetPoint(ptId,x);};
00079 vtkIdType FindPoint(float x[3]);
00080 vtkIdType FindPoint(float x, float y, float z) { return this->vtkDataSet::FindPoint(x, y, z);};
00081 vtkIdType FindCell(float x[3], vtkCell *cell, vtkIdType cellId, float tol2,
00082 int& subId, float pcoords[3], float *weights);
00083 vtkIdType FindCell(float x[3], vtkCell *cell, vtkGenericCell *gencell,
00084 vtkIdType cellId, float tol2, int& subId,
00085 float pcoords[3], float *weights);
00087
00089 unsigned long GetMTime();
00090
00092 void ComputeBounds();
00093
00095 void Squeeze();
00096
00098
00099 vtkSetObjectMacro(Points,vtkPoints);
00100 vtkGetObjectMacro(Points,vtkPoints);
00102
00104 void UnRegister(vtkObject *o);
00105
00109 virtual int GetNetReferenceCount();
00110
00116 unsigned long GetActualMemorySize();
00117
00119
00120 void ShallowCopy(vtkDataObject *src);
00121 void DeepCopy(vtkDataObject *src);
00123
00124 protected:
00125 vtkPointSet();
00126 ~vtkPointSet();
00127
00128 vtkPoints *Points;
00129 vtkPointLocator *Locator;
00130
00131 private:
00132 vtkPointSet(const vtkPointSet&);
00133 void operator=(const vtkPointSet&);
00134 };
00135
00136 inline vtkIdType vtkPointSet::GetNumberOfPoints()
00137 {
00138 if (this->Points)
00139 {
00140 return this->Points->GetNumberOfPoints();
00141 }
00142 else
00143 {
00144 return 0;
00145 }
00146 }
00147
00148
00149 #endif
00150
00151