Go to the documentation of this file.
26 #include "vtkCommonCoreModule.h"
52 virtual void Initialize();
69 virtual int GetDataType();
74 virtual void SetDataType(
int dataType);
91 void *
GetVoidPointer(
const int id) {
return this->Data->GetVoidPointer(
id); }
96 virtual void Squeeze() { this->Data->Squeeze(); }
101 virtual void Reset();
121 unsigned long GetActualMemorySize();
137 {
return this->Data->GetTuple(
id); }
146 { this->Data->GetTuple(
id,x); }
156 { this->Data->SetTuple(
id,x); }
159 { this->Data->SetTuple(
id,x); }
160 void SetPoint(
vtkIdType id,
double x,
double y,
double z)
170 { this->Data->InsertTuple(
id,x);};
173 {this->Data->InsertTuple(
id,x);};
174 void InsertPoint(
vtkIdType id,
double x,
double y,
double z)
184 { this->Data->InsertTuples(dstIds, srcIds,
source->Data); }
193 { this->Data->InsertTuples(dstStart, n, srcStart,
source->Data); }
199 {
return this->Data->InsertNextTuple(x); }
201 {
return this->Data->InsertNextTuple(x); }
202 vtkIdType InsertNextPoint(
double x,
double y,
double z);
209 void SetNumberOfPoints(
vtkIdType numPoints);
225 virtual void ComputeBounds();
235 void GetBounds(
double bounds[6]);
247 void Modified() override;
259 void operator=(const
vtkPoints&) = delete;
270 this->Data->SetNumberOfComponents(3);
271 this->Data->SetNumberOfTuples(numPoints);
277 this->Data->SetNumberOfComponents(3);
279 return this->Data->Resize(numPoints);
284 double p[3] = { x, y, z };
285 this->Data->SetTuple(
id, p);
290 double p[3] = { x, y, z };
291 this->Data->InsertTuple(
id, p);
296 double p[3] = { x, y, z };
297 return this->Data->InsertNextTuple(p);
represent and manipulate 3D points
vtkIdType InsertNextPoint(const float x[3])
Insert point into next available slot.
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.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
#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.
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()
#define VTK_SIZEHINT(...)
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.
a simple class to control print indentation
void SetDataTypeToUnsignedInt()
list of point or cell ids
#define VTK_UNSIGNED_CHAR
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDataTypeToDouble()
#define VTK_UNSIGNED_LONG
void SetPoint(vtkIdType id, const double x[3])
void SetDataTypeToFloat()
void InsertPoint(vtkIdType id, const double x[3])
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 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.
vtkTypeUInt32 vtkMTimeType