25 #ifndef __vtkPoints2D_h
26 #define __vtkPoints2D_h
49 virtual void Initialize();
64 virtual int GetDataType();
68 virtual void SetDataType(
int dataType);
87 virtual void Squeeze() {this->Data->Squeeze();};
90 virtual void Reset() {this->Data->Reset();};
106 unsigned long GetActualMemorySize();
126 void SetPoint(
vtkIdType id,
double x,
double y);
133 { this->Data->InsertTuple(
id,x);}
135 {this->Data->InsertTuple(
id,x);}
136 void InsertPoint(
vtkIdType id,
double x,
double y);
142 return this->Data->InsertNextTuple(x);}
144 return this->Data->InsertNextTuple(x);}
145 vtkIdType InsertNextPoint(
double x,
double y);
151 void SetNumberOfPoints(
vtkIdType number);
157 virtual void ComputeBounds();
163 void GetBounds(
double bounds[4]);
186 double p[2] = { x, y };
192 double p[2] = { x, y };
198 double p[2] = { x, y };
void SetDataTypeToDouble()
void InsertPoint(vtkIdType id, const double x[2])
void SetNumberOfPoints(vtkIdType number)
abstract base class for most VTK objects
#define VTK_UNSIGNED_SHORT
void SetDataTypeToUnsignedChar()
void * GetVoidPointer(const int id)
void InsertPoint(vtkIdType id, const float x[2])
record modification and/or execution time
virtual void SetNumberOfTuples(vtkIdType number)=0
void GetPoint(vtkIdType id, double x[2])
void SetDataTypeToUnsignedShort()
virtual void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
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()
virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
void SetPoint(vtkIdType id, const double x[2])
virtual void SetNumberOfComponents(int)
double * GetPoint(vtkIdType id)
#define VTK_UNSIGNED_CHAR
vtkIdType InsertNextPoint(const float x[2])
#define VTK_UNSIGNED_LONG
vtkIdType GetNumberOfPoints()
void SetDataTypeToFloat()
void SetDataTypeToUnsignedLong()
void SetDataTypeToShort()
vtkIdType InsertNextPoint(const double x[2])
virtual vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source)=0