 |
VTK
9.0.1
|
Go to the documentation of this file.
26 #include "vtkCommonCoreModule.h"
51 virtual void Initialize();
68 virtual int GetDataType()
const;
73 virtual void SetDataType(
int dataType);
90 void*
GetVoidPointer(
const int id) {
return this->Data->GetVoidPointer(
id); }
95 virtual void Squeeze() { this->Data->Squeeze(); }
100 virtual void Reset();
120 unsigned long GetActualMemorySize();
147 void SetPoint(
vtkIdType id,
double x,
double y);
155 void InsertPoint(
vtkIdType id,
double x,
double y);
162 vtkIdType InsertNextPoint(
double x,
double y);
174 void SetNumberOfPoints(
vtkIdType numPoints);
190 virtual void ComputeBounds();
200 void GetBounds(
double bounds[4]);
223 this->Data->SetNumberOfComponents(2);
224 this->Data->SetNumberOfTuples(numPoints);
230 this->Data->SetNumberOfComponents(2);
232 return this->Data->Resize(numPoints);
237 double p[2] = { x, y };
238 this->Data->SetTuple(
id, p);
243 double p[2] = { x, y };
244 this->Data->InsertTuple(
id, p);
249 double p[2] = { x, y };
250 return this->Data->InsertNextTuple(p);
represent and manipulate 2D points
vtkTypeBool Resize(vtkIdType numPoints)
Resize the internal array while conserving the data.
void InsertPoint(vtkIdType id, const float x[2])
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
virtual void Modified()
Update the modification time for this object.
void SetDataTypeToUnsignedChar()
void * GetVoidPointer(const int id)
Return a void pointer.
abstract base class for most VTK objects
abstract superclass for arrays of numeric data
void SetDataTypeToUnsignedShort()
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
void GetPoint(vtkIdType id, double x[2])
Copy point components into user provided array v[2] for specified id.
#define VTK_SIZEHINT(...)
void Reset()
Reset to an empty state, without freeing any memory.
a simple class to control print indentation
virtual void Squeeze()
Reclaim any extra memory.
list of point or cell ids
#define VTK_UNSIGNED_CHAR
void SetPoint(vtkIdType id, const float x[2])
Insert point into object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double * GetPoint(vtkIdType id)
Return a pointer to a double point x[2] for a specific id.
void SetDataTypeToUnsignedInt()
#define VTK_UNSIGNED_LONG
vtkIdType InsertNextPoint(const float x[2])
Insert point into next available slot.
void SetPoint(vtkIdType id, const double x[2])
void RemovePoint(vtkIdType id)
Remove point described by its id.
vtkIdType GetNumberOfPoints()
Return number of points in array.
void SetDataTypeToFloat()
void SetDataTypeToShort()
vtkIdType InsertNextPoint(const double x[2])
void SetDataTypeToUnsignedLong()
void SetDataTypeToDouble()
void InsertPoint(vtkIdType id, const double x[2])