VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfCloudLayerManipulationHandler.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfGuiCore/vrfGuiCore.h>
14 
15 namespace makVrv
16 {
17  class DtExternalCloudLayerAgent;
18 }
19 
20 namespace makVrf
21 {
25  {
26 
27  public:
28 
31 
34  virtual void setCloudLayerCreationCommand(const DtChangeCloudLayerCommand&);
36  {
37  if (o)
38  {
39  std::map<DtVrfObjectFacadeInterface*, DtChangeCloudLayerCommand>::const_iterator iter = myCloudLayerCommands.find(o);
40 
41  if (iter != myCloudLayerCommands.end())
42  {
43  return iter->second;
44  }
45  }
46  else if (myCloudLayerCommands.size())
47  {
48  return myCloudLayerCommands.begin()->second;
49  }
50 
52  }
53 
54  virtual HandlerType type() const { return CloudLayer; };
55  virtual void slot_onLocationChanged( const DtVector& location, double altAboveGround );
56 
57  boost::signals2::signal<void (double)> signal_cornerRadiusChanged;
58 
59  protected:
61  virtual bool createVrfObject(DtVrfObjectFacadeInterface*);
62  virtual bool modifyVrfObject(DtVrfObjectFacadeInterface*);
63 
64  virtual DtVrfObjectFacadeInterface* createLocalRepresentation( DtVrlinkSimulatedBaseStateView* editStateView,
65  makVrv::DtUniqueID sceneObjectId, DtVrlinkSimulatedBaseStateView* principalStateView );
66 
67  virtual DtVrfObjectFacadeInterface* createLocalRepresentation(DtVrlinkSimulatedBaseStateView* editStateView);
68 
69  virtual bool automaticallyChangeCeiling() const;
70  virtual void stop();
71  virtual void slot_onAltitudeChanged(const DtVector& v, double altitude);
72  virtual void setLocation(int index, const DtVector& originalLoc, bool resetOrigin);
73  virtual DtVector setPointToAltitude(const DtVector&, double) const;
74 
75  virtual void updateCloudDimensions(DtVrfObjectFacadeInterface*);
76  virtual void updateCloudLayerPosition(DtVrfObjectFacadeInterface*);
77  virtual void updateCloudLayer(DtVrfObjectFacadeInterface*);
78  virtual void createCloudAgent(DtVrfObjectFacadeInterface*);
79  virtual void postCreateInitialize(DtVrfObjectFacadeInterface* iface);
80  virtual void removeObjectBecauseOfDeletion(DtVrfObjectFacadeInterface* iface);
81  virtual void initializeEventProcessor();
82 
83  protected:
84  std::map<DtVrfObjectFacadeInterface*, DtChangeCloudLayerCommand> myCloudLayerCommands;
85  std::map<DtVrfObjectFacadeInterface*, makVrv::DtExternalCloudLayerAgent*> myCloudLayers;
86  };
87 
90 }
std::map< DtVrfObjectFacadeInterface *, DtChangeCloudLayerCommand > myCloudLayerCommands
Definition: vrfCloudLayerManipulationHandler.h:84
DtVrfObjectManipulationHandlerCreator< DtVrfCloudLayerBoxManipulationHandler > DtVrfCloudLayerBoxManipulationHandlerCreator
Definition: vrfCloudLayerManipulationHandler.h:89
The handler for creating weather objects.
Definition: vrfCloudLayerManipulationHandler.h:24
DtChangeCloudLayerCommand cloudLayerCommand(DtVrfObjectFacadeInterface *o=0) const
Definition: vrfCloudLayerManipulationHandler.h:35
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Definition: vrfObjectFacadeInterface.h:53
virtual HandlerType type() const
The type of handler. Used to see if two handler are equivalent.
Definition: vrfCloudLayerManipulationHandler.h:54
boost::signals2::signal< void(double)> signal_cornerRadiusChanged
Definition: vrfCloudLayerManipulationHandler.h:57
HandlerType
The type of handler this is.
Definition: vrfObjectManipulationHandlerBaseClass.h:52
A DtSimCommand subclass which specifies a change to the cloud layer settings for the specified cloud ...
Definition: changeCloudLayerCommand.h:25
std::map< DtVrfObjectFacadeInterface *, makVrv::DtExternalCloudLayerAgent * > myCloudLayers
Definition: vrfCloudLayerManipulationHandler.h:85
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
Definition: vrfObjectManipulationHandlerBaseClass.h:834
The handler for creating and manipulating circles/ellipses.
Definition: vrfBoxManipulationHandler.h:30
Definition: vrfObjectManipulationHandlerBaseClass.h:66

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)