50 virtual void Initialize();
65 virtual int GetDataType();
69 virtual void SetDataType(
int dataType);
85 void *
GetVoidPointer(
const int id) {
return this->Data->GetVoidPointer(
id); }
88 virtual void Squeeze() { this->Data->Squeeze(); }
107 unsigned long GetActualMemorySize();
127 void SetPoint(
vtkIdType id,
double x,
double y);
134 { this->Data->InsertTuple(
id,x); }
136 { this->Data->InsertTuple(
id,x); }
137 void InsertPoint(
vtkIdType id,
double x,
double y);
143 {
return this->Data->InsertNextTuple(x); }
145 {
return this->Data->InsertNextTuple(x); }
146 vtkIdType InsertNextPoint(
double x,
double y);
155 void SetNumberOfPoints(
vtkIdType numPoints);
165 virtual void ComputeBounds();
171 void GetBounds(
double bounds[4]);
194 this->Data->SetNumberOfComponents(2);
195 this->Data->SetNumberOfTuples(numPoints);
201 this->Data->SetNumberOfComponents(2);
203 return this->Data->Resize(numPoints);
208 double p[2] = { x, y };
209 this->Data->SetTuple(
id, p);
214 double p[2] = { x, y };
215 this->Data->InsertTuple(
id, p);
220 double p[2] = { x, y };
221 return this->Data->InsertNextTuple(p);
void SetDataTypeToDouble()
void InsertPoint(vtkIdType id, const double x[2])
abstract base class for most VTK objects
#define VTK_UNSIGNED_SHORT
void SetDataTypeToUnsignedChar()
void * GetVoidPointer(const int id)
#define VTKCOMMONCORE_EXPORT
void InsertPoint(vtkIdType id, const float x[2])
record modification and/or execution time
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
void GetPoint(vtkIdType id, double x[2])
#define vtkTypeMacro(thisClass, superclass)
void SetDataTypeToUnsignedShort()
void SetNumberOfPoints(vtkIdType numPoints)
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
represent and manipulate 2D points
list of point or cell ids
void SetPoint(vtkIdType id, const float x[2])
abstract superclass for arrays of numeric data
void SetDataTypeToUnsignedInt()
void SetPoint(vtkIdType id, const double x[2])
int Resize(vtkIdType numPoints)
double * GetPoint(vtkIdType id)
#define VTK_UNSIGNED_CHAR
vtkIdType InsertNextPoint(const float x[2])
void RemovePoint(vtkIdType id)
#define VTK_UNSIGNED_LONG
vtkIdType GetNumberOfPoints()
void SetDataTypeToFloat()
void SetDataTypeToUnsignedLong()
void SetDataTypeToShort()
vtkIdType InsertNextPoint(const double x[2])