59 #include "vtkCommonDataModelModule.h"
67 VTK_ABI_NAMESPACE_BEGIN
68 struct vtkPolyDataDummyContainter;
142 void ComputeCellsBounds();
149 void GetCellsBounds(
double bounds[6]);
303 bool AllocateProportional(
vtkPolyData* pd,
double ratio);
313 this->AllocateExact(numCells, numCells);
328 this->AllocateProportional(
329 inPolyData, static_cast<double>(numCells) / inPolyData->
GetNumberOfCells());
376 void BuildLinks(
int initialSize = 0);
449 int IsTriangle(
int v1,
int v2,
int v3);
489 inline void ReplaceCellPoint(
516 void RemoveDeletedCells();
527 vtkIdType InsertNextLinkedPoint(
int numLinks);
528 vtkIdType InsertNextLinkedPoint(
double x[3],
int numLinks);
557 void RemoveCellReference(
vtkIdType cellId);
602 virtual int GetPiece();
603 virtual int GetNumberOfPieces();
609 virtual int GetGhostLevel();
635 void RemoveGhostCells();
665 ERR_NO_SUCH_FIELD = -4,
666 ERR_INCORRECT_FIELD = -3,
667 ERR_NON_MANIFOLD_STAR = -2,
675 int GetScalarFieldCriticalIndex(
vtkIdType pointId,
int fieldId);
676 int GetScalarFieldCriticalIndex(
vtkIdType pointId,
const char* fieldName);
732 double CellsBounds[6];
757 return static_cast<int>(this->
Cells->GetTag(cellId).GetCellType());
789 vtkWarningMacro(<<
"Cell type not supported.");
820 this->
Cells->GetTag(cellId).MarkDeleted();
894 if (pts[i] == oldPtId)
947 VTK_ABI_NAMESPACE_END
void ReplaceCellPointAtId(vtkIdType cellId, vtkIdType cellPointIndex, vtkIdType newPointId)
Replaces the pointId at cellPointIndex of a cell with newPointId.
vtkIdType GetCellSize(vtkIdType cellId) override
Standard vtkDataSet interface.
vtkSmartPointer< vtkAbstractCellLinks > Links
vtkIdType GetCellSize(vtkIdType) override
This method always returns 1, as all cells are point in a pure vtkPointSet.
vtkSmartPointer< vtkCellArray > Verts
int GetCellType(vtkIdType cellId) override
Standard vtkDataSet interface.
void GetCellAtId(vtkIdType cellId, vtkIdType &cellSize, vtkIdType const *&cellPoints, vtkIdList *ptIds) override
Return the point ids for the cell at cellId.
void AddCellReference(vtkIdType cellId, vtkIdType ptId)
Add the reference to the cell (cellId) from the point (ptId).
object represents upward pointers from points to list of cells using each point
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Copy a cells point ids into list provided.
vtkTypeUInt32 vtkMTimeType
void ReplaceCellPoint(vtkIdType cellId, vtkIdType oldPtId, vtkIdType newPtId)
Replace a point in the cell connectivity list with a different point.
abstract class to specify dataset behavior
unsigned char GetCellType() const noexcept
an abstract base class for classes that build topological links from points to cells ...
vtkTimeStamp CellsBoundsTime
record modification and/or execution time
vtkIdType GetCellIdRelativeToCellArray(vtkIdType cellId)
Maps the cell at position cellId inside the vtkPolyData to its location in the corresponding cell arr...
Abstract class in support of both point location and point insertion.
vtkIdType GetCellSize(vtkIdType cellId) const override
Return the size of the cell at cellId.
vtkCellArray * GetCellArrayInternal(TaggedCellId tag)
void GetCellPoints(vtkIdType, vtkIdList *idList) override
Topological inquiry to get points defining cell.
static vtkPointSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
void AddCellReference(vtkIdType cellId)
Add references to cell in cell structure.
concrete class for storing a set of points
vtkIdType GetNumberOfPolys()
Return the number of primitives of a particular type held.
vtkIdType GetNumberOfCells() override
This method always returns 0, as there are no cells in a vtkPointSet.
virtual int GetMaxSpatialDimension()
Get the maximum/minimum spatial dimensionality of the data which is the maximum/minimum dimension of ...
virtual vtkMTimeType GetMeshMTime()
Abstract method which return the mesh (geometry/topology) modification time.
concrete dataset represents vertices, lines, polygons, and triangle strips
void Squeeze() override
Reclaim any unused memory.
void RemoveCellReference(vtkIdType cellId)
Remove all references to cell in cell structure.
void DeletePoint(vtkIdType ptId)
Mark a point/cell as deleted from this vtkPolyData.
int GetCellType(vtkIdType) override
This method always returns VTK_EMPTY_CELL, as there is no cell in a vtkPointSet.
vtkSmartPointer< vtkCellArray > Polys
Detect and break reference loops.
provides thread-safe access to cells
abstract class to specify cell behavior
void DeepCopy(vtkDataObject *src) override
Shallow and Deep copy.
T * Get() const noexcept
Get the contained pointer.
bool NeedToBuildCells()
Check if BuildCells is needed.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
a simple class to control print indentation
static vtkPointSet * New()
Standard instantiation method.
vtkSmartPointer< vtkCellArray > Lines
list of point or cell ids
vtkIdType GetNumberOfVerts()
Return the number of primitives of a particular type held.
void Initialize() override
Reset to an empty state and free any memory.
abstract superclass for arrays of numeric data
vtkSmartPointer< CellMap > Cells
vtkIdType GetNumberOfCells() override
Standard vtkDataSet interface.
void ResizeCellList(vtkIdType ptId, int size)
Resize the list of cells using a particular point.
virtual int GetMinSpatialDimension()
Get the maximum/minimum spatial dimensionality of the data which is the maximum/minimum dimension of ...
vtkIdType GetNumberOfLines()
Return the number of primitives of a particular type held.
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e...
#define VTK_SIZEHINT(...)
vtkMTimeType GetMTime() override
Get MTime which also considers its vtkPoints MTime.
A cell specified by degrees of freedom held in arrays.
int GetMaxCellSize() override
This method always returns 0, as there are no cells in a vtkPointSet.
static vtkPointSet * ExtendedNew()
int IsPointUsedByCell(vtkIdType ptId, vtkIdType cellId)
Determine whether a point is used by a particular cell.
int GetDataObjectType() VTK_FUTURE_CONST override
Return what type of dataset this is.
object to represent cell connectivity
bool IsDeleted() const noexcept
Target GetTarget() const noexcept
void GetPointCells(vtkIdType, vtkIdList *idList) override
Topological inquiry to get cells using point.
void BuildCells()
Create data structure that allows random access of cells.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
void DeleteCell(vtkIdType cellId)
Mark a point/cell as deleted from this vtkPolyData.
static vtkPolyDataDummyContainter DummyContainer
vtkCell * GetCell(vtkIdType) override
This method always return a vtkEmptyCell, as there is no cell in a vtkPointSet.
vtkIdType GetCellId() const noexcept
void Allocate(vtkIdType numCells=1000, int extSize=1000)
Method allocates initial storage for vertex, line, polygon, and triangle strip arrays.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
general representation of visualization data
void ReportReferences(vtkGarbageCollector *) override
vtkNew< vtkIdList > LegacyBuffer
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkSmartPointer< vtkCellArray > Strips
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
void Allocate(vtkPolyData *inPolyData, vtkIdType numCells=1000, int extSize=1000)
Similar to the method above, this method allocates initial storage for vertex, line, polygon, and triangle strip arrays.
void RemoveCellReference(vtkIdType cellId, vtkIdType ptId)
Delete the reference to the cell (cellId) from the point (ptId).
vtkIdType GetNumberOfStrips()
Return the number of primitives of a particular type held.