129 #include "vtkCommonCoreModule.h"
134 VTK_ABI_NAMESPACE_BEGIN
200 virtual void Squeeze() { this->Data->Squeeze(); }
205 virtual void Reset();
240 return this->Data->GetTuple(
id);
250 this->Data->GetTuple(
id, x);
261 this->Data->SetTuple(
id, x);
265 this->Data->SetTuple(
id, x);
267 void SetPoint(
vtkIdType id,
double x,
double y,
double z)
277 this->Data->InsertTuple(
id, x);
281 this->Data->InsertTuple(
id, x);
293 this->Data->InsertTuples(dstIds, srcIds,
source->Data);
303 this->Data->InsertTuples(dstStart, n, srcStart,
source->Data);
311 vtkIdType InsertNextPoint(
double x,
double y,
double z);
318 void SetNumberOfPoints(
vtkIdType numPoints);
356 void Modified() override;
368 void operator=(const
vtkPoints&) = delete;
379 this->Data->SetNumberOfComponents(3);
380 this->Data->SetNumberOfTuples(numPoints);
386 this->Data->SetNumberOfComponents(3);
388 return this->Data->Resize(numPoints);
393 double p[3] = { x, y, z };
394 this->Data->SetTuple(
id, p);
399 double p[3] = { x, y, z };
400 this->Data->InsertTuple(
id, p);
405 double p[3] = { x, y, z };
406 return this->Data->InsertNextTuple(p);
409 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 3D points
void SetPoint(vtkIdType id, const double x[3])
void SetDataTypeToUnsignedShort()
void SetPoint(vtkIdType id, const float x[3])
Insert point into object.
void GetPoints(vtkIdList *ptId, vtkPoints *outPoints)
Given a list of pt ids, return an array of points.
static vtkPoints * New(int dataType)
void InsertPoint(vtkIdType id, const double x[3])
Insert point into object.
virtual vtkTypeBool Allocate(vtkIdType sz, vtkIdType ext=1000)
Allocate initial memory size.
virtual void ComputeBounds()
Determine (xmin,xmax, ymin,ymax, zmin,zmax) bounds of points.
double * GetBounds()
Return the bounds of the points.
void InsertPoints(vtkIdList *dstIds, vtkIdList *srcIds, vtkPoints *source)
Copy the points indexed in srcIds from the source array to the tuple locations indexed by dstIds in t...
void * GetVoidPointer(const int id)
Return a void pointer.
virtual void Initialize()
Return object to instantiated state.
virtual void Squeeze()
Reclaim any extra memory.
void SetDataTypeToUnsignedLong()
void SetDataTypeToUnsignedChar()
virtual void SetData(vtkDataArray *)
Set/Get the underlying data array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDataTypeToUnsignedInt()
void GetPoint(vtkIdType id, double x[3])
Copy point components into user provided array v[3] for specified id.
virtual int GetDataType() const
Return the underlying data type.
void SetDataTypeToShort()
vtkIdType GetNumberOfPoints() const
Return number of points in array.
void SetDataTypeToDouble()
virtual void DeepCopy(vtkPoints *ad)
Different ways to copy data.
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
vtkTypeBool Resize(vtkIdType numPoints)
Resize the internal array while conserving the data.
void InsertPoint(vtkIdType id, const float x[3])
Insert point into object.
unsigned long GetActualMemorySize()
Return the memory in kibibytes (1024 bytes) consumed by this attribute data.
virtual void ShallowCopy(vtkPoints *ad)
Different ways to copy data.
vtkIdType InsertNextPoint(const float x[3])
Insert point into next available slot.
void InsertPoints(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkPoints *source)
Copy n consecutive points starting at srcStart from the source array to this array,...
virtual void SetDataType(int dataType)
Specify the underlying data type of the object.
double * GetPoint(vtkIdType id)
Return a pointer to a double point x[3] for a specific id.
void SetDataTypeToFloat()
vtkIdType InsertNextPoint(const double x[3])
record modification and/or execution time
void GetBounds(T a, double bds[6])
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
vtkTypeUInt32 vtkMTimeType
#define VTK_UNSIGNED_LONG
#define VTK_SIZEHINT(...)