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

SoEventManager.h
1 #ifndef COIN_SOEVENTMANAGER_H
2 #define COIN_SOEVENTMANAGER_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) by Kongsberg Oil & Gas Technologies.
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 Kongsberg Oil & Gas Technologies
18  * about acquiring a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/SbBasic.h>
28 #include <Inventor/tools/SbPimplPtr.h>
29 
30 class SoCamera;
31 class SbVec2s;
32 class SoEvent;
33 class SoNode;
34 class SbViewportRegion;
37 
38 class COIN_DLL_API SoEventManager {
39 public:
40  SoEventManager(void);
41  virtual ~SoEventManager();
42 
46  MIXED_NAVIGATION
47  };
48 
49  virtual void setSceneGraph(SoNode * const sceneroot);
50  virtual SoNode * getSceneGraph(void) const;
51 
52  virtual void setCamera(SoCamera * camera);
53  virtual SoCamera * getCamera(void) const;
54 
55  virtual SbBool processEvent(const SoEvent * const event);
56 
57  virtual void setNavigationState(NavigationState state);
58  virtual NavigationState getNavigationState(void) const;
59 
60  int getNumSoScXMLStateMachines(void) const;
61  SoScXMLStateMachine * getSoScXMLStateMachine(int idx) const;
62  void addSoScXMLStateMachine(SoScXMLStateMachine * sm);
63  void removeSoScXMLStateMachine(SoScXMLStateMachine * sm);
64 
65  virtual void setSize(const SbVec2s & newsize);
66  virtual void setOrigin(const SbVec2s & newOrigin);
67  virtual void setViewportRegion(const SbViewportRegion & newregion);
68  const SbViewportRegion & getViewportRegion(void) const;
69 
70  virtual void setHandleEventAction(SoHandleEventAction * hea);
71  virtual SoHandleEventAction * getHandleEventAction(void) const;
72 
73 protected:
74  virtual SbBool actuallyProcessEvent(const SoEvent * const event);
75 
76 private:
77  class PImpl;
78  SbPimplPtr<PImpl> pimpl;
79 
80  SoEventManager(const SoEventManager & rhs); // N/A
81  SoEventManager & operator = (const SoEventManager & rhs); // N/A
82 
83 }; // SoEventManager
84 
85 #endif // !COIN_SOEVENTMANAGER_H
The SoCamera class is the abstract base class for camera definition nodes.To be able to view a scene...
Definition: SoCamera.h:54
Definition: SoEventManager.h:45
Integration level for using Coin events with SCXML-based state machines.
Definition: SoScXMLStateMachine.h:34
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:47
Definition: SoEventManager.h:44
The SoEventManager class provides event handling for a Coin3D viewer.
Definition: SoEventManager.h:38
NavigationState
Definition: SoEventManager.h:43
The SoHandleEventAction class distributes user events to the scene.This is the action used by the GUI...
Definition: SoHandleEventAction.h:37
The SoEvent class is the base class for all Coin events.Coin contains its own set of event classes...
Definition: SoEvent.h:34
The SbViewportRegion class is a viewport within a full window.The SbViewportRegion class contains inf...
Definition: SbViewportRegion.h:31
The SbVec2s class is a 2 dimensional vector with short integer coordinates.This vector class is used ...
Definition: SbVec2s.h:41

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Wed Feb 7 2018 for Coin by Doxygen 1.8.14.