VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGlStudioEventProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
15 
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtOsgGlStudioCockpit;
22 
26 
30 
33  template <>
34  inline const char* creatorTypeName<DtGlStudioEventProcessor>(void) { return "DtGlStudioEventProcessorCreator"; }
35 
39  {
40  public:
43 
45  virtual ~DtGlStudioEventProcessor();
46 
49  virtual bool processMouseEvent(const DtMouseEvent& ev, DtChannel& channel);
50 
53  virtual bool processKeyboardEvent(const DtKeyEvent& ev, DtChannel& channel);
54 
56  virtual bool processWidgetEvent(const DtUniqueID& id,
57  DtMouseEvent::EventType& eventType, const DtMouseState& mouseState,
58  DtChannel& channel) { return false; }
59 
61  virtual const std::string& className();
62 
63  protected:
66  };
67 
68 
69 }
Processor to handle events for the osgWidget overlay on a channel.
Definition: DtGlStudioEventProcessor.h:38
This class encapsulates a Key event.
Definition: DtKeyEvent.h:16
DtVirtualBaseClassCreator< DtGlStudioEventProcessor, DtOsgGlStudioCockpit * > DtGlStudioEventProcessorCreator
Creator class for DtObjectsListLogic.
Definition: DtGlStudioEventProcessor.h:25
EventType
Describe the types of mouse events supported.
Definition: DtMouseEvent.h:23
This class encapsulates a mouse button event.
Definition: DtMouseEvent.h:19
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
The abstract Channel Class.
Definition: DtChannel.h:35
const char * creatorTypeName< DtGlStudioEventProcessor >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtGlStudioEventProcessor.h:34
Interface for an event processor for a channel.
DtOsgGlStudioCockpit is the implementation of the distributed object of the same name (and under our ...
Definition: DtOsgGlStudioCockpit.h:48
virtual bool processWidgetEvent(const DtUniqueID &id, DtMouseEvent::EventType &eventType, const DtMouseState &mouseState, DtChannel &channel)
Ignore.
Definition: DtGlStudioEventProcessor.h:56
This class encapsulates the state associated with a mouse button event.
Definition: DtMouseState.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
#define DT_DLL_VRVGLSTUDIOSHARED
Definition: DtGlStudioShared.h:22
DtOsgGlStudioCockpit * myCockpit
Definition: DtGlStudioEventProcessor.h:65
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:72
DtDe & myDe
Definition: DtGlStudioEventProcessor.h:64
The DtEventProcessorInterface defines the generic interface for classes which handle input events...
Definition: DtEventProcessorInterface.h:34

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)