VTK
|
keep track of edges (defined by pair of integer id's) More...
#include <vtkGenericEdgeTable.h>
Classes | |
class | EdgeEntry |
class | PointEntry |
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) |
int | GetNumberOfComponents () |
void | SetNumberOfComponents (int count) |
int | CheckPoint (vtkIdType ptId) |
int | CheckPoint (vtkIdType ptId, double point[3], double *scalar) |
void | RemovePoint (vtkIdType ptId) |
void | IncrementPointReferenceCount (vtkIdType ptId) |
void | InsertEdge (vtkIdType e1, vtkIdType e2, vtkIdType cellId, int ref, 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) |
void | DumpTable () |
void | LoadFactor () |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkGenericEdgeTable * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObject *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkGenericEdgeTable () | |
~vtkGenericEdgeTable () | |
vtkIdType | HashFunction (vtkIdType e1, vtkIdType e2) |
vtkIdType | HashFunction (vtkIdType ptId) |
void | InsertEdge (vtkIdType e1, vtkIdType e2, vtkIdType cellId, int ref, int toSplit, vtkIdType &ptId) |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkEdgeTableEdge * | EdgeTable |
vtkEdgeTablePoints * | HashPoints |
vtkIdType | LastPointId |
vtkIdType | NumberOfComponents |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
typedef vtkObject | Superclass |
static int | IsTypeOf (const char *type) |
static vtkGenericEdgeTable * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
Additional Inherited Members | |
![]() | |
typedef vtkObjectBase | Superclass |
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.
Definition at line 37 of file vtkGenericEdgeTable.h.
Standard VTK type and print macros.
Definition at line 45 of file vtkGenericEdgeTable.h.
|
protected |
|
protected |
|
static |
Instantiate an empty edge table.
|
virtual |
Standard VTK type and print macros.
Reimplemented from vtkObject.
|
static |
Standard VTK type and print macros.
|
virtual |
Standard VTK type and print macros.
Reimplemented from vtkObject.
|
static |
Standard VTK type and print macros.
|
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
|
protected |
Split the edge with the indicated point id.
|
protected |
Definition at line 227 of file vtkGenericEdgeTable.h.
|
protected |
Definition at line 230 of file vtkGenericEdgeTable.h.
|
protected |
Definition at line 240 of file vtkGenericEdgeTable.h.
|
protected |
Definition at line 242 of file vtkGenericEdgeTable.h.