 |
VTK
9.1.0
|
Go to the documentation of this file.
135 #include "vtkCommonCoreModule.h"
205 virtual void Squeeze() { this->Data->Squeeze(); }
210 virtual void Reset();
245 return this->Data->GetTuple(
id);
255 this->Data->GetTuple(
id, x);
266 this->Data->SetTuple(
id, x);
270 this->Data->SetTuple(
id, x);
272 void SetPoint(
vtkIdType id,
double x,
double y,
double z)
282 this->Data->InsertTuple(
id, x);
286 this->Data->InsertTuple(
id, x);
298 this->Data->InsertTuples(dstIds, srcIds,
source->Data);
308 this->Data->InsertTuples(dstStart, n, srcStart,
source->Data);
316 vtkIdType InsertNextPoint(
double x,
double y,
double z);
323 void SetNumberOfPoints(
vtkIdType numPoints);
361 void Modified() override;
373 void operator=(const
vtkPoints&) = delete;
384 this->Data->SetNumberOfComponents(3);
385 this->Data->SetNumberOfTuples(numPoints);
391 this->Data->SetNumberOfComponents(3);
393 return this->Data->Resize(numPoints);
398 double p[3] = { x, y, z };
399 this->Data->SetTuple(
id, p);
404 double p[3] = { x, y, z };
405 this->Data->InsertTuple(
id, p);
410 double p[3] = { x, y, z };
411 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.
vtkTypeBool Resize(vtkIdType numPoints)
Resize the internal array while conserving the data.
virtual vtkTypeBool Allocate(vtkIdType sz, vtkIdType ext=1000)
Allocate initial memory size.
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.
void InsertPoints(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkPoints *source)
Copy n consecutive points starting at srcStart from the source array to this array,...
void SetDataTypeToUnsignedLong()
#define VTK_SIZEHINT(...)
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.
void GetBounds(T a, double bds[6])
virtual void ComputeBounds()
Determine (xmin,xmax, ymin,ymax, zmin,zmax) bounds of points.
a simple class to control print indentation
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])
virtual void SetData(vtkDataArray *)
Set/Get the underlying data array.
void GetPoints(vtkIdList *ptId, vtkPoints *outPoints)
Given a list of pt ids, return an array of points.
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)
Different ways to copy data.
void InsertPoint(vtkIdType id, const double x[3])
Insert point into object.
virtual void Initialize()
Return object to instantiated state.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
virtual void SetDataType(int dataType)
Specify the underlying data type of the object.
virtual int GetDataType() const
Return the underlying data type.
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()
vtkIdType GetNumberOfPoints() const
Return number of points in array.
void SetPoint(vtkIdType id, const float x[3])
Insert point into object.
vtkTypeUInt32 vtkMTimeType