17 #include "vtkCommonCoreModule.h"
24 VTK_ABI_NAMESPACE_BEGIN
46 virtual
void Initialize();
57 vtkDataArray*
GetData() {
return this->Data; }
63 virtual int GetDataType()
const;
68 virtual void SetDataType(
int dataType);
86 void* GetVoidPointer(const
int id)
88 return this->Data->GetVoidPointer(
id);
94 virtual void Squeeze() { this->Data->Squeeze(); }
119 unsigned long GetActualMemorySize();
125 vtkIdType GetNumberOfPoints()
const {
return this->Data->GetNumberOfTuples(); }
148 void SetPoint(
vtkIdType id, const
float x[2]) { this->Data->SetTuple(
id, x); }
150 void SetPoint(
vtkIdType id, const
double x[2]) { this->Data->SetTuple(
id, x); }
152 void SetPoint(
vtkIdType id,
double x,
double y);
158 void InsertPoint(
vtkIdType id, const
float x[2]) { this->Data->InsertTuple(
id, x); }
160 void InsertPoint(
vtkIdType id,
double x,
double y);
167 vtkIdType InsertNextPoint(
double x,
double y);
180 void SetNumberOfPoints(
vtkIdType numPoints);
208 virtual
void ComputeBounds();
241 this->Data->SetNumberOfComponents(2);
242 this->Data->SetNumberOfTuples(numPoints);
248 if (numPoints != this->Data->GetNumberOfTuples())
250 this->Data->SetNumberOfComponents(3);
252 return this->Data->ReserveTuples(numPoints);
259 double p[2] = { x, y };
260 this->Data->SetTuple(
id, p);
265 double p[2] = { x, y };
266 this->Data->InsertTuple(
id, p);
271 double p[2] = { x, y };
272 return this->Data->InsertNextTuple(p);
275 VTK_ABI_NAMESPACE_END
void SetDataTypeToDouble()
void InsertPoint(vtkIdType id, const double x[2])
void GetBounds(T a, double bds[6])
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_UNSIGNED_SHORT
void SetDataTypeToUnsignedChar()
void InsertPoint(vtkIdType id, const float x[2])
Insert point into object.
record modification and/or execution time
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
void SetDataTypeToUnsignedShort()
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
a simple class to control print indentation
represent and manipulate 2D points
list of point or cell ids
void SetPoint(vtkIdType id, const float x[2])
Insert point into object.
abstract superclass for arrays of numeric data
virtual void Modified()
Update the modification time for this object.
void SetDataTypeToUnsignedInt()
virtual void Squeeze()
Reclaim any extra memory.
#define VTK_SIZEHINT(...)
void Reset()
Reset to an empty state, without freeing any memory.
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])
vtkIdType InsertNextPoint(const float x[2])
Insert point into next available slot.
void RemovePoint(vtkIdType id)
Remove point described by its id.
vtkTypeBool Reserve(vtkIdType numPoints)
Resize the internal array to the requested number of points and preserve data.
#define VTK_UNSIGNED_LONG
void SetDataTypeToFloat()
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void SetDataTypeToUnsignedLong()
void SetDataTypeToShort()
vtkIdType InsertNextPoint(const double x[2])
#define VTK_DEPRECATED_IN_9_7_0(reason)