VTK
Protected Member Functions | Protected Attributes | List of all members
vtkStaticCellLinks Class Reference

object represents upward pointers from points to list of cells using each point More...

#include <vtkStaticCellLinks.h>

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

Public Member Functions

virtual void BuildLinks (vtkDataSet *ds)
 
vtkIdType GetNumberOfCells (vtkIdType ptId)
 
unsigned short GetNcells (vtkIdType ptId)
 
const vtkIdTypeGetCells (vtkIdType ptId)
 
void Initialize ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool 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)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(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 &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Protected Member Functions

 vtkStaticCellLinks ()
 
virtual ~vtkStaticCellLinks ()
 
- 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 &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkStaticCellLinksTemplate< vtkIdType > * Impl
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
typedef vtkAbstractCellLinks Superclass
 
static vtkStaticCellLinksNew ()
 
static int IsTypeOf (const char *type)
 
static vtkStaticCellLinksSafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkStaticCellLinksNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBaseNewInstanceInternal () const
 

Additional Inherited Members

- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Detailed Description

object represents upward pointers from points to list of cells using each point

vtkStaticCellLinks is a supplemental object to vtkCellArray and vtkCellTypes, enabling access from points to the cells using the points. vtkStaticCellLinks is an array of links, each link represents a list of cell ids using a particular point. The information provided by this object can be used to determine neighbors and construct other local topological information. This class is a faster implementation of vtkCellLinks. However, it cannot be incrementally constructed; it is meant to be constructed once (statically) and must be rebuilt if the cells change.

Warning
This is a drop-in replacement for vtkCellLinks using static link construction. It uses the templated vtkStaticCellLinksTemplate class, instantiating vtkStaticCellLinksTemplate with a vtkIdType template parameter. Note that for best performance, the vtkStaticCellLinksTemplate class may be used directly, instantiating it with the appropriate id type. This class is also wrappable and can be used from an interpreted language such as Python.
See also
vtkCellLinks vtkStaticCellLinksTemplate
Tests:
vtkStaticCellLinks (Tests)

Definition at line 57 of file vtkStaticCellLinks.h.

Member Typedef Documentation

Standard methods for instantiation, type manipulation and printing.

Definition at line 63 of file vtkStaticCellLinks.h.

Constructor & Destructor Documentation

vtkStaticCellLinks::vtkStaticCellLinks ( )
protected
virtual vtkStaticCellLinks::~vtkStaticCellLinks ( )
protectedvirtual

Member Function Documentation

static vtkStaticCellLinks* vtkStaticCellLinks::New ( )
static

Standard methods for instantiation, type manipulation and printing.

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

Standard methods for instantiation, type manipulation and printing.

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

Standard methods for instantiation, type manipulation and printing.

Reimplemented from vtkAbstractCellLinks.

static vtkStaticCellLinks* vtkStaticCellLinks::SafeDownCast ( vtkObjectBase o)
static

Standard methods for instantiation, type manipulation and printing.

virtual vtkObjectBase* vtkStaticCellLinks::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for instantiation, type manipulation and printing.

Reimplemented from vtkAbstractCellLinks.

vtkStaticCellLinks* vtkStaticCellLinks::NewInstance ( ) const

Standard methods for instantiation, type manipulation and printing.

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

Standard methods for instantiation, type manipulation and printing.

Reimplemented from vtkAbstractCellLinks.

virtual void vtkStaticCellLinks::BuildLinks ( vtkDataSet ds)
inlinevirtual

Build the link list array. Satisfy the superclass API.

Implements vtkAbstractCellLinks.

Definition at line 69 of file vtkStaticCellLinks.h.

vtkIdType vtkStaticCellLinks::GetNumberOfCells ( vtkIdType  ptId)
inline

Get the number of cells using the point specified by ptId.

Definition at line 75 of file vtkStaticCellLinks.h.

unsigned short vtkStaticCellLinks::GetNcells ( vtkIdType  ptId)
inline

Get the number of cells using the point specified by ptId. This is an alias for GetNumberOfCells(); consistent with the vtkCellLinks API.

Definition at line 82 of file vtkStaticCellLinks.h.

const vtkIdType* vtkStaticCellLinks::GetCells ( vtkIdType  ptId)
inline

Return a list of cell ids using the specified point.

Definition at line 88 of file vtkStaticCellLinks.h.

void vtkStaticCellLinks::Initialize ( )
inline

Make sure any previously created links are cleaned up.

Definition at line 94 of file vtkStaticCellLinks.h.

Member Data Documentation

vtkStaticCellLinksTemplate<vtkIdType>* vtkStaticCellLinks::Impl
protected

Definition at line 102 of file vtkStaticCellLinks.h.


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