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