VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSceneEventProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtElementEntry.h>
15 
16 namespace makVrv
17 {
18  class DtInputDriver;
19  class DtDe;
20  class DtMouseEvent;
21 
25  {
26  public:
27 
30  DtSceneEventProcessor(DtInputDriver& inputDriver, DtDe& de);
31 
33  virtual ~DtSceneEventProcessor();
34 
38  virtual bool processMouseEvent( const DtMouseEvent& ev, DtChannel& channel);
39 
43  virtual bool processKeyboardEvent( const DtKeyEvent& ev, DtChannel& channel);
44 
47  virtual const std::string& className();
48 
49  protected:
50 
52  bool pickIntoScene(const DtMouseEvent& mouseEvent, DtChannel& channel);
53 
55  void pickInitiate( const DtMouseEvent& event,double x, double y, double z );
56  void pickContinue( const DtMouseEvent& event );
57  void pickComplete();
58  bool pickInProgress() const;
59 
62  bool requestContextMenu(DtElementEntry::ObjectType type,
63  unsigned int x, unsigned int y, DtChannel& channel);
64 
65  protected:
66 
70  std::string myClassName;
71  };
72 
73 }
std::string myClassName
Definition: DtSceneEventProcessor.h:70
This class encapsulates a Key event.
Definition: DtKeyEvent.h:16
DtInputDriver & myInputDriver
Definition: DtSceneEventProcessor.h:68
This class encapsulates a mouse button event.
Definition: DtMouseEvent.h:19
unsigned int ObjectType
Definition: DtElementEntry.h:50
The abstract Channel Class.
Definition: DtChannel.h:30
Interface for an event processor for a channel.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
This class&#39;s main responsibility is to handle keyboard and mouse events from OSG (Qt events are route...
Definition: DtInputDriver.h:43
bool myPickInProgress
Definition: DtSceneEventProcessor.h:69
The Scene event processor handles user interaction with the scene.
Definition: DtSceneEventProcessor.h:24
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
The DtEventProcessorInterface defines the generic interface for classes which handle input events...
Definition: DtEventProcessorInterface.h:34
DtDe & myDe
Definition: DtSceneEventProcessor.h:67
Contains makVrv::DtElementEntry class.
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)