1#ifndef COIN_SOSELECTION_H
2#define COIN_SOSELECTION_H
36#include <Inventor/nodes/SoSubNode.h>
37#include <Inventor/nodes/SoSeparator.h>
38#include <Inventor/fields/SoSFEnum.h>
39#include <Inventor/lists/SoPathList.h>
46typedef void SoSelectionPathCB(
void * data,
SoPath * path);
56 static void initClass(
void);
67 void select(
const SoPath * path);
69 void deselect(
const SoPath * path);
70 void deselect(
const int which);
71 void deselect(
SoNode * node);
72 void toggle(
const SoPath * path);
73 void toggle(
SoNode * node);
74 SbBool isSelected(
const SoPath * path)
const;
75 SbBool isSelected(
SoNode * node)
const;
76 void deselectAll(
void);
77 int getNumSelected(
void)
const;
79 SoPath * getPath(
const int index)
const;
81 void addSelectionCallback(SoSelectionPathCB * f,
void *
userData =
NULL);
82 void removeSelectionCallback(SoSelectionPathCB * f,
void *
userData =
NULL);
83 void addDeselectionCallback(SoSelectionPathCB * f,
void *
userData =
NULL);
84 void removeDeselectionCallback(SoSelectionPathCB * f,
86 void addStartCallback(SoSelectionClassCB * f,
void *
userData =
NULL);
87 void removeStartCallback(SoSelectionClassCB * f,
void *
userData =
NULL);
88 void addFinishCallback(SoSelectionClassCB * f,
void *
userData =
NULL);
89 void removeFinishCallback(SoSelectionClassCB * f,
void *
userData =
NULL);
90 void setPickFilterCallback(SoSelectionPickCB * f,
void *
userData =
NULL,
92 void setPickMatching(
const SbBool pickMatching);
93 SbBool isPickMatching(
void)
const;
94 SbBool getPickMatching(
void)
const;
95 void addChangeCallback(SoSelectionClassCB * f,
void *
userData =
NULL);
96 void removeChangeCallback(SoSelectionClassCB * f,
void *
userData =
NULL);
102 void performSingleSelection(
SoPath *path);
103 void performToggleSelection(
SoPath *path);
105 void addPath(
SoPath *path);
106 void removePath(
const int which);
107 int findPath(
const SoPath *path)
const;
The SbList class is a template container class for lists.
Definition SbList.h:70
Type operator[](const int index) const
Definition SbList.h:195
The SoCallbackList is a container for callback function pointers.
Definition lists/SoCallbackList.h:44
The SoHandleEventAction class distributes user events to the scene.
Definition SoHandleEventAction.h:46
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:56
The SoPathList class is a container for pointers to SoPath objects.
Definition SoPathList.h:40
The SoPath class is a container class for traversal path descriptions.
Definition SoPath.h:52
The SoPickedPoint class is used for specifying picked points.
Definition SoPickedPoint.h:48
The SoSFEnum class is a container for an enum value.
Definition SoSFEnum.h:40
The SoSelection class manages a list of selected nodes.
Definition SoSelection.h:50
SbBool pickMatching
Definition SoSelection.h:127
void * pickCBData
Definition SoSelection.h:121
SoPath * mouseDownPickPath
Definition SoSelection.h:126
SoCallbackList * deselCBList
Definition SoSelection.h:116
SoPathList selectionList
Definition SoSelection.h:113
SoCallbackList * changeCBList
Definition SoSelection.h:124
SbBool callPickCBOnlyIfSelectable
Definition SoSelection.h:122
SoCallbackList * finishCBList
Definition SoSelection.h:118
SoCallbackList * selCBList
Definition SoSelection.h:115
SoSFEnum policy
Definition SoSelection.h:63
Policy
Definition SoSelection.h:59
@ SHIFT
Definition SoSelection.h:60
SoSelectionPickCB * pickCBFunc
Definition SoSelection.h:120
SoCallbackList * startCBList
Definition SoSelection.h:117
The SoSeparator class is a state-preserving group node.
Definition SoSeparator.h:44