Go to the documentation of this file.
30 #ifndef vtkGenericEdgeTable_h
31 #define vtkGenericEdgeTable_h
33 #include "vtkCommonDataModelModule.h"
36 class vtkEdgeTableEdge;
37 class vtkEdgeTablePoints;
166 delete[] this->Scalar;
173 memcpy(this->Coord,other.
Coord,
sizeof(
double)*3);
176 this->numberOfComponents = c;
177 this->Scalar =
new double[c];
178 memcpy(this->Scalar, other.
Scalar,
sizeof(
double)*c);
188 memcpy(this->Coord, other.
Coord,
sizeof(
double)*3);
192 if(this->numberOfComponents!=c)
194 delete[] this->Scalar;
195 this->Scalar =
new double[c];
196 this->numberOfComponents = c;
198 memcpy(this->Scalar, other.
Scalar,
sizeof(
double)*c);
230 this->PtId = copy.
PtId;
231 this->CellId = copy.
CellId;
244 this->PtId = entry.
PtId;
245 this->CellId = entry.
CellId;
void SetNumberOfComponents(int count)
Set the total number of components for the point-centered attributes.
PointEntry & operator=(const PointEntry &other)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType HashFunction(vtkIdType e1, vtkIdType e2)
void InsertEdge(vtkIdType e1, vtkIdType e2, vtkIdType cellId, int ref=1)
Insert an edge but do not split it.
void InsertPoint(vtkIdType ptId, double point[3])
Insert point associated with an edge.
PointEntry(int size)
Constructor with a scalar field of ‘size’ doubles.
abstract base class for most VTK objects
int CheckPoint(vtkIdType ptId)
Check if a point is already in the point table.
int CheckPoint(vtkIdType ptId, double point[3], double *scalar)
Check for the existence of a point and return its coordinate value.
vtkIdType HashFunction(vtkIdType ptId)
void InsertEdge(vtkIdType e1, vtkIdType e2, vtkIdType cellId, int ref, int toSplit, vtkIdType &ptId)
Split the edge with the indicated point id.
void IncrementPointReferenceCount(vtkIdType ptId)
Increment the reference count for the indicated point.
a simple class to control print indentation
EdgeEntry & operator=(const EdgeEntry &entry)
void Initialize(vtkIdType start)
To specify the starting point id.
void RemovePoint(vtkIdType ptId)
Remove a point from the point table.
int CheckEdgeReferenceCount(vtkIdType e1, vtkIdType e2)
Return the edge reference count.
vtkEdgeTablePoints * HashPoints
keep track of edges (defined by pair of integer id's)
vtkEdgeTableEdge * EdgeTable
void InsertPointAndScalar(vtkIdType ptId, double pt[3], double *s)
int IncrementEdgeReferenceCount(vtkIdType e1, vtkIdType e2, vtkIdType cellId)
Method that increments the referencecount and returns it.
static vtkGenericEdgeTable * New()
Instantiate an empty edge table.
void InsertEdge(vtkIdType e1, vtkIdType e2, vtkIdType cellId, int ref, vtkIdType &ptId)
Split the edge with the indicated point id.
EdgeEntry(const EdgeEntry ©)
int RemoveEdge(vtkIdType e1, vtkIdType e2)
Method to remove an edge from the table.
void DumpTable()
For debugging purposes.
~vtkGenericEdgeTable() override
int GetNumberOfComponents()
Return the total number of components for the point-centered attributes.
int CheckEdge(vtkIdType e1, vtkIdType e2, vtkIdType &ptId)
Method to determine whether an edge is in the table (0 or 1), or not (-1).
vtkIdType NumberOfComponents
PointEntry(const PointEntry &other)