vtkbone
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkboneSelectionUtilities Class Reference

Useful functions for creating and modifying sets of Points and/or Cells. More...

#include <vtkboneSelectionUtilities.h>

Inheritance diagram for vtkboneSelectionUtilities:
Inheritance graph
[legend]
Collaboration diagram for vtkboneSelectionUtilities:
Collaboration graph
[legend]

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual vtkMTimeType GetMTime ()
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
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)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
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 *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
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)
 
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 *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
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)
 
- 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)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static vtkboneSelectionUtilitiesNew ()
 
static int IsTypeOf (const char *type)
 
static vtkboneSelectionUtilitiesSafeDownCast (vtkObject *o)
 
static void AddPointPedigreeIdsArray (vtkDataSet *data, int replace=0)
 
static void AddCellPedigreeIdsArray (vtkDataSet *data, int replace=0)
 
static int ExtractPointsAsPolyData (vtkIdTypeArray *ids, vtkDataSet *data, vtkPolyData *out)
 
static int ExtractPointsAsPolyData (vtkSelection *selection, vtkDataSet *data, vtkPolyData *out)
 
static void PointSelectionFromIds (vtkSelection *selection, const vtkDataSet *data, const vtkIdTypeArray *ids)
 
static void CellSelectionFromIds (vtkSelection *selection, const vtkDataSet *data, const vtkIdTypeArray *ids)
 
static void GetContainingCells (vtkSelection *selection, vtkDataSet *data, vtkIdTypeArray *cellIds)
 
static void GetContainingCellsFromUnstructuredGrid (vtkSelection *selection, vtkUnstructuredGrid *data, vtkIdTypeArray *cellIds)
 
static void GetContainingCellsFromPolyData (vtkSelection *selection, vtkPolyData *data, vtkIdTypeArray *cellIds)
 
static void GetContainingCellsFromGeneric (vtkSelection *selection, vtkDataSet *data, vtkIdTypeArray *cellIds)
 
static void ConvertToContainingCellsSelection (vtkSelection *selectionIn, vtkDataSet *data, vtkSelection *selectionOut)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkboneSelectionUtilities ()
 
 ~vtkboneSelectionUtilities ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
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 &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

Useful functions for creating and modifying sets of Points and/or Cells.

See also
vtkSelection vtkSelectionNode vtkConvertSelection

Definition at line 36 of file vtkboneSelectionUtilities.h.

Constructor & Destructor Documentation

vtkboneSelectionUtilities::vtkboneSelectionUtilities ( )
inlineprotected

Definition at line 122 of file vtkboneSelectionUtilities.h.

vtkboneSelectionUtilities::~vtkboneSelectionUtilities ( )
inlineprotected

Definition at line 123 of file vtkboneSelectionUtilities.h.

Member Function Documentation

static vtkboneSelectionUtilities* vtkboneSelectionUtilities::New ( )
static
virtual const char* vtkboneSelectionUtilities::GetClassName ( )
virtual
static int vtkboneSelectionUtilities::IsTypeOf ( const char *  type)
static
virtual int vtkboneSelectionUtilities::IsA ( const char *  type)
virtual

Reimplemented from vtkObjectBase.

static vtkboneSelectionUtilities* vtkboneSelectionUtilities::SafeDownCast ( vtkObject o)
static
static void vtkboneSelectionUtilities::PointSelectionFromIds ( vtkSelection selection,
const vtkDataSet data,
const vtkIdTypeArray ids 
)
static

Given a list of point Ids, create a corresponding vtkSelection object.

static void vtkboneSelectionUtilities::CellSelectionFromIds ( vtkSelection selection,
const vtkDataSet data,
const vtkIdTypeArray ids 
)
static

Given a list of cell Ids, create a corresponding vtkSelection object.

static void vtkboneSelectionUtilities::GetContainingCells ( vtkSelection selection,
vtkDataSet data,
vtkIdTypeArray cellIds 
)
static

Given any type of selection returns the cell Ids of all the cells containing and nodes in the selection. If the PedigreeIds attribute array is present on CellData, then those Ids will be used. This somewhat mirrors static methods in vtkConvertSelection, but those don't work for containing cell selections. Furthermore, using the VTK containing cells selections is slow. This method is much faster.

static void vtkboneSelectionUtilities::GetContainingCellsFromUnstructuredGrid ( vtkSelection selection,
vtkUnstructuredGrid data,
vtkIdTypeArray cellIds 
)
static

Given any type of selection returns the cell Ids of all the cells containing and nodes in the selection. If the PedigreeIds attribute array is present on CellData, then those Ids will be used. This somewhat mirrors static methods in vtkConvertSelection, but those don't work for containing cell selections. Furthermore, using the VTK containing cells selections is slow. This method is much faster.

static void vtkboneSelectionUtilities::GetContainingCellsFromPolyData ( vtkSelection selection,
vtkPolyData data,
vtkIdTypeArray cellIds 
)
static

Given any type of selection returns the cell Ids of all the cells containing and nodes in the selection. If the PedigreeIds attribute array is present on CellData, then those Ids will be used. This somewhat mirrors static methods in vtkConvertSelection, but those don't work for containing cell selections. Furthermore, using the VTK containing cells selections is slow. This method is much faster.

static void vtkboneSelectionUtilities::GetContainingCellsFromGeneric ( vtkSelection selection,
vtkDataSet data,
vtkIdTypeArray cellIds 
)
static

Given any type of selection returns the cell Ids of all the cells containing and nodes in the selection. If the PedigreeIds attribute array is present on CellData, then those Ids will be used. This somewhat mirrors static methods in vtkConvertSelection, but those don't work for containing cell selections. Furthermore, using the VTK containing cells selections is slow. This method is much faster.

static void vtkboneSelectionUtilities::ConvertToContainingCellsSelection ( vtkSelection selectionIn,
vtkDataSet data,
vtkSelection selectionOut 
)
static

Given any type of selection, converts it to a "containing cells" selection. This somewhat mirrors static methods in vtkConvertSelection, but those don't work for containing cell selections.

static void vtkboneSelectionUtilities::AddPointPedigreeIdsArray ( vtkDataSet data,
int  replace = 0 
)
static

Add an array as the PedigreeIds attribute array of the PointData. This array has initially values equal to indices. It is often used in often used in VTK to trace back original Node Ids after selecting a subset created as a new object. VTK filters typically will copy through PointData for each new point. If the named array already exists, it is not replaced unless replace is set to 1.

static void vtkboneSelectionUtilities::AddCellPedigreeIdsArray ( vtkDataSet data,
int  replace = 0 
)
static

Add an array as the PedigreeIds attribute array of the CellData. This array has initially values equal to indices. It is often used in often used in VTK to trace back original Cell Ids after selecting a subset created as a new object. VTK filters typically will copy through CellData for each new cell. If the named array already exists, it is not replaced unless replace is set to 1.

static int vtkboneSelectionUtilities::ExtractPointsAsPolyData ( vtkIdTypeArray ids,
vtkDataSet data,
vtkPolyData out 
)
static
static int vtkboneSelectionUtilities::ExtractPointsAsPolyData ( vtkSelection selection,
vtkDataSet data,
vtkPolyData out 
)
static

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