129#include "vtkCommonCoreModule.h"
136VTK_ABI_NAMESPACE_BEGIN
201 return this->
Data->GetVoidPointer(
id);
212 virtual void Reset();
249 return this->
Data->GetTuple(
id);
260 this->
Data->GetTuple(
id, x);
272 this->
Data->SetTuple(
id, x);
277 this->
Data->SetTuple(
id, x);
280 void SetPoint(
vtkIdType id,
double x,
double y,
double z)
290 this->
Data->InsertTuple(
id, x);
294 this->
Data->InsertTuple(
id, x);
306 this->
Data->InsertTuples(dstIds, srcIds,
source->Data);
316 this->
Data->InsertTuples(dstStart, n, srcStart,
source->Data);
324 vtkIdType InsertNextPoint(
double x,
double y,
double z);
332 void SetNumberOfPoints(
vtkIdType numPoints);
394 void operator=(const
vtkPoints&) = delete;
405 if (numPoints != this->
Data->GetNumberOfTuples())
407 this->
Data->SetNumberOfComponents(3);
408 this->
Data->SetNumberOfTuples(numPoints);
415 if (numPoints != this->
Data->GetNumberOfTuples())
417 this->
Data->SetNumberOfComponents(3);
419 return this->
Data->ReserveTuples(numPoints);
426 double p[3] = { x, y, z };
427 this->
Data->SetTuple(
id, p);
432 double p[3] = { x, y, z };
433 this->
Data->InsertTuple(
id, p);
438 double p[3] = { x, y, z };
439 return this->
Data->InsertNextTuple(p);
void Reset()
Reset to an empty state, without freeing any memory.
list of point or cell ids
a simple class to control print indentation
virtual void Modified()
Update the modification time for this object.
vtkPoints(int dataType=VTK_FLOAT)
void SetDataTypeToUnsignedShort()
void SetPoint(vtkIdType id, const float x[3])
Insert point into object.
vtkMTimeType GetMTime() override
The modified time of the points.
void GetPoints(vtkIdList *ptId, vtkPoints *outPoints)
Given a list of pt ids, return an array of points.
void InsertPoint(vtkIdType id, const double x[3])
Insert point into object.
void Modified() override
Update the modification time for this object and its Data.
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.
vtkTypeBool Reserve(vtkIdType numPoints)
Reserve the internal array to the requested number of points and preserve data.
virtual void Reset()
Make object look empty but do not delete memory.
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...
double * GetBounds()
Return the bounds of the points.
virtual void Initialize()
Return object to instantiated state.
virtual void Squeeze()
Reclaim any extra memory.
void SetDataTypeToUnsignedLong()
void SetDataTypeToUnsignedChar()
static vtkPoints * New(int dataType)
virtual void SetData(vtkDataArray *)
Set/Get the underlying data array.
double * GetPoint(vtkIdType id)
Return a pointer to a double point x[3] for a specific id.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDataTypeToUnsignedInt()
void * GetVoidPointer(const int id)
Return a void pointer.
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.
void SetDataTypeToFloat()
vtkIdType InsertNextPoint(const double x[3])
record modification and/or execution time
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_DEPRECATED_IN_9_7_0(reason)
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
vtkTypeUInt32 vtkMTimeType
#define VTK_UNSIGNED_LONG
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
#define VTK_SIZEHINT(...)
#define VTK_MARSHALEXCLUDE(reason)