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
30class SoCamera;
31class SbVec2s;
32class SoEvent;
33class SoNode;
37
38class COIN_DLL_API SoEventManager {
39public:
40 SoEventManager(void);
41 virtual ~SoEventManager();
42
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
73protected:
74 virtual SbBool actuallyProcessEvent(const SoEvent * const event);
75
76private:
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 SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:41
The SbViewportRegion class is a viewport within a full window.
Definition SbViewportRegion.h:31
The SoCamera class is the abstract base class for camera definition nodes.
Definition SoCamera.h:54
The SoEventManager class provides event handling for a Coin3D viewer.
Definition SoEventManager.h:38
NavigationState
Definition SoEventManager.h:43
@ JUST_NAVIGATION
Definition SoEventManager.h:45
@ NO_NAVIGATION
Definition SoEventManager.h:44
The SoEvent class is the base class for all Coin events.
Definition SoEvent.h:34
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
Integration level for using Coin events with SCXML-based state machines.
Definition SoScXMLStateMachine.h:34

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

Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.