17#include "vtkCommonCoreModule.h"
23VTK_ABI_NAMESPACE_BEGIN
83 void*
GetVoidPointer(
const int id) {
return this->Data->GetVoidPointer(
id); }
88 virtual void Squeeze() { this->Data->Squeeze(); }
119 vtkIdType GetNumberOfPoints()
const {
return this->Data->GetNumberOfTuples(); }
142 void SetPoint(
vtkIdType id, const
float x[2]) { this->Data->SetTuple(
id, x); }
144 void SetPoint(
vtkIdType id, const
double x[2]) { this->Data->SetTuple(
id, x); }
146 void SetPoint(
vtkIdType id,
double x,
double y);
154 void InsertPoint(
vtkIdType id,
double x,
double y);
161 vtkIdType InsertNextPoint(
double x,
double y);
174 void SetNumberOfPoints(
vtkIdType numPoints);
201 void GetBounds(
double bounds[4]);
224 this->Data->SetNumberOfComponents(2);
225 this->Data->SetNumberOfTuples(numPoints);
231 this->Data->SetNumberOfComponents(2);
233 return this->Data->Resize(numPoints);
238 double p[2] = { x, y };
239 this->Data->SetTuple(
id, p);
244 double p[2] = { x, y };
245 this->Data->InsertTuple(
id, p);
250 double p[2] = { x, y };
251 return this->Data->InsertNextTuple(p);
void GetPoint(int i, int j, int k, double pnt[3])
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.
double * GetBounds()
Return the bounds of the points.
void GetPoints(vtkIdList *ptId, vtkPoints2D *fp)
Given a list of pt ids, return an array of points.
static vtkPoints2D * New()
void SetDataTypeToUnsignedLong()
virtual void ComputeBounds()
Determine (xmin,xmax, ymin,ymax) bounds of points.
void SetDataTypeToUnsignedChar()
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.
static vtkPoints2D * New(int dataType)
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
void * GetVoidPointer(const int id)
Return a void pointer.
void SetDataTypeToDouble()
void SetDataTypeToFloat()
vtkIdType InsertNextPoint(const double x[2])
void RemovePoint(vtkIdType id)
Remove point described by its 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.
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.
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
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_LONG
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
#define VTK_SIZEHINT(...)
#define VTK_MARSHALEXCLUDE(reason)