VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtNavigationLightManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvCore/DtDe.h>
14 #include <vrvCore/DtRenderer.h>
15 #include <vrvCore/DtTickable.h>
16 
17 #include <string>
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtAgentManagerInterface;
23  class DtLightMarkerStringParser;
24  class DtBuoyOrBeaconFacade;
25  class DtBuoyBeaconLayer;
26  class DtNavigationLightController;
27  class DtNavigationLightManager;
28 
30  {
31  protected:
32 
34 
36  DtNavigationLightManager& lightManager );
37 
38  virtual ~DtNavigationLightUpdater();
39 
40  virtual bool needsUpdate( DtTime tNow );
41 
45  virtual void update( DtTime tNow );
46 
47  protected:
49  };
50 
57  {
58  public:
60  DtNavigationLightManager(const std::string& name, DtDe& de,
61  DtAgentManagerInterface& sceneInterface,
62  DtBuoyBeaconLayer& buoyBeaconLayer,
64  const std::string& featureLayerList,
65  const std::string& featureAttrMapFilename,
66  DtNavigationFeatureBuilder* featureBuilder,
67  int presenceSwitchNum, int typeSwitchNum );
68 
70  virtual ~DtNavigationLightManager();
71 
73  virtual bool needsUpdate( DtTime tNow );
80 
84  virtual void update( DtTime tNow );
86 
87 
89  void setDaylightLightLevel( float daylightLevel );
94  float daylightLightLevel() const;
96 
98  void setFogVisibilityLevel( float fogVisibilityLevel );
102  float fogVisibilityLevel() const;
104 
105  protected:
108 
111 
113  DtNavigationLightManager& operator=( const DtNavigationLightManager& rhs );
114 
116  virtual void attachToBuoyOrBeacon( DtNavigationFeature& controller,
117  DtBuoyOrBeaconFacade& buoy );
118 
120  virtual void detachFromBuoyOrBeacon( DtNavigationFeature& controller,
121  DtBuoyOrBeaconFacade& buoy );
122 
126  virtual void adjustHeightForLight( DtNavigationFeature& controller,
127  DtBuoyOrBeaconFacade& facade );
128 
129  protected:
133  };
134 }
float myFogVisibilityLevel
Definition: DtNavigationLightManager.h:131
Contains makVrv::DtRenderer class.
The DtBuoyBeaconLayer is the base implementation of a layer of data which contains buoys and beacons ...
Definition: DtBuoyBeaconLayer.h:36
Contains makVrv::DtDe class.
DtNavigationLightUpdater myUpdater
Definition: DtNavigationLightManager.h:132
An abstract base class for objects that require updates. This object automatically adds itself to a D...
Definition: DtTickable.h:26
DtNavigationFeatureBuilder implements a DtStreamedFeatureCreator for navigation features (ex...
Definition: DtNavigationFeatureBuilder.h:34
The DtNavigationFeatureManager matches streamed features to other streamed features (buoys and beacon...
Definition: DtNavigationFeatureManager.h:38
AttachableTypes
These are used to tell managers of attachable items what type of item they manage; they are also used...
Definition: DtBuoyBeaconLayer.h:46
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The DtNavigationFeature can be attached to any articulated model through an articulated model agent...
Definition: DtNavigationFeature.h:29
Definition: DtNavigationLightManager.h:29
The DtNavigationLightManager matches streamed light controllers to other streamed features (buoys and...
Definition: DtNavigationLightManager.h:56
float myDaylightLightLevel
Definition: DtNavigationLightManager.h:130
Contains the declaration for makVrv::DtTickable.
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:33
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
DtNavigationLightManager & myLightManager
Definition: DtNavigationLightManager.h:48
The DtEntityFacade is a facade around agents that make up an entity. This entity facade represents a ...
Definition: DtBuoyOrBeaconFacade.h:24
Contains makVrv::DtNavigationFeatureManager class.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)