Go to the documentation of this file.
32 #include "vtkCommonCoreModule.h"
97 void *
GetVoidPointer(
const int id) {
return this->Data->GetVoidPointer(
id); }
102 virtual void Squeeze() { this->Data->Squeeze(); }
107 virtual void Reset();
155 void SetPoint(
vtkIdType id,
double x,
double y,
double z);
163 { this->Data->InsertTuple(
id,x);};
165 {this->Data->InsertTuple(
id,x);};
166 void InsertPoint(
vtkIdType id,
double x,
double y,
double z);
175 { this->Data->InsertTuples(dstIds, srcIds,
source->Data); }
184 { this->Data->InsertTuples(dstStart, n, srcStart,
source->Data); }
190 {
return this->Data->InsertNextTuple(x); }
192 {
return this->Data->InsertNextTuple(x); }
193 vtkIdType InsertNextPoint(
double x,
double y,
double z);
200 void SetNumberOfPoints(
vtkIdType numPoints);
243 void operator=(const
vtkPoints&) VTK_DELETE_FUNCTION;
254 this->Data->SetNumberOfComponents(3);
255 this->Data->SetNumberOfTuples(numPoints);
261 this->Data->SetNumberOfComponents(3);
263 return this->Data->Resize(numPoints);
268 double p[3] = { x, y, z };
269 this->Data->SetTuple(
id, p);
274 double p[3] = { x, y, z };
275 this->Data->InsertTuple(
id, p);
280 double p[3] = { x, y, z };
281 return this->Data->InsertNextTuple(p);
represent and manipulate 3D points
vtkIdType InsertNextPoint(const float x[3])
Insert point into next available slot.
virtual void DeepCopy(vtkPoints *ad)
Different ways to copy data.
void SetDataTypeToUnsignedShort()
void SetDataTypeToShort()
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
virtual void Squeeze()
Reclaim any extra memory.
void InsertPoint(vtkIdType id, const float x[3])
Insert point into object.
#define VTK_UNSIGNED_SHORT
record modification and/or execution time
vtkIdType InsertNextPoint(const double x[3])
virtual void Modified()
Update the modification time for this object.
abstract base class for most VTK objects
void * GetVoidPointer(const int id)
Return a void pointer.
abstract superclass for arrays of numeric data
void GetPoint(vtkIdType id, double x[3])
Copy point components into user provided array v[3] for specified id.
vtkTypeUInt64 vtkMTimeType
void InsertPoints(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkPoints *source)
Copy n consecutive points starting at srcStart from the source array to this array,...
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkIdType GetNumberOfPoints()
Return number of points in array.
void SetDataTypeToUnsignedLong()
unsigned long GetActualMemorySize()
Return the memory in kibibytes (1024 bytes) consumed by this attribute data.
void Reset()
Reset to an empty state, without freeing any memory.
double * GetPoint(vtkIdType id)
Return a pointer to a double point x[3] for a specific id.
virtual void ComputeBounds()
Determine (xmin,xmax, ymin,ymax, zmin,zmax) bounds of points.
a simple class to control print indentation
virtual int Allocate(const vtkIdType sz, const vtkIdType ext=1000)
Allocate initial memory size.
static vtkPoints * New(int dataType)
void SetDataTypeToUnsignedInt()
list of point or cell ids
#define VTK_UNSIGNED_CHAR
void SetDataTypeToDouble()
double * GetBounds()
Return the bounds of the points.
#define VTK_UNSIGNED_LONG
void SetPoint(vtkIdType id, const double x[3])
void GetPoints(vtkIdList *ptId, vtkPoints *fp)
Given a list of pt ids, return an array of points.
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 SetDataTypeToFloat()
virtual void ShallowCopy(vtkPoints *ad)
void InsertPoint(vtkIdType id, const double x[3])
virtual void Initialize()
Return object to instantiated state.
virtual void SetDataType(int dataType)
Specify the underlying data type of the object.
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...
virtual int GetDataType()
Return the underlying data type.
void SetDataTypeToUnsignedChar()
int Resize(vtkIdType numPoints)
Resize the internal array while conserving the data.
void SetPoint(vtkIdType id, const float x[3])
Insert point into object.
void GetBounds(double bounds[6])
Return the bounds of the points.
vtkMTimeType GetMTime() override
The modified time of the points.