VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTritonEventProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
8 
9 #pragma once
10 
14 #include <matrix/vlVector.h>
15 
16 namespace makVrv
17 {
18  class DtDe;
19  class DtIntersectorsContainer;
20 
21  // just for demos
23  {
24  public:
27 
29  virtual ~DtTritonEventProcessor();
30 
31  virtual bool processKeyboardEvent( const DtKeyEvent&, DtChannel& );
32 
33  virtual const std::string& className();
34 
38  virtual bool processMouseEvent( const DtMouseEvent& mouseEvent, DtChannel& channel);
39 
40  // For key binding
41  virtual void impactModeOn();
42  virtual void impactModeOff();
43 
44  // Parameter changes
45  virtual void slot_impactMassChanged( double mass );
46  virtual void slot_impactSpeedChanged( double speed );
47  virtual void slot_impactDiameterChanged( double diameter );
48  virtual void slot_impactSprayScaleChanged( double sprayScale );
49 
50  protected:
52  std::string myName;
55  double mySpeed;
56  double myDiameter;
57  double myMass;
58  double mySprayScale;
59  DtVector myDirection;
60  Triton::Impact* myCurrentImpact;
61 
63 
64  DtIntersectorsContainer* myIntersectors = nullptr;
65  };
66 }
double myMass
Definition: DtTritonEventProcessor.h:57
DtDe & myDe
Definition: DtTritonEventProcessor.h:53
This class encapsulates a Key event.
Definition: DtKeyEvent.h:16
std::string myName
Definition: DtTritonEventProcessor.h:52
Utility class that contains intersectors for all model sets in the system (3d, xr, 2d) Use an object of this class when all models sets can be possibly needed. When you know which model set you need, you can just use the DtIntersectorCreator to create an intersector for a model set Models sets corresponding to 3d, xr and 2d are created by default (these correspond to values of 0, 1 and 5) Additional model sets can be registered with DtIntersectorsContainer::registerModelSet.
Definition: DtIntersectorsContainer.h:37
double mySprayScale
Definition: DtTritonEventProcessor.h:58
DtSignalConnectionManager mySignals
Definition: DtTritonEventProcessor.h:62
DtTritonManager & myTritonManager
Definition: DtTritonEventProcessor.h:54
Contains the declaration of the makVrv::DtTritonManager class.
This class encapsulates a mouse button event.
Definition: DtMouseEvent.h:19
The abstract Channel Class.
Definition: DtChannel.h:35
Interface for an event processor for a channel.
double myDiameter
Definition: DtTritonEventProcessor.h:56
Triton::Impact * myCurrentImpact
Definition: DtTritonEventProcessor.h:60
#define DT_DLL_VRVTRITON
Definition: vrvTriton.h:19
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Definition: DtTritonEventProcessor.h:22
Base class to provide boost signal/slot management.
Definition: DtTritonManager.h:49
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:76
DtVector myDirection
Definition: DtTritonEventProcessor.h:59
The DtEventProcessorInterface defines the generic interface for classes which handle input events...
Definition: DtEventProcessorInterface.h:34
double mySpeed
Definition: DtTritonEventProcessor.h:55
bool myImpactMode
Definition: DtTritonEventProcessor.h:51

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)