VR-Forces 4.1.1 Class Documentation
DtSceneEventProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtElementEntry.h>
18 
19 namespace makVrv
20 {
21  class DtInputDriver;
22  class DtDe;
23  class DtMouseEvent;
24 
28  {
29  public:
30 
33  DtSceneEventProcessor(DtInputDriver& inputDriver, DtDe& de);
34 
36  virtual ~DtSceneEventProcessor();
37 
41  virtual bool processMouseEvent( const DtMouseEvent& ev, DtChannel& channel);
42 
46  virtual bool processKeyboardEvent( const DtKeyEvent& ev, DtChannel& channel);
47 
50  virtual const std::string& className();
51 
52  protected:
53 
55  bool pickIntoScene(const DtMouseEvent& mouseEvent, DtChannel& channel);
56 
58  void pickInitiate( const DtMouseEvent& event,double x, double y, double z );
59  void pickContinue( const DtMouseEvent& event );
60  void pickComplete();
61  bool pickInProgress() const;
62 
65  bool requestContextMenu(DtElementEntry::ObjectType type,
66  unsigned int x, unsigned int y, DtChannel& channel);
67 
68  protected:
69 
73  std::string myClassName;
74  };
75 
76 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)