VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkBridgeCellIterator Class Reference

Implementation of vtkGenericCellIterator. It is just an example that show how to implement the Generic API. It is also used for testing and evaluating the Generic framework. More...

#include <vtkBridgeCellIterator.h>

Inheritance diagram for vtkBridgeCellIterator:
[legend]
Collaboration diagram for vtkBridgeCellIterator:
[legend]

List of all members.

Public Types

typedef vtkGenericCellIterator Superclass
- Public Types inherited from vtkObject

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void Begin ()
int IsAtEnd ()
vtkGenericAdaptorCellNewCell ()
void GetCell (vtkGenericAdaptorCell *c)
vtkGenericAdaptorCellGetCell ()
void Next ()
void InitWithOneCell (vtkBridgeCell *c)
void InitWithDataSet (vtkBridgeDataSet *ds, int dim)
void InitWithDataSetBoundaries (vtkBridgeDataSet *ds, int dim, int exterior_only)
void InitWithOneCell (vtkBridgeDataSet *ds, vtkIdType cellid)
void InitWithCellBoundaries (vtkBridgeCell *cell, int dim)
void InitWithCells (vtkIdList *cells, vtkBridgeDataSet *ds)
void InitWithPoints (vtkPoints *coords, vtkIdList *pts, int dim, vtkIdType cellid)
- Public Member Functions inherited from vtkObject
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)
vtkCommandGetCommand (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)
- Public Member Functions inherited from vtkObjectBase
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 vtkBridgeCellIteratorNew ()
static int IsTypeOf (const char *type)
static vtkBridgeCellIteratorSafeDownCast (vtkObject *o)
- Static Public Member Functions inherited from vtkObject
static void BreakOnError ()
static void SetGlobalWarningDisplay (int val)
static void GlobalWarningDisplayOn ()
static void GlobalWarningDisplayOff ()
static int GetGlobalWarningDisplay ()

Protected Member Functions

 vtkBridgeCellIterator ()
virtual ~vtkBridgeCellIterator ()
- Protected Member Functions inherited from vtkGenericCellIterator
 vtkGenericCellIterator ()
virtual ~vtkGenericCellIterator ()
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
virtual void ReportReferences (vtkGarbageCollector *)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Protected Attributes

vtkBridgeCellIteratorStrategyCurrentIterator
vtkBridgeCellIteratorOnDataSetIteratorOnDataSet
vtkBridgeCellIteratorOneIteratorOneCell
vtkBridgeCellIteratorOnCellBoundariesIteratorOnCellBoundaries
vtkBridgeCellIteratorOnCellListIteratorOnCellList
vtkBridgeDataSetDataSet
vtkIdType Id
int OneCell
vtkIdType Size
vtkBridgeCellCell

Detailed Description

Implementation of vtkGenericCellIterator. It is just an example that show how to implement the Generic API. It is also used for testing and evaluating the Generic framework.

See also:
vtkGenericCellIterator, vtkBridgeDataSet
Tests:
vtkBridgeCellIterator (Tests)

Definition at line 45 of file vtkBridgeCellIterator.h.


Member Typedef Documentation

Standard VTK construction and type macros.

Reimplemented from vtkGenericCellIterator.

Definition at line 49 of file vtkBridgeCellIterator.h.


Constructor & Destructor Documentation

vtkBridgeCellIterator::vtkBridgeCellIterator ( )
protected
virtual vtkBridgeCellIterator::~vtkBridgeCellIterator ( )
protectedvirtual

Member Function Documentation

static vtkBridgeCellIterator* vtkBridgeCellIterator::New ( )
static

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

virtual const char* vtkBridgeCellIterator::GetClassName ( )
virtual

Standard VTK construction and type macros.

Reimplemented from vtkGenericCellIterator.

static int vtkBridgeCellIterator::IsTypeOf ( const char *  type)
static

Standard VTK construction and type macros.

Reimplemented from vtkGenericCellIterator.

virtual int vtkBridgeCellIterator::IsA ( const char *  type)
virtual

Standard VTK construction and type macros.

Reimplemented from vtkGenericCellIterator.

static vtkBridgeCellIterator* vtkBridgeCellIterator::SafeDownCast ( vtkObject o)
static

Standard VTK construction and type macros.

Reimplemented from vtkGenericCellIterator.

void vtkBridgeCellIterator::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Standard VTK construction and type macros.

Reimplemented from vtkGenericCellIterator.

void vtkBridgeCellIterator::Begin ( )
virtual

Move iterator to first position if any (loop initialization).

Implements vtkGenericCellIterator.

int vtkBridgeCellIterator::IsAtEnd ( )
virtual

Is there no cell at iterator position? (exit condition).

Implements vtkGenericCellIterator.

vtkGenericAdaptorCell* vtkBridgeCellIterator::NewCell ( )
virtual

Create an empty cell.

