29 #include "vtkCommonCoreModule.h" 55 virtual void Initialize();
72 virtual int GetDataType();
77 virtual void SetDataType(
int dataType);
94 void *
GetVoidPointer(
const int id) {
return this->Data->GetVoidPointer(
id); }
99 virtual void Squeeze() { this->Data->Squeeze(); }
104 virtual void Reset();
124 unsigned long GetActualMemorySize();
151 void SetPoint(
vtkIdType id,
double x,
double y);
158 { this->Data->InsertTuple(
id,x); }
160 { this->Data->InsertTuple(
id,x); }
161 void InsertPoint(
vtkIdType id,
double x,
double y);
167 {
return this->Data->InsertNextTuple(x); }
169 {
return this->Data->InsertNextTuple(x); }
170 vtkIdType InsertNextPoint(
double x,
double y);
182 void SetNumberOfPoints(
vtkIdType numPoints);
198 virtual void ComputeBounds();
208 void GetBounds(
double bounds[4]);
245 double p[2] = { x, y };
251 double p[2] = { x, y };
257 double p[2] = { x, y };
void SetDataTypeToDouble()
void InsertPoint(vtkIdType id, const double x[2])
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.
virtual void Reset()
Make object look empty but do not delete memory.
#define VTK_UNSIGNED_SHORT
void SetDataTypeToUnsignedChar()
void * GetVoidPointer(const int id)
Return a void pointer.
void InsertPoint(vtkIdType id, const float x[2])
Insert point into object.
record modification and/or execution time
void SetTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
Set the tuple at dstTupleIdx in this array to the tuple at srcTupleIdx in the source array...
void InsertTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
Insert the tuple at srcTupleIdx in the source array into this array at dstTupleIdx.
void GetPoint(vtkIdType id, double x[2])
Copy point components into user provided array v[2] for specified id.
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
virtual int Resize(vtkIdType numTuples)=0
Resize the array to the requested number of tuples and preserve data.
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.
vtkIdType InsertNextTuple(vtkIdType srcTupleIdx, vtkAbstractArray *source) override
Insert the tuple from srcTupleIdx in the source array at the end of this array.
void Reset()
Reset to an empty state, without freeing any memory.
void SetPoint(vtkIdType id, const double x[2])
int Resize(vtkIdType numPoints)
Resize the internal array while conserving the data.
virtual void SetNumberOfComponents(int)
Set/Get the dimension (n) of the components.
double * GetPoint(vtkIdType id)
Return a pointer to a double point x[2] for a specific id.
#define VTK_UNSIGNED_CHAR
vtkIdType InsertNextPoint(const float x[2])
Insert point into next available slot.
void RemovePoint(vtkIdType id)
Remove point described by its id.
#define VTK_UNSIGNED_LONG
virtual void SetNumberOfTuples(vtkIdType numTuples)=0
Set the number of tuples (a component group) in the array.
vtkIdType GetNumberOfPoints()
Return number of points in array.
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])