VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfEditManagerEventProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrfEditManagerEventProcessor.h,v $ $Revision: 1.4 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
16 #include <vrfGuiCore/vrfGuiCore.h>
17 
19 #include <vrvCore/DtUniqueID.h>
20 #include <vrvCore/DtMouseEvent.h>
21 
23 
24 namespace makVrv
25 {
26  class DtDe;
27  class DtChannel;
28  class DtKeyEvent;
29 }
30 
31 namespace makVrf
32 {
37  {
38 
39  public:
42 
45 
46  void setAllowEditing(bool b)
47  {
48  myAllowEditing = b;
49  }
50 
51  bool allowEditing() const
52  {
53  return myAllowEditing;
54  }
55 
56  protected:
57 
58  virtual bool processMouseEvent(const makVrv::DtMouseEvent& ev,
59  makVrv::DtChannel& channel);
60 
62  virtual bool processKeyboardEvent(const makVrv::DtKeyEvent& ev,
63  makVrv::DtChannel& channel);
64 
66  virtual const std::string& className();
67 
68  protected:
71 
72  };
73 
76  {
77 
78  public:
82 
84  static void registerInstance( makVrv::DtDe& de,
86 
88  virtual DtVrfEditManagerEventProcessor* create( makVrv::DtDe& de );
89  };
90 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
This class encapsulates a Key event.
Definition: DtKeyEvent.h:16
Definition: vrfEditManagerEventProcessor.h:74
void setAllowEditing(bool b)
Definition: vrfEditManagerEventProcessor.h:46
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
bool myAllowEditing
Definition: vrfEditManagerEventProcessor.h:70
This class encapsulates a mouse button event.
Definition: DtMouseEvent.h:19
The abstract Channel Class.
Definition: DtChannel.h:35
Contains makVrv::DtVirtualBaseClass class.
Interface for an event processor for a channel.
This file contains the declaration for the class DtMouseEvent.
makVrv::DtDe & myDe
Definition: vrfEditManagerEventProcessor.h:69
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
bool allowEditing() const
Definition: vrfEditManagerEventProcessor.h:51
The DtEventProcessorInterface defines the generic interface for classes which handle input events...
Definition: DtEventProcessorInterface.h:34
Listen for double-click events on behalf of the DtVrfEditManager and initiate the edit process...
Definition: vrfEditManagerEventProcessor.h:35

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)