#include <vtkGenericEdgeTable.h>
vtkGenericEdgeTable is used to indicate the existance of and hold information about edges. Similar to vtkEdgeTable, this class is more sophisticated in that it uses reference counting to keep track of when information about an edge should be deleted.
vtkGenericEdgeTable is a helper class used in the adaptor framework. It is used during the tessellation process to hold information about the error metric on each edge. This avoids recomputing the error metric each time the same edge is visited.
Definition at line 37 of file vtkGenericEdgeTable.h.
Standard VTK type and print macros.
Reimplemented from vtkObject.
Definition at line 45 of file vtkGenericEdgeTable.h.
vtkGenericEdgeTable::vtkGenericEdgeTable | ( | ) | [protected] |
vtkGenericEdgeTable::~vtkGenericEdgeTable | ( | ) | [protected] |
static vtkGenericEdgeTable* vtkGenericEdgeTable::New | ( | ) | [static] |
Instantiate an empty edge table.
Reimplemented from vtkObject.
virtual const char* vtkGenericEdgeTable::GetClassName | ( | ) | [virtual] |
Standard VTK type and print macros.
Reimplemented from vtkObject.
static int vtkGenericEdgeTable::IsTypeOf | ( | const char * | type | ) | [static] |
Standard VTK type and print macros.
Reimplemented from vtkObject.
virtual int vtkGenericEdgeTable::IsA | ( | const char * | type | ) | [virtual] |
Standard VTK type and print macros.
Reimplemented from vtkObject.
static vtkGenericEdgeTable* vtkGenericEdgeTable::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard VTK type and print macros.
Reimplemented from vtkObject.
void vtkGenericEdgeTable::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Standard VTK type and print macros.
Reimplemented from vtkObject.
void vtkGenericEdgeTable::InsertEdge | ( | vtkIdType | e1, | |
vtkIdType | e2, | |||
vtkIdType | cellId, | |||
int | ref, | |||
vtkIdType & | ptId | |||
) |
Split the edge with the indicated point id.
Insert an edge but do not split it.
Method to remove an edge from the table. The method returns the current reference count.
Method to determine whether an edge is in the table (0 or 1), or not (-1). It returns whether the edge was split (1) or not (0), and the point id exists.
int vtkGenericEdgeTable::IncrementEdgeReferenceCount | ( | vtkIdType | e1, | |
vtkIdType | e2, | |||
vtkIdType | cellId | |||
) |
Method that increments the referencecount and returns it.
Return the edge reference count.
void vtkGenericEdgeTable::Initialize | ( | vtkIdType | start | ) |
To specify the starting point id. It will initialize LastPointId This is very sensitive the start point should be cautiously chosen
int vtkGenericEdgeTable::GetNumberOfComponents | ( | ) |
Return the total number of components for the point-centered attributes.
void vtkGenericEdgeTable::SetNumberOfComponents | ( | int | count | ) |
Set the total number of components for the point-centered attributes.
int vtkGenericEdgeTable::CheckPoint | ( | vtkIdType | ptId | ) |
Check if a point is already in the point table.
int vtkGenericEdgeTable::CheckPoint | ( | vtkIdType | ptId, | |
double | point[3], | |||
double * | scalar | |||
) |
Check for the existence of a point and return its coordinate value.
void vtkGenericEdgeTable::InsertPoint | ( | vtkIdType | ptId, | |
double | point[3] | |||
) |
Insert point associated with an edge.
void vtkGenericEdgeTable::InsertPointAndScalar | ( | vtkIdType | ptId, | |
double | pt[3], | |||
double * | s | |||
) |
Insert point associated with an edge.
void vtkGenericEdgeTable::RemovePoint | ( | vtkIdType | ptId | ) |
Remove a point from the point table.
void vtkGenericEdgeTable::IncrementPointReferenceCount | ( | vtkIdType | ptId | ) |
Increment the reference count for the indicated point.
void vtkGenericEdgeTable::DumpTable | ( | ) |
For debugging purposes. It is particularly useful to dump the table and check that nothing is left after a complete iteration. LoadFactor should ideally be very low to be able to have a constant time access
void vtkGenericEdgeTable::LoadFactor | ( | ) |
For debugging purposes. It is particularly useful to dump the table and check that nothing is left after a complete iteration. LoadFactor should ideally be very low to be able to have a constant time access
void vtkGenericEdgeTable::InsertEdge | ( | vtkIdType | e1, | |
vtkIdType | e2, | |||
vtkIdType | cellId, | |||
int | ref, | |||
int | toSplit, | |||
vtkIdType & | ptId | |||
) | [protected] |
Split the edge with the indicated point id.
vtkEdgeTableEdge* vtkGenericEdgeTable::EdgeTable [protected] |
Definition at line 227 of file vtkGenericEdgeTable.h.
vtkEdgeTablePoints* vtkGenericEdgeTable::HashPoints [protected] |
Definition at line 230 of file vtkGenericEdgeTable.h.
vtkIdType vtkGenericEdgeTable::LastPointId [protected] |
Definition at line 240 of file vtkGenericEdgeTable.h.
vtkIdType vtkGenericEdgeTable::NumberOfComponents [protected] |
Definition at line 242 of file vtkGenericEdgeTable.h.