VTK
|
A node in a selection tree. Used to store selection results. More...
#include <vtkSelectionNode.h>
Public Types | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkSelectionNode * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Initialize () |
virtual void | DeepCopy (vtkSelectionNode *src) |
virtual void | ShallowCopy (vtkSelectionNode *src) |
unsigned long | GetMTime () |
void | UnionSelectionList (vtkSelectionNode *other) |
void | SubtractSelectionList (vtkSelectionNode *other) |
bool | EqualProperties (vtkSelectionNode *other, bool fullcompare=true) |
virtual void | SetSelectionList (vtkAbstractArray *) |
virtual vtkAbstractArray * | GetSelectionList () |
virtual void | SetSelectionData (vtkDataSetAttributes *data) |
virtual vtkDataSetAttributes * | GetSelectionData () |
virtual vtkInformation * | GetProperties () |
virtual void | SetContentType (int type) |
virtual int | GetContentType () |
virtual void | SetFieldType (int type) |
virtual int | GetFieldType () |
virtual void | SetQueryString (const char *) |
virtual char * | GetQueryString () |
Public Member Functions inherited from vtkObject | |
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) |
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 | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkSelectionNode () | |
~vtkSelectionNode () | |
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 | |
vtkInformation * | Properties |
vtkDataSetAttributes * | SelectionData |
char * | QueryString |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
enum | SelectionContent { SELECTIONS, GLOBALIDS, PEDIGREEIDS, VALUES, INDICES, FRUSTUM, LOCATIONS, THRESHOLDS, BLOCKS, QUERY } |
static vtkInformationIntegerKey * | CONTENT_TYPE () |
enum | SelectionField { CELL, POINT, FIELD, VERTEX, EDGE, ROW } |
static vtkInformationIntegerKey * | FIELD_TYPE () |
A node in a selection tree. Used to store selection results.
vtkSelectionNode stores selection parameters for a selection (or part of a selection). It stores a list of properties (in a vtkInformation) and a list of selection values (in a vtkAbstractArray). The properties provide information about what the selection values mean. For example the CONTENT_TYPE property gives information about what is stored by the node. If the CONTENT_TYPE is GLOBALIDS, the SelectionList array should contain a list of cell or point ids, which identify the particular cells or points that have matching values in the GLOBALID vtkDataSetAttribute array. If the CONTENT_TYPE is PEDIGREEIDS, the SelectionList array should contain a list of cell or point ids, which identify the particular cells or points that have matching values in the PEDIGREEID vtkDataSetAttribute array. The FIELD_TYPE property designates whether the selection refers to cells or points.
Usually, each node under the root is a selection from one data object. SOURCE or SOURCE_ID properties point to this object. If the selection was performed on a renderer, PROP or PROP_ID point to the prop the selection was made on. Selection nodes corresponding to composite datasets may contain child nodes. Each child node of a composite dataset should have COMPOSITE_INDEX set. This is the flat-index to identify a node with in the composite dataset to which the selection applies.
Definition at line 68 of file vtkSelectionNode.h.
Definition at line 71 of file vtkSelectionNode.h.
Get the (primary) property that describes the content of a selection node's data. Other auxiliary description properties follow. GLOBALIDS means that the selection list contains values from the vtkDataSetAttribute array of the same name. PEDIGREEIDS means that the selection list contains values from the vtkDataSetAttribute array of the same name. VALUES means the the selection list contains values from an arbitrary attribute array (ignores any globalids attribute) INDICES means that the selection list contains indexes into the cell or point arrays. FRUSTUM means the set of points and cells inside a frustum LOCATIONS means the set of points and cells near a set of positions THRESHOLDS means the points and cells with values within a set of ranges GetContentType() returns -1 if the content type is not set.
Enumerator | |
---|---|
SELECTIONS | |
GLOBALIDS | |
PEDIGREEIDS | |
VALUES | |
INDICES | |
FRUSTUM | |
LOCATIONS | |
THRESHOLDS | |
BLOCKS | |
QUERY |
Definition at line 123 of file vtkSelectionNode.h.
Controls whether cell, point, or field data determine what is inside and out. The default is CELL. Vertex and edge types are also available for graph classes. GetFieldType() returns -1 if the field type is not set.
Enumerator | |
---|---|
CELL | |
POINT | |
FIELD | |
VERTEX | |
EDGE | |
ROW |
Definition at line 153 of file vtkSelectionNode.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 vtkObject.
|
static |
|
protectedvirtual |
Reimplemented from vtkObject.
vtkSelectionNode* vtkSelectionNode::NewInstance | ( | ) | const |
|
virtual |
|
static |
|
virtual |
Restore data object to initial state,
|
virtual |
Sets the selection list.
|
virtual |
Sets the selection list.
|
virtual |
Sets the selection table.
|
virtual |
Sets the selection table.
|
virtual |
Returns the property map.
|
virtual |
Copy properties, selection list and children of the input.
|
virtual |
Copy properties, selection list and children of the input. This is a shallow copy: selection lists and pointers in the properties are passed by reference.
|
virtual |
Return the MTime taking into account changes to the properties
Reimplemented from vtkObject.
|
static |
Get the (primary) property that describes the content of a selection node's data. Other auxiliary description properties follow. GLOBALIDS means that the selection list contains values from the vtkDataSetAttribute array of the same name. PEDIGREEIDS means that the selection list contains values from the vtkDataSetAttribute array of the same name. VALUES means the the selection list contains values from an arbitrary attribute array (ignores any globalids attribute) INDICES means that the selection list contains indexes into the cell or point arrays. FRUSTUM means the set of points and cells inside a frustum LOCATIONS means the set of points and cells near a set of positions THRESHOLDS means the points and cells with values within a set of ranges GetContentType() returns -1 if the content type is not set.
|
virtual |
Get or set the content type of the selection. This is the same as setting the CONTENT_TYPE() key on the property.
|
virtual |
Get or set the content type of the selection. This is the same as setting the CONTENT_TYPE() key on the property.
|
static |
Controls whether cell, point, or field data determine what is inside and out. The default is CELL. Vertex and edge types are also available for graph classes. GetFieldType() returns -1 if the field type is not set.
|
virtual |
Get or set the field type of the selection. This is the same as setting the FIELD_TYPE() key on the property.
|
virtual |
Get or set the field type of the selection. This is the same as setting the FIELD_TYPE() key on the property.
Methods to convert vtkSelectionNode::SelectionField to vtkDataSetAttribute::AttributeTypes and vice-versa.
Methods to convert vtkSelectionNode::SelectionField to vtkDataSetAttribute::AttributeTypes and vice-versa.
|
virtual |
Set/Get the query expression string.
|
virtual |
Set/Get the query expression string.
|
static |
For location selection of points, if distance is greater than this reject.
|
static |
This flag tells the extraction filter, when FIELD_TYPE==POINT, that it should also extract the cells that contain any of the extracted points.
|
static |
When ContentType==THRESHOLDS or ContentType==VALUES i.e. threshold and value based selections, it is possible pick the component number using this key. If none is specified, the 0th component is used. If any number less than 0 is specified, then the magnitude is used.
|
static |
This flag tells the extraction filter to exclude the selection.
|
static |
A helper for visible cell selector, this is the number of pixels covered by the actor whose cells are listed in the selection.
|
static |
Pointer to the data or algorithm the selection belongs to.
|
static |
ID of the data or algorithm the selection belongs to. What ID means is application specific.
|
static |
Pointer to the prop the selection belongs to.
|
static |
ID of the prop the selection belongs to. What ID means is application specific.
|
static |
Process id the selection is on.
|
static |
Used to identify a node in composite datasets.
|
static |
Used to identify a dataset in a hiererchical box dataset.
|
static |
Used to identify a dataset in a hiererchical box dataset.
|
static |
This key is used when making visible vertex selection. It means that the cell ID selection has data about which vertices for each cell are visible.
void vtkSelectionNode::UnionSelectionList | ( | vtkSelectionNode * | other | ) |
Merges the selection list between self and the other. Assumes that both has identical properties.
void vtkSelectionNode::SubtractSelectionList | ( | vtkSelectionNode * | other | ) |
Subtracts the items in the selection list, other, from this selection list. Assumes that both selections have identical properties (i.e., test with EqualProperties before using).
bool vtkSelectionNode::EqualProperties | ( | vtkSelectionNode * | other, |
bool | fullcompare = true |
||
) |
Compares Properties of self and other to ensure that they are exactly same.
|
protected |
Definition at line 256 of file vtkSelectionNode.h.
|
protected |
Definition at line 257 of file vtkSelectionNode.h.
|
protected |
Definition at line 258 of file vtkSelectionNode.h.