59#include <Inventor/STL/list>
447 {
return getPath(i); }
588 void *userData = NULL,
612 virtual void notify(SoNotList *list);
619 SbBool getPickMatching()
const;
622 static void initClass();
623 static void exitClass();
636 void constructorCommon();
#define TRUE
Possible value of SbBool.
SO_PIMPL_PUBLIC_DECLARATION(SoFileDataAdapter)
void SoSelectionClassCB(void *userData, SoSelection *sel)
SoPath * SoSelectionPickCB(void *userData, const SoPickedPoint *pick)
void SoSelectionPathCB(void *userData, SoPath *path)
#define SO_NODE_HEADER(className)
Manages a list of callbacks and associated data.
Base class for all events.
Allows nodes in a graph to receive input events.
Abstract base class for all database nodes.
Path that points to a list of hierarchical nodes.
Maintains a list of pointers to paths.
Represents point on surface of picked object.
Maintains a list of pointers to SoPickedPoint instances.
Field containing an enumerated value.
Searches for nodes in a scene graph.
Manages a list of selected objects.
void removeSelectionCallback(SoSelectionPathCB *f, void *userData=NULL)
Removes selection callback.
void select(SoNode *node)
Selects the passed node by creating a path to it, and adding the path to the selection list by callin...
SbBool isSelected(const SoPath *path) const
Returns TRUE if the passed path is selected, that is, if it is in the selection list.
SbBool isSelected(const SoNode *node) const
Returns TRUE if the passed node is selected by creating a path to it, then calling isSelected().
void deselectAll()
Deselects all paths in the selection list, that is, clear the list.
const SoPathList * getList() const
Returns the list of selected paths.
void deselect(const SoPath *path)
Deselects the passed path by removing it from the selection list.
float getPickRadius() const
Returns the radius (in pixels) around the viewport-space point through which the ray passes when doin...
void toggle(const SoPath *path)
Toggles the selection status of the passed path - if the path is in the selection list,...
void setPickRadius(float radiusInPixels)
Sets the radius (in pixels) around the viewport-space point through which the ray passes when doing r...
void deselect(SoNode *node)
Deselects the passed node by creating a path to it, and removing the node from the selection list by ...
SoSelection()
Creates a selection node with the default settings.
void toggle(SoNode *node)
Toggles the selection status of the passed node by creating a path to it, then calling toggle(path) ...
void removeStartCallback(SoSelectionClassCB *f, void *userData=NULL)
Removes start callback.
SoSelection(int nChildren)
Constructor that specifies the approximate number of children.
void addDeselectionCallback(SoSelectionPathCB *f, void *userData=NULL)
Adds deselection callback.
SoSFEnum policy
Selection policy that is followed in response to user interaction.
void setPickMatching(SbBool pickTwice)
SoSelection will pick once on mouse down and once on mouse up, and make sure the picks match before c...
void addFinishCallback(SoSelectionClassCB *f, void *userData=NULL)
Adds finish callback.
SbBool isSelected(SoNode *node) const
Returns TRUE if the passed node is selected by creating a path to it, then calling isSelected().
void addSelectionCallback(SoSelectionPathCB *f, void *userData=NULL)
Adds selection callback.
SoPath * getPath(int index) const
Returns the ith path in the selection list.
void removeDeselectionCallback(SoSelectionPathCB *f, void *userData=NULL)
Removes deselection callback.
SbBool isPickMatching() const
Returns pick matching flag.
@ SHIFT
When shift key is down, selection policy is TOGGLE.
@ SINGLE
Picking an object object clears current selection, then selects object.
@ TOGGLE
Picking an object toggles its selection status.
void deselect(int which)
Deselects a path by removing it from the selection list.
void removeFinishCallback(SoSelectionClassCB *f, void *userData=NULL)
Removes finish callback.
void setPickFilterCallback(SoSelectionPickCB *f, void *userData=NULL, SbBool callOnlyIfSelectable=TRUE)
The pick filter callback is invoked when a pick has occurred and the selection node is about to chang...
void select(const SoPath *path)
Selects the passed path by adding it to the selection list.
int getNumSelected() const
Returns the number of paths in the selection list.
void addStartCallback(SoSelectionClassCB *f, void *userData=NULL)
Adds start callback.
Group node that saves and restores traversal state.
Maintains a list of SoTypes.
void notify(SoNotList *list)