17 #include "vtkCommonCoreModule.h"
22 VTK_ABI_NAMESPACE_BEGIN
43 virtual void Initialize();
60 virtual int GetDataType()
const;
65 virtual void SetDataType(
int dataType);
82 void*
GetVoidPointer(
const int id) {
return this->Data->GetVoidPointer(
id); }
87 virtual void Squeeze() { this->Data->Squeeze(); }
112 unsigned long GetActualMemorySize();
139 void SetPoint(
vtkIdType id,
double x,
double y);
147 void InsertPoint(
vtkIdType id,
double x,
double y);
154 vtkIdType InsertNextPoint(
double x,
double y);
166 void SetNumberOfPoints(
vtkIdType numPoints);
182 virtual void ComputeBounds();
215 this->Data->SetNumberOfComponents(2);
216 this->Data->SetNumberOfTuples(numPoints);
222 this->Data->SetNumberOfComponents(2);
224 return this->Data->Resize(numPoints);
229 double p[2] = { x, y };
230 this->Data->SetTuple(
id, p);
235 double p[2] = { x, y };
236 this->Data->InsertTuple(
id, p);
241 double p[2] = { x, y };
242 return this->Data->InsertNextTuple(p);
245 VTK_ABI_NAMESPACE_END
void SetDataTypeToDouble()
void InsertPoint(vtkIdType id, const double x[2])
void GetBounds(T a, double bds[6])
abstract base class for most VTK objects
vtkTypeBool Resize(vtkIdType numPoints)
Resize the internal array while conserving the data.
vtkIdType GetNumberOfPoints() const
Return number of points in array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_UNSIGNED_SHORT
void SetDataTypeToUnsignedChar()
void * GetVoidPointer(const int id)
Return a void pointer.
void InsertPoint(vtkIdType id, const float x[2])
Insert point into object.
record modification and/or execution time
void GetPoint(vtkIdType id, double x[2])
Copy point components into user provided array v[2] for specified id.
void SetDataTypeToUnsignedShort()
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
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])
Insert point into object.
abstract superclass for arrays of numeric data
virtual void Modified()
Update the modification time for this object.
void SetDataTypeToUnsignedInt()
virtual void Squeeze()
Reclaim any extra memory.
#define VTK_SIZEHINT(...)
void Reset()
Reset to an empty state, without freeing any memory.
void SetPoint(vtkIdType id, const double x[2])
double * GetPoint(vtkIdType id)
Return a pointer to a double point x[2] for a specific id.
#define VTK_UNSIGNED_CHAR
vtkIdType InsertNextPoint(const float x[2])
Insert point into next available slot.
void RemovePoint(vtkIdType id)
Remove point described by its id.
#define VTK_UNSIGNED_LONG
void SetDataTypeToFloat()
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void SetDataTypeToUnsignedLong()
void SetDataTypeToShort()
vtkIdType InsertNextPoint(const double x[2])