Coin Logo http://www.sim.no
http://www.coin3d.org

SoHandleEventAction.h
1 #ifndef COIN_SOHANDLEEVENTACTION_H
2 #define COIN_SOHANDLEEVENTACTION_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/actions/SoAction.h>
28 #include <Inventor/actions/SoSubAction.h>
29 
30 class SbViewportRegion;
31 class SoEvent;
32 class SoPickedPoint;
33 class SoPickedPointList;
34 
35 
36 class COIN_DLL_API SoHandleEventAction : public SoAction {
37  typedef SoAction inherited;
38 
39  SO_ACTION_HEADER(SoHandleEventAction);
40 
41 public:
42  SoHandleEventAction(const SbViewportRegion & viewportregion);
43  virtual ~SoHandleEventAction();
44  static void initClass(void);
45 
46  void setViewportRegion(const SbViewportRegion & newregion);
47  const SbViewportRegion & getViewportRegion(void) const;
48  void setEvent(const SoEvent * ev);
49  const SoEvent * getEvent(void) const;
50  void setHandled(void);
51  SbBool isHandled(void) const;
52  void setGrabber(SoNode * node);
53  void releaseGrabber(void);
54  SoNode * getGrabber(void) const;
55  void setPickRoot(SoNode * node);
56  SoNode * getPickRoot(void) const;
57  void setPickRadius(const float radiusinpixels);
58  const SoPickedPoint * getPickedPoint(void);
59  const SoPickedPointList & getPickedPointList(void);
60 
61 protected:
62  virtual void beginTraversal(SoNode * node);
63 
64 private:
65  class SoHandleEventActionP * pimpl;
66 };
67 
68 #ifndef COIN_INTERNAL
69 // For SGI / TGS Open Inventor compile-time compatibility.
70 #include <Inventor/actions/SoRayPickAction.h>
71 #endif // COIN_INTERNAL
72 
73 #endif // !COIN_SOHANDLEEVENTACTION_H
SoRayPickAction::isPickAll
SbBool isPickAll(void) const
Definition: SoRayPickAction.cpp:402
SoHandleEventAction::getGrabber
SoNode * getGrabber(void) const
Definition: SoHandleEventAction.cpp:273
SoHandleEventAction::getPickRoot
SoNode * getPickRoot(void) const
Definition: SoHandleEventAction.cpp:296
SoHandleEventAction::setPickRoot
void setPickRoot(SoNode *node)
Definition: SoHandleEventAction.cpp:283
SoAction::hasTerminated
SbBool hasTerminated(void) const
Definition: SoAction.cpp:1018
SoRayPickAction::getPickedPoint
SoPickedPoint * getPickedPoint(const int index=0) const
Definition: SoRayPickAction.cpp:451
SoAction::apply
virtual void apply(SoNode *root)
Definition: SoAction.cpp:476
SoHandleEventAction::setGrabber
void setGrabber(SoNode *node)
Definition: SoHandleEventAction.cpp:237
SoState::pop
void pop(void)
Definition: SoState.cpp:284
SoHandleEventAction::SoHandleEventAction
SoHandleEventAction(const SbViewportRegion &viewportregion)
Definition: SoHandleEventAction.cpp:108
SoNode::grabEventsSetup
virtual void grabEventsSetup(void)
Definition: SoNode.cpp:1275
SoState::push
void push(void)
Definition: SoState.cpp:265
SoAction::beginTraversal
virtual void beginTraversal(SoNode *node)
Definition: SoAction.cpp:1208
SoAction
The SoAction class is the base class for all traversal actions.
Definition: SoAction.h:67
SoHandleEventAction::setPickRadius
void setPickRadius(const float radiusinpixels)
Definition: SoHandleEventAction.cpp:305
SoNode::grabEventsCleanup
virtual void grabEventsCleanup(void)
Definition: SoNode.cpp:1284
SoHandleEventAction::setHandled
void setHandled(void)
Definition: SoHandleEventAction.cpp:211
SoBase::unref
void unref(void) const
Definition: SoBase.cpp:627
SoPath
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:43
SoHandleEventAction::isHandled
SbBool isHandled(void) const
Definition: SoHandleEventAction.cpp:223
SoPath::getLength
int getLength(void) const
Definition: SoPath.cpp:473
SoPickedPointList
The SoPickedPointList class is a container for pointers to SoPickedPoint objects.
Definition: SoPickedPointList.h:31
SoHandleEventAction::beginTraversal
virtual void beginTraversal(SoNode *node)
Definition: SoHandleEventAction.cpp:342
SoHandleEventAction::~SoHandleEventAction
virtual ~SoHandleEventAction()
Definition: SoHandleEventAction.cpp:125
SoRayPickAction::setPoint
void setPoint(const SbVec2s &viewportPoint)
Definition: SoRayPickAction.cpp:278
SoAction::getState
SoState * getState(void) const
Definition: SoAction.cpp:1028
SoBase::ref
void ref(void) const
Definition: SoBase.cpp:574
SoPath::copy
SoPath * copy(const int startfromnodeindex=0, int numnodes=0) const
Definition: SoPath.cpp:673
SbViewportRegion
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:31
SoHandleEventAction::getViewportRegion
const SbViewportRegion & getViewportRegion(void) const
Definition: SoHandleEventAction.cpp:178
SoPickedPoint
The SoPickedPoint class is used for specifying picked points.
Definition: SoPickedPoint.h:39
SoHandleEventAction::setViewportRegion
void setViewportRegion(const SbViewportRegion &newregion)
Definition: SoHandleEventAction.cpp:137
SoHandleEventAction::getPickedPointList
const SoPickedPointList & getPickedPointList(void)
Definition: SoHandleEventAction.cpp:329
SoAction::initClass
static void initClass(void)
Definition: SoAction.cpp:392
SoHandleEventAction::releaseGrabber
void releaseGrabber(void)
Definition: SoHandleEventAction.cpp:257
SoHandleEventAction::setEvent
void setEvent(const SoEvent *ev)
Definition: SoHandleEventAction.cpp:187
SoHandleEventAction::getEvent
const SoEvent * getEvent(void) const
Definition: SoHandleEventAction.cpp:196
SoPath::getNode
SoNode * getNode(const int index) const
Definition: SoPath.cpp:402
SoRayPickAction::getPickedPointList
const SoPickedPointList & getPickedPointList(void) const
Definition: SoRayPickAction.cpp:411
SoHandleEventAction::getPickedPoint
const SoPickedPoint * getPickedPoint(void)
Definition: SoHandleEventAction.cpp:315
SoNode
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
SoRayPickAction::setPickAll
void setPickAll(const SbBool flag)
Definition: SoRayPickAction.cpp:389
SoAction::traverse
void traverse(SoNode *const node)
Definition: SoAction.cpp:902
SoHandleEventAction
The SoHandleEventAction class distributes user events to the scene.
Definition: SoHandleEventAction.h:36
SoEvent
The SoEvent class is the base class for all Coin events.
Definition: SoEvent.h:34
SoRayPickAction
The SoRayPickAction class does ray intersection with scene graphs.
Definition: SoRayPickAction.h:40
SoPath::getHead
SoNode * getHead(void) const
Definition: SoPath.cpp:180
SoAction::setTerminated
void setTerminated(const SbBool flag)
Definition: SoAction.cpp:1233

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Mon Jul 27 2020 for Coin by Doxygen. 1.8.18