17 #include "vtkCommonCoreModule.h"
22 VTK_ABI_NAMESPACE_BEGIN
82 void*
GetVoidPointer(
const int id) {
return this->Data->GetVoidPointer(
id); }
87 virtual void Squeeze() { this->Data->Squeeze(); }
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);
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 Reset()
Reset to an empty state, without freeing any memory.
abstract superclass for arrays of numeric data
list of point or cell ids
a simple class to control print indentation
abstract base class for most VTK objects
virtual void Modified()
Update the modification time for this object.
represent and manipulate 2D points
virtual void ShallowCopy(vtkPoints2D *ad)
Different ways to copy data.
void GetPoints(vtkIdList *ptId, vtkPoints2D *fp)
Given a list of pt ids, return an array of points.
double * GetPoint(vtkIdType id)
Return a pointer to a double point x[2] for a specific id.
void SetDataTypeToUnsignedLong()
virtual void ComputeBounds()
Determine (xmin,xmax, ymin,ymax) bounds of points.
void SetDataTypeToUnsignedChar()
static vtkPoints2D * New()
void SetDataTypeToShort()
virtual vtkTypeBool Allocate(vtkIdType sz, vtkIdType ext=1000)
Allocate initial memory size.
virtual void SetDataType(int dataType)
Specify the underlying data type of the object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
void SetDataTypeToDouble()
void SetDataTypeToFloat()
vtkIdType InsertNextPoint(const double x[2])
void * GetVoidPointer(const int id)
Return a void pointer.
vtkIdType GetNumberOfPoints() const
Return number of points in array.
void RemovePoint(vtkIdType id)
Remove point described by its id.
void GetPoint(vtkIdType id, double x[2])
Copy point components into user provided array v[2] for specified id.
virtual void SetData(vtkDataArray *)
Set/Get the underlying data array.
void InsertPoint(vtkIdType id, const double x[2])
vtkTypeBool Resize(vtkIdType numPoints)
Resize the internal array while conserving the data.
double * GetBounds()
Return the bounds of the points.
static vtkPoints2D * New(int dataType)
void SetDataTypeToUnsignedInt()
virtual int GetDataType() const
Return the underlying data type.
void InsertPoint(vtkIdType id, const float x[2])
Insert point into object.
virtual void DeepCopy(vtkPoints2D *ad)
Different ways to copy data.
virtual void Squeeze()
Reclaim any extra memory.
void SetPoint(vtkIdType id, const double x[2])
unsigned long GetActualMemorySize()
Return the memory in kibibytes (1024 bytes) consumed by this attribute data.
void SetDataTypeToUnsignedShort()
void SetPoint(vtkIdType id, const float x[2])
Insert point into object.
virtual void Initialize()
Return object to instantiated state.
vtkIdType InsertNextPoint(const float x[2])
Insert point into next available slot.
record modification and/or execution time
void GetBounds(T a, double bds[6])
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_LONG
#define VTK_SIZEHINT(...)