1#ifndef COIN_SOEXTSELECTION_H
2#define COIN_SOEXTSELECTION_H
36#include <Inventor/nodes/SoSubNode.h>
37#include <Inventor/nodes/SoSelection.h>
38#include <Inventor/fields/SoSFEnum.h>
42#include <Inventor/actions/SoCallbackAction.h>
58typedef SbBool SoExtSelectionTriangleCB(
void * userdata,
64typedef SbBool SoExtSelectionLineSegmentCB(
void * userdata,
69typedef SbBool SoExtSelectionPointCB(
void * userdata,
73typedef SoPath * SoLassoSelectionFilterCB(
void * userdata,
const SoPath * path);
82 static void initClass(
void);
90 FULL_BBOX, PART_BBOX,
FULL, PART
102 void useOverlay(SbBool overlay = TRUE);
103 SbBool isUsingOverlay(
void);
105 void setOverlayLassoColorIndex(
const int index);
106 int getOverlayLassoColorIndex(
void);
107 void setLassoColor(
const SbColor & color);
108 const SbColor & getLassoColor(
void);
109 void setLassoWidth(
const float width);
110 float getLassoWidth(
void);
111 void setOverlayLassoPattern(
const unsigned short pattern);
112 unsigned short getOverlayLassoPattern(
void);
113 void animateOverlayLasso(
const SbBool
animate = TRUE);
114 SbBool isOverlayLassoAnimated(
void);
123 const SbVec2s * getLassoCoordsDC(
int & numCoords);
124 const SbVec3f * getLassoCoordsWC(
int & numCoords);
125 const SoPathList & getSelectionPathList()
const;
127 void setLassoFilterCallback(SoLassoSelectionFilterCB * f,
void * userdata =
NULL,
130 void setTriangleFilterCallback(SoExtSelectionTriangleCB * func,
131 void * userdata =
NULL);
132 void setLineSegmentFilterCallback(SoExtSelectionLineSegmentCB * func,
133 void * userdata =
NULL);
134 void setPointFilterCallback(SoExtSelectionPointCB * func,
135 void * userdata =
NULL);
136 SbBool wasShiftDown(
void)
const;
144 friend class SoExtSelectionP;
145 class SoExtSelectionP * pimpl;
The SbColor class contains the red, green and blue components which make up a color value.
Definition SbColor.h:39
The SbList class is a template container class for lists.
Definition SbList.h:70
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition SbVec2f.h:49
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:51
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:51
The SbViewportRegion class is a viewport within a full window.
Definition SbViewportRegion.h:40
The SoCallbackAction class invokes callbacks at specific nodes.
Definition SoCallbackAction.h:80
The SoExtSelection class can be used for extended selection functionality.
Definition SoExtSelection.h:76
SoSFEnum lassoPolicy
Definition SoExtSelection.h:99
LassoPolicy
Definition SoExtSelection.h:89
@ FULL
Definition SoExtSelection.h:90
SoSFEnum lassoMode
Definition SoExtSelection.h:100
LassoMode
Definition SoExtSelection.h:93
@ ALL_SHAPES
Definition SoExtSelection.h:94
SoSFEnum lassoType
Definition SoExtSelection.h:98
LassoType
Definition SoExtSelection.h:85
@ LASSO
Definition SoExtSelection.h:86
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition SoGLRenderAction.h:50
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 SoPrimitiveVertex class represents a single vertex of a generated primitive.
Definition SoPrimitiveVertex.h:43
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
The SoSeparator class is a state-preserving group node.
Definition SoSeparator.h:44