1#ifndef COIN_SOEXTSELECTION_H
2#define COIN_SOEXTSELECTION_H
27#include <Inventor/nodes/SoSubNode.h>
28#include <Inventor/nodes/SoSelection.h>
29#include <Inventor/fields/SoSFEnum.h>
33#include <Inventor/actions/SoCallbackAction.h>
49typedef SbBool SoExtSelectionTriangleCB(
void * userdata,
55typedef SbBool SoExtSelectionLineSegmentCB(
void * userdata,
60typedef SbBool SoExtSelectionPointCB(
void * userdata,
64typedef SoPath * SoLassoSelectionFilterCB(
void * userdata,
const SoPath * path);
73 static void initClass(
void);
81 FULL_BBOX, PART_BBOX,
FULL, PART
93 void useOverlay(SbBool overlay = TRUE);
94 SbBool isUsingOverlay(
void);
96 void setOverlayLassoColorIndex(
const int index);
97 int getOverlayLassoColorIndex(
void);
98 void setLassoColor(
const SbColor & color);
99 const SbColor & getLassoColor(
void);
100 void setLassoWidth(
const float width);
101 float getLassoWidth(
void);
102 void setOverlayLassoPattern(
const unsigned short pattern);
103 unsigned short getOverlayLassoPattern(
void);
104 void animateOverlayLasso(
const SbBool animate = TRUE);
105 SbBool isOverlayLassoAnimated(
void);
114 const SbVec2s * getLassoCoordsDC(
int & numCoords);
115 const SbVec3f * getLassoCoordsWC(
int & numCoords);
116 const SoPathList & getSelectionPathList()
const;
118 void setLassoFilterCallback(SoLassoSelectionFilterCB * f,
void * userdata = NULL,
119 const SbBool callonlyifselectable = TRUE);
121 void setTriangleFilterCallback(SoExtSelectionTriangleCB * func,
122 void * userdata = NULL);
123 void setLineSegmentFilterCallback(SoExtSelectionLineSegmentCB * func,
124 void * userdata = NULL);
125 void setPointFilterCallback(SoExtSelectionPointCB * func,
126 void * userdata = NULL);
127 SbBool wasShiftDown(
void)
const;
135 friend class SoExtSelectionP;
136 class SoExtSelectionP * pimpl;
The SbColor class contains the red, green and blue components which make up a color value.
Definition SbColor.h:30
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition SbVec2f.h:39
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:41
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:40
The SbViewportRegion class is a viewport within a full window.
Definition SbViewportRegion.h:31
The SoCallbackAction class invokes callbacks at specific nodes.
Definition SoCallbackAction.h:71
The SoExtSelection class can be used for extended selection functionality.
Definition SoExtSelection.h:67
SoSFEnum lassoPolicy
Definition SoExtSelection.h:90
LassoPolicy
Definition SoExtSelection.h:80
@ FULL
Definition SoExtSelection.h:81
SoSFEnum lassoMode
Definition SoExtSelection.h:91
LassoMode
Definition SoExtSelection.h:84
@ ALL_SHAPES
Definition SoExtSelection.h:85
SoSFEnum lassoType
Definition SoExtSelection.h:89
LassoType
Definition SoExtSelection.h:76
@ LASSO
Definition SoExtSelection.h:77
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition SoGLRenderAction.h:41
The SoHandleEventAction class distributes user events to the scene.
Definition SoHandleEventAction.h:37
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:47
The SoPathList class is a container for pointers to SoPath objects.
Definition SoPathList.h:31
The SoPath class is a container class for traversal path descriptions.
Definition SoPath.h:43
The SoPrimitiveVertex class represents a single vertex of a generated primitive.
Definition SoPrimitiveVertex.h:34
The SoSFEnum class is a container for an enum value.
Definition SoSFEnum.h:31
The SoSelection class manages a list of selected nodes.
Definition SoSelection.h:41
virtual void handleEvent(SoHandleEventAction *action)
Definition SoSelection.cpp:836
void select(const SoPath *path)
Definition SoSelection.cpp:354
The SoSeparator class is a state-preserving group node.
Definition SoSeparator.h:35
virtual void GLRenderBelowPath(SoGLRenderAction *action)
Definition SoSeparator.cpp:641
#define SO_NODE_HEADER(classname)
Definition macros.dox:43