vtkGenericEdgeTable Class Reference
#include <vtkGenericEdgeTable.h>
Inheritance diagram for vtkGenericEdgeTable:
[legend]Collaboration diagram for vtkGenericEdgeTable:
[legend]List of all members.
Detailed Description
keep track of edges (defined by pair of integer id's)
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.
- Created by:
-
- CVS contributions (if > 5%):
-
- CVS logs (CVSweb):
.cxx (/Filtering/vtkGenericEdgeTable
.cxx)
.h (/Filtering/vtkGenericEdgeTable
.h)
Definition at line 47 of file vtkGenericEdgeTable.h.
|
[NOHEADER] |
typedef vtkObject | Superclass |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
int | IsTypeOf (const char *type) |
vtkGenericEdgeTable * | SafeDownCast (vtkObject *o) |
Public Member Functions |
void | InsertEdge (vtkIdType e1, vtkIdType e2, vtkIdType cellId, int ref=1) |
int | RemoveEdge (vtkIdType e1, vtkIdType e2) |
int | CheckEdge (vtkIdType e1, vtkIdType e2, vtkIdType &ptId) |
int | CheckEdgeReferenceCount (vtkIdType e1, vtkIdType e2) |
void | Initialize (vtkIdType start) |
vtkIdType | GetLastPointId () |
void | IncrementLastPointId () |
int | CheckPoint (vtkIdType ptId) |
int | CheckPoint (vtkIdType ptId, double point[3], double scalar[3]) |
void | RemovePoint (vtkIdType ptId) |
void | IncrementPointReferenceCount (vtkIdType ptId) |
|
void | InsertEdge (vtkIdType e1, vtkIdType e2, vtkIdType cellId, int ref, vtkIdType &ptId) |
|
void | InsertEdge (vtkIdType e1, vtkIdType e2, vtkIdType cellId, int ref, int toSplit, vtkIdType &ptId) |
|
int | IncrementEdgeReferenceCount (vtkIdType e1, vtkIdType e2, vtkIdType cellId) |
|
void | InsertPoint (vtkIdType ptId, double point[3]) |
void | InsertPointAndScalar (vtkIdType ptId, double pt[3], double s[3]) |
Static Public Member Functions |
vtkGenericEdgeTable * | New () |
Protected Member Functions |
| vtkGenericEdgeTable () |
| ~vtkGenericEdgeTable () |
vtkIdType | HashFunction (vtkIdType e1, vtkIdType e2) |
vtkIdType | HashFunction (vtkIdType ptId) |
|
void | DumpTable () |
void | LoadFactor () |
Protected Attributes |
vtkEdgeTableEdge * | EdgeTable |
vtkEdgeTablePoints * | HashPoints |
vtkIdType | LastPointId |
Member Typedef Documentation
Constructor & Destructor Documentation
vtkGenericEdgeTable::vtkGenericEdgeTable |
( |
|
) |
[protected] |
|
Member Function Documentation
|
Instantiate an empty edge table.
Reimplemented from vtkObject. |
virtual const char* vtkGenericEdgeTable::GetClassName |
( |
|
) |
[virtual] |
|
|
Standard VTK type and print macros.
Reimplemented from vtkObject. |
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. |
|
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. |
|
Split the edge with the indicated point id. |
|
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. It returns if the edge was split, and the point id exists. |
|
Method that increments the referencecount and returns it. |
|
Return the edge reference count. |
void vtkGenericEdgeTable::Initialize |
( |
vtkIdType |
start |
) |
|
|
|
To specify the starting point id. |
vtkIdType vtkGenericEdgeTable::GetLastPointId |
( |
|
) |
|
|
|
Return the last point id inserted. |
void vtkGenericEdgeTable::IncrementLastPointId |
( |
|
) |
|
|
|
Increment the last point id. |
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[3] |
|
) |
|
|
|
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[3] |
|
) |
|
|
|
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 |
( |
|
) |
[protected] |
|
void vtkGenericEdgeTable::LoadFactor |
( |
|
) |
[protected] |
|
Member Data Documentation
The documentation for this class was generated from the following file: