VTK
|
A node in a selection tree. Used to store selection results. More...
#include <vtkSelection.h>
Public Types | |
typedef vtkDataObject | Superclass |
![]() | |
typedef vtkObject | Superclass |
enum | FieldAssociations { FIELD_ASSOCIATION_POINTS, FIELD_ASSOCIATION_CELLS, FIELD_ASSOCIATION_NONE, FIELD_ASSOCIATION_POINTS_THEN_CELLS, FIELD_ASSOCIATION_VERTICES, FIELD_ASSOCIATION_EDGES, FIELD_ASSOCIATION_ROWS, NUMBER_OF_ASSOCIATIONS } |
enum | AttributeTypes { POINT, CELL, FIELD, POINT_THEN_CELL, VERTEX, EDGE, ROW, NUMBER_OF_ATTRIBUTE_TYPES } |
enum | FieldOperations { FIELD_OPERATION_PRESERVED, FIELD_OPERATION_REINTERPOLATED, FIELD_OPERATION_MODIFIED, FIELD_OPERATION_REMOVED } |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkSelection * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Initialize () |
virtual int | GetDataObjectType () |
unsigned int | GetNumberOfNodes () |
virtual vtkSelectionNode * | GetNode (unsigned int idx) |
virtual void | AddNode (vtkSelectionNode *) |
virtual void | DeepCopy (vtkDataObject *src) |
virtual void | ShallowCopy (vtkDataObject *src) |
virtual void | Union (vtkSelection *selection) |
virtual void | Union (vtkSelectionNode *node) |
virtual void | Subtract (vtkSelection *selection) |
virtual void | Subtract (vtkSelectionNode *node) |
unsigned long | GetMTime () |
virtual void | RemoveNode (unsigned int idx) |
virtual void | RemoveNode (vtkSelectionNode *) |
virtual void | RemoveAllNodes () |
virtual void | Dump () |
virtual void | Dump (ostream &os) |
![]() | |
vtkDataObject * | NewInstance () const |
void | ReleaseData () |
unsigned long | GetUpdateTime () |
virtual unsigned long | GetActualMemorySize () |
virtual void | CopyInformationToPipeline (vtkInformation *vtkNotUsed(info)) |
void | DataHasBeenGenerated () |
virtual void | PrepareForNewData () |
virtual int | GetExtentType () |
virtual void | Crop (const int *updateExtent) |
virtual vtkDataSetAttributes * | GetAttributes (int type) |
virtual vtkFieldData * | GetAttributesAsFieldData (int type) |
virtual int | GetAttributeTypeForArray (vtkAbstractArray *arr) |
virtual vtkIdType | GetNumberOfElements (int type) |
virtual vtkInformation * | GetInformation () |
virtual void | SetInformation (vtkInformation *) |
virtual int | GetDataReleased () |
virtual void | SetFieldData (vtkFieldData *) |
virtual vtkFieldData * | GetFieldData () |
virtual void | CopyInformationFromPipeline (vtkInformation *vtkNotUsed(info)) |
void | GlobalReleaseDataFlagOn () |
void | GlobalReleaseDataFlagOff () |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
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) |
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) |
![]() | |
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 | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkSelection () | |
~vtkSelection () | |
![]() | |
vtkDataObject () | |
~vtkDataObject () | |
![]() | |
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 &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
![]() | |
vtkFieldData * | FieldData |
int | DataReleased |
vtkTimeStamp | UpdateTime |
vtkInformation * | Information |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
A node in a selection tree. Used to store selection results.
vtkSelection is a collection of vtkSelectionNode objects, each of which contains information about a piece of the whole selection. Each selection node may contain different types of selections.
Definition at line 44 of file vtkSelection.h.
Definition at line 47 of file vtkSelection.h.
|
protected |
|
protected |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkDataObject.
|
static |
|
protectedvirtual |
Reimplemented from vtkDataObject.
vtkSelection* vtkSelection::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkDataObject.
|
static |
|
virtual |
Restore data object to initial state,
Reimplemented from vtkDataObject.
|
inlinevirtual |
Returns VTK_SELECTION enumeration value.
Reimplemented from vtkDataObject.
Definition at line 55 of file vtkSelection.h.
unsigned int vtkSelection::GetNumberOfNodes | ( | ) |
Returns the number of nodes in this selection. Each node contains information about part of the selection.
|
virtual |
Returns a node given it's index. Performs bound checking and will return 0 if out-of-bounds.
|
virtual |
Adds a selection node.
|
virtual |
Removes a selection node.
|
virtual |
Removes a selection node.
|
virtual |
Removes a selection node.
|
virtual |
Copy selection nodes of the input.
Reimplemented from vtkDataObject.
|
virtual |
Copy selection nodes of the input. This is a shallow copy: selection lists and pointers in the properties are passed by reference.
Reimplemented from vtkDataObject.
|
virtual |
Union this selection with the specified selection. Attempts to reuse selection nodes in this selection if properties match exactly. Otherwise, creates new selection nodes.
|
virtual |
Union this selection with the specified selection node. Attempts to reuse a selection node in this selection if properties match exactly. Otherwise, creates a new selection node.
|
virtual |
Remove the nodes from the specified selection from this selection. Assumes that selection node internal arrays are vtkIdTypeArrays.
|
virtual |
Remove the nodes from the specified selection from this selection. Assumes that selection node internal arrays are vtkIdTypeArrays.
|
virtual |
Return the MTime taking into account changes to the properties
Reimplemented from vtkDataObject.
|
virtual |
Dumps the contents of the selection, giving basic information only.
|
virtual |
Dumps the contents of the selection, giving basic information only.
|
static |
Retrieve a vtkSelection stored inside an invormation object.
|
static |
Retrieve a vtkSelection stored inside an invormation object.