VR-Forces 4.7 Class Documentation
 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&);
35  DtChangeCloudLayerCommand cloudLayerCommand(DtVrfObjectFacadeInterface* o = 0) const
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::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 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)