Postcondition:
result_exists: result!=0

Implements vtkGenericCellIterator.

void vtkBridgeCellIterator::GetCell ( vtkGenericAdaptorCell c)
virtual

Cell at current position

Precondition:
not_at_end: !IsAtEnd()
c_exists: c!=0 THREAD SAFE

Implements vtkGenericCellIterator.

vtkGenericAdaptorCell* vtkBridgeCellIterator::GetCell ( )
virtual

Cell at current position. NOT THREAD SAFE

Precondition:
not_at_end: !IsAtEnd()
Postcondition:
result_exits: result!=0

Implements vtkGenericCellIterator.

void vtkBridgeCellIterator::Next ( )
virtual

Move iterator to next position. (loop progression).

Precondition:
not_at_end: !IsAtEnd()

Implements vtkGenericCellIterator.

void vtkBridgeCellIterator::InitWithDataSet ( vtkBridgeDataSet ds,
int  dim 
)

Used internally by vtkBridgeDataSet. Iterate over cells of `ds' of some dimension `dim'.

Precondition:
ds_exists: ds!=0
valid_dim_range: (dim>=-1) && (dim<=3)
void vtkBridgeCellIterator::InitWithDataSetBoundaries ( vtkBridgeDataSet ds,
int  dim,
int  exterior_only 
)

Used internally by vtkBridgeDataSet. Iterate over boundary cells of `ds' of some dimension `dim'.

Precondition:
ds_exists: ds!=0
valid_dim_range: (dim>=-1) && (dim<=3)
void vtkBridgeCellIterator::InitWithOneCell ( vtkBridgeDataSet ds,
vtkIdType  cellid 
)

Used internally by vtkBridgeDataSet. Iterate on one cell `id' of `ds'.

Precondition:
ds_exists: ds!=0
valid_id: (id>=0)&&(id<=ds->GetNumberOfCells())
void vtkBridgeCellIterator::InitWithOneCell ( vtkBridgeCell c)

Used internally by vtkBridgeCell. Iterate on one cell `c'.

Precondition:
c_exists: c!=0
void vtkBridgeCellIterator::InitWithCellBoundaries ( vtkBridgeCell cell,
int  dim 
)

Used internally by vtkBridgeCell. Iterate on boundary cells of a cell.

Precondition:
cell_exists: cell!=0
valid_dim_range: (dim==-1) || ((dim>=0)&&(dim<cell->GetDimension()))
void vtkBridgeCellIterator::InitWithCells ( vtkIdList cells,
vtkBridgeDataSet ds 
)

Used internally by vtkBridgeCell. Iterate on neighbors defined by `cells' over the dataset `ds'.

Precondition:
cells_exist: cells!=0
ds_exists: ds!=0
void vtkBridgeCellIterator::InitWithPoints ( vtkPoints coords,
vtkIdList pts,
int  dim,
vtkIdType  cellid 
)

Used internally by vtkBridgeCell. Iterate on a boundary cell (defined by its points `pts' with coordinates `coords', dimension `dim' and unique id `cellid') of a cell.

Precondition:
coords_exist: coords!=0
pts_exist: pts!=0
valid_dim: dim>=0 && dim<=2
valid_points: pts->GetNumberOfIds()>dim

Member Data Documentation

vtkBridgeCellIteratorStrategy* vtkBridgeCellIterator::CurrentIterator
protected

Definition at line 134 of file vtkBridgeCellIterator.h.

vtkBridgeCellIteratorOnDataSet* vtkBridgeCellIterator::IteratorOnDataSet
protected

Definition at line 135 of file vtkBridgeCellIterator.h.

vtkBridgeCellIteratorOne* vtkBridgeCellIterator::IteratorOneCell
protected

Definition at line 136 of file vtkBridgeCellIterator.h.

vtkBridgeCellIteratorOnCellBoundaries* vtkBridgeCellIterator::IteratorOnCellBoundaries
protected

Definition at line 137 of file vtkBridgeCellIterator.h.

vtkBridgeCellIteratorOnCellList* vtkBridgeCellIterator::IteratorOnCellList
protected

Definition at line 138 of file vtkBridgeCellIterator.h.

vtkBridgeDataSet* vtkBridgeCellIterator::DataSet
protected

Definition at line 140 of file vtkBridgeCellIterator.h.

vtkIdType vtkBridgeCellIterator::Id
protected

Definition at line 141 of file vtkBridgeCellIterator.h.

int vtkBridgeCellIterator::OneCell
protected

Definition at line 142 of file vtkBridgeCellIterator.h.

vtkIdType vtkBridgeCellIterator::Size
protected

Definition at line 143 of file vtkBridgeCellIterator.h.

vtkBridgeCell* vtkBridgeCellIterator::Cell
protected

Definition at line 144 of file vtkBridgeCellIterator.h.


The documentation for this class was generated from the following file: