20 #include "vtkCommonCoreModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
49 virtual
void Initialize();
60 vtkDataArray*
GetData() {
return this->Data; }
66 virtual int GetDataType()
const;
72 virtual void SetDataType(
int dataType);
90 void* GetVoidPointer(const
int id)
92 return this->Data->GetVoidPointer(
id);
98 virtual void Squeeze() { this->Data->Squeeze(); }
103 virtual void Reset();
123 unsigned long GetActualMemorySize();
129 vtkIdType GetNumberOfPoints()
const {
return this->Data->GetNumberOfTuples(); }
140 return this->Data->GetTuple(
id);
151 this->Data->GetTuple(
id, x);
163 this->Data->SetTuple(
id, x);
168 this->Data->SetTuple(
id, x);
171 void SetPoint(
vtkIdType id,
double x,
double y,
double z)
181 this->Data->InsertTuple(
id, x);
185 this->Data->InsertTuple(
id, x);
197 this->Data->InsertTuples(dstIds, srcIds, source->
Data);
207 this->Data->InsertTuples(dstStart, n, srcStart, source->
Data);
215 vtkIdType InsertNextPoint(
double x,
double y,
double z);
223 void SetNumberOfPoints(
vtkIdType numPoints);
251 virtual
void ComputeBounds();
273 void Modified() override;
285 void operator=(const
vtkPoints&) = delete;
296 if (numPoints != this->Data->GetNumberOfTuples())
298 this->Data->SetNumberOfComponents(3);
299 this->Data->SetNumberOfTuples(numPoints);
306 if (numPoints != this->Data->GetNumberOfTuples())
308 this->Data->SetNumberOfComponents(3);
310 return this->Data->ReserveTuples(numPoints);
317 double p[3] = { x, y, z };
318 this->Data->SetTuple(
id, p);
323 double p[3] = { x, y, z };
324 this->Data->InsertTuple(
id, p);
329 double p[3] = { x, y, z };
330 return this->Data->InsertNextTuple(p);
333 VTK_ABI_NAMESPACE_END
void SetDataTypeToFloat()
void GetBounds(T a, double bds[6])
void SetDataTypeToUnsignedChar()
abstract base class for most VTK objects
vtkIdType InsertNextPoint(const double x[3])
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool Reserve(vtkIdType numPoints)
Reserve the internal array to the requested number of points and preserve data.
vtkTypeUInt32 vtkMTimeType
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...
#define VTK_UNSIGNED_SHORT
record modification and/or execution time
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
vtkIdType InsertNextPoint(const float x[3])
Insert point into next available slot.
void SetPoint(vtkIdType id, const float x[3])
Insert point into object.
void SetDataTypeToUnsignedInt()
void InsertPoint(vtkIdType id, const float x[3])
Insert point into object.
a simple class to control print indentation
list of point or cell ids
abstract superclass for arrays of numeric data
void SetDataTypeToUnsignedLong()
virtual void Modified()
Update the modification time for this object.
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
#define VTK_SIZEHINT(...)
void Reset()
Reset to an empty state, without freeing any memory.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkSmartPointer< vtkDataArray > GetData(const Ioss::GroupingEntity *entity, const std::string &fieldname, Ioss::Transform *transform=nullptr, Cache *cache=nullptr, const std::string &cachekey=std::string())
Returns a VTK array for a given field (fieldname) on the chosen block (or set) entity.
#define VTK_MARSHALEXCLUDE(reason)
#define VTK_UNSIGNED_CHAR
void GetPoint(int i, int j, int k, double pnt[3])
void SetDataTypeToShort()
void SetDataTypeToUnsignedShort()
#define VTK_UNSIGNED_LONG
void InsertPoints(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkPoints *source)
Copy n consecutive points starting at srcStart from the source array to this array, starting at the dstStart location.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Squeeze()
Reclaim any extra memory.
void SetDataTypeToDouble()
#define VTK_DEPRECATED_IN_9_7_0(reason)
void InsertPoint(vtkIdType id, const double x[3])
Insert point into object.
represent and manipulate 3D points