32 #include "vtkCommonCoreModule.h" 58 virtual void Initialize();
75 virtual int GetDataType();
80 virtual void SetDataType(
int dataType);
97 void *
GetVoidPointer(
const int id) {
return this->Data->GetVoidPointer(
id); }
102 virtual void Squeeze() { this->Data->Squeeze(); }
107 virtual void Reset();
127 unsigned long GetActualMemorySize();
142 {
return this->Data->GetTuple(
id); }
150 { this->Data->GetTuple(
id,x); }
160 { this->Data->SetTuple(
id,x); }
163 { this->Data->SetTuple(
id,x); }
164 void SetPoint(
vtkIdType id,
double x,
double y,
double z)
174 { this->Data->InsertTuple(
id,x);};
177 {this->Data->InsertTuple(
id,x);};
178 void InsertPoint(
vtkIdType id,
double x,
double y,
double z)
188 { this->Data->InsertTuples(dstIds, srcIds,
source->Data); }
197 { this->Data->InsertTuples(dstStart, n, srcStart,
source->Data); }
203 {
return this->Data->InsertNextTuple(x); }
205 {
return this->Data->InsertNextTuple(x); }
206 vtkIdType InsertNextPoint(
double x,
double y,
double z);
213 void SetNumberOfPoints(
vtkIdType numPoints);
229 virtual void ComputeBounds();
239 void GetBounds(
double bounds[6]);
263 void operator=(
const vtkPoints&) =
delete;
288 double p[3] = { x, y, z };
294 double p[3] = { x, y, z };
300 double p[3] = { x, y, z };
void SetDataTypeToFloat()
void SetDataTypeToUnsignedChar()
int Resize(vtkIdType numPoints)
Resize the internal array while conserving the data.
void GetPoint(vtkIdType id, double x[3])
Copy point components into user provided array v[3] for specified id.
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.
vtkIdType GetNumberOfPoints()
Return number of points in array.
void SetPoint(vtkIdType id, const double x[3])
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
void Modified() override
Update the modification time for this object and its Data.
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.
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
void * GetVoidPointer(const int id)
Return a void pointer.
list of point or cell ids
virtual int Resize(vtkIdType numTuples)=0
Resize the array to the requested number of tuples and preserve data.
abstract superclass for arrays of numeric data
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void SetDataTypeToUnsignedLong()
virtual void Modified()
Update the modification time for this object.
double * GetPoint(vtkIdType id)
Return a pointer to a double point x[3] for a specific id.
void SetNumberOfPoints(vtkIdType numPoints)
Specify the number of points for this object to hold.
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.
virtual void SetNumberOfComponents(int)
Set/Get the dimension (n) of the components.
boost::graph_traits< vtkGraph *>::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_UNSIGNED_CHAR
void SetDataTypeToShort()
virtual void Reset()
Make object look empty but do not delete memory.
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.
virtual void SetNumberOfTuples(vtkIdType numTuples)=0
Set the number of tuples (a component group) in the array.
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()
void InsertPoint(vtkIdType id, const double x[3])
Insert point into object.
represent and manipulate 3D points