 |
VTK
9.0.1
|
Go to the documentation of this file.
65 #include "vtkCommonDataModelModule.h"
81 struct vtkPolyDataDummyContainter;
278 bool AllocateProportional(
vtkPolyData* pd,
double ratio);
288 this->AllocateExact(numCells, numCells);
303 this->AllocateProportional(
304 inPolyData,
static_cast<double>(numCells) / inPolyData->
GetNumberOfCells());
351 void BuildLinks(
int initialSize = 0);
372 #ifndef VTK_LEGACY_REMOVE
401 int IsTriangle(
int v1,
int v2,
int v3);
459 void RemoveDeletedCells();
470 vtkIdType InsertNextLinkedPoint(
int numLinks);
471 vtkIdType InsertNextLinkedPoint(
double x[3],
int numLinks);
500 void RemoveCellReference(
vtkIdType cellId);
545 virtual int GetPiece();
546 virtual int GetNumberOfPieces();
552 virtual int GetGhostLevel();
577 void RemoveGhostCells();
607 ERR_NO_SUCH_FIELD = -4,
608 ERR_INCORRECT_FIELD = -3,
609 ERR_NON_MANIFOLD_STAR = -2,
617 int GetScalarFieldCriticalIndex(
vtkIdType pointId,
int fieldId);
618 int GetScalarFieldCriticalIndex(
vtkIdType pointId,
const char* fieldName);
703 ncells = this->
Links->GetNcells(ptId);
704 cells = this->
Links->GetCells(ptId);
707 #ifndef VTK_LEGACY_REMOVE
711 ncells =
static_cast<unsigned short>(this->
Links->GetNcells(ptId));
712 cells = this->
Links->GetCells(ptId);
730 return static_cast<int>(this->
Cells->GetTag(cellId).GetCellType());
746 for (i = 0; i < 3; i++)
749 for (j = 0; j < n1; j++)
752 if ((tVerts[0] == tVerts2[0] || tVerts[0] == tVerts2[1] || tVerts[0] == tVerts2[2]) &&
753 (tVerts[1] == tVerts2[0] || tVerts[1] == tVerts2[1] || tVerts[1] == tVerts2[2]) &&
754 (tVerts[2] == tVerts2[0] || tVerts[2] == tVerts2[1] || tVerts[2] == tVerts2[2]))
784 this->
Links->DeletePoint(ptId);
790 this->
Cells->GetTag(cellId).MarkDeleted();
802 this->
Links->RemoveCellReference(cellId, pts[i]);
815 this->
Links->AddCellReference(cellId, pts[i]);
847 for (
vtkIdType i = 0; i < ids->GetNumberOfIds(); i++)
849 if (ids->GetId(i) == oldPtId)
851 ids->SetId(i, newPtId);
vtkSmartPointer< vtkCellArray > Strips
vtkSmartPointer< vtkPolygon > Polygon
vtkSmartPointer< vtkCellArray > Verts
int GetCellType(vtkIdType cellId) override
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkCellArray * GetCellArrayInternal(TaggedCellId tag)
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Efficient method to obtain cells using a particular point.
void ReplaceCellPoint(vtkIdType cellId, vtkIdType oldPtId, vtkIdType newPtId)
Replace a point in the cell connectivity list with a different point.
vtkSmartPointer< vtkVertex > Vertex
a cell that represents an n-sided polygon
vtkSmartPointer< vtkEmptyCell > EmptyCell
void ReplaceCell(vtkIdType cellId, vtkIdList *ids)
Replace the points defining cell "cellId" with a new set of points.
an empty cell used as a place-holder during processing
vtkSmartPointer< vtkPolyLine > PolyLine
vtkIdType GetNumberOfPolys()
void Squeeze() override
Reclaim any unused memory.
void RemoveCellReference(vtkIdType cellId)
Remove all references to cell in cell structure.
abstract superclass for arrays of numeric data
static vtkPointSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
a cell that represents a 3D point
bool NeedToBuildCells()
Check if BuildCells is needed.
vtkIdType GetCellId() const noexcept
vtkSmartPointer< vtkCellLinks > Links
cell represents a 1D line
vtkSmartPointer< vtkPolyVertex > PolyVertex
void GetCellAtId(vtkIdType cellId, vtkIdType &cellSize, vtkIdType const *&cellPoints)
Return the point ids for the cell at cellId.
vtkIdType GetNumberOfVerts()
Return the number of primitives of a particular type held.
void DeletePoint(vtkIdType ptId)
Mark a point/cell as deleted from this vtkPolyData.
vtkSmartPointer< vtkTriangle > Triangle
int GetDataObjectType() override
Return what type of dataset this is.
void AddCellReference(vtkIdType cellId)
Add references to cell in cell structure.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Target GetTarget() const noexcept
#define VTK_SIZEHINT(...)
cell represents a set of 1D lines
bool IsDeleted() const noexcept
vtkSmartPointer< vtkCellArray > Polys
void DeepCopy(vtkDataObject *src) override
virtual void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
Topological inquiry to get all cells using list of points exclusive of cell specified (e....
abstract class to specify cell behavior
vtkSmartPointer< CellMap > Cells
T * GetPointer() const noexcept
Get a raw pointer to the contained object.
virtual void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)=0
Topological inquiry to get cells using point.
unsigned char GetCellType() const noexcept
a simple class to control print indentation
object to represent cell connectivity
int IsTriangle(int v1, int v2, int v3)
Given three vertices, determine whether it's a triangle.
vtkSmartPointer< vtkQuad > Quad
Abstract class in support of both point location and point insertion.
vtkSmartPointer< vtkCellArray > Lines
list of point or cell ids
void Initialize() override
Reset to an empty state and free any memory.
vtkMTimeType GetMTime() override
Get MTime which also considers its vtkPoints MTime.
vtkIdType GetNumberOfCells() override
Standard vtkDataSet interface.
vtkSmartPointer< vtkLine > Line
a cell that represents a triangle
abstract class to specify dataset behavior
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)=0
Topological inquiry to get points defining cell.
int IsPointUsedByCell(vtkIdType ptId, vtkIdType cellId)
Determine whether a point is used by a particular cell.
void BuildCells()
Create data structure that allows random access of cells.
void ResizeCellList(vtkIdType ptId, int size)
Resize the list of cells using a particular point.
vtkIdType GetNumberOfLines()
abstract class for specifying dataset behavior
void Allocate(vtkIdType numCells=1000, int vtkNotUsed(extSize)=1000)
Method allocates initial storage for vertex, line, polygon, and triangle strip arrays.
vtkNew< vtkIdList > LegacyBuffer
concrete dataset represents vertices, lines, polygons, and triangle strips
static vtkPolyDataDummyContainter DummyContainer
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
provides thread-safe access to cells
vtkIdType GetNumberOfStrips()
virtual vtkIdType GetNumberOfCells()=0
Determine the number of cells composing the dataset.
void Allocate(vtkPolyData *inPolyData, vtkIdType numCells=1000, int vtkNotUsed(extSize)=1000)
Similar to the method above, this method allocates initial storage for vertex, line,...
vtkSmartPointer< vtkTriangleStrip > TriangleStrip
general representation of visualization data
virtual int GetCellType(vtkIdType cellId)=0
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
void DeleteCell(vtkIdType cellId)
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric structure of an input point set object.
virtual int GetMaxCellSize()=0
Convenience method returns largest cell size in dataset.
a cell that represents a triangle strip
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Copy a cells point ids into list provided.
a cell that represents a 2D quadrilateral
void ComputeBounds() override
Compute the (X, Y, Z) bounds of the data.
static vtkDataObject * New()
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkTypeUInt32 vtkMTimeType
cell represents a set of 0D vertices