VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dynamicTerrainLocalNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
12 
13 namespace makVrf
14 {
15  class DtDynamicTerrainStateComponent;
16 
22 
24  {
25  private:
28 
31 
34  orig);
35 
36  public:
37 
42  DtDynamicTerrainLocalNetInterface(DtStateData * simObject, DtVrlinkNetworkInterface* objectManager, bool publishObject = true);
43 
45  virtual ~DtDynamicTerrainLocalNetInterface() override;
46 
49  virtual bool init(const DtStateComponent*) override;
50 
53  virtual DtString type() const override;
54 
55  static DtSimObjectNetInterface * creator(
56  DtStateData* vrfObject, DtVrlinkNetworkInterface* mgr, bool publishObject);
57 
58  virtual bool wantsToCreatePublisher() const override;
59 
60  virtual bool isLocal() const override {
61  return true;
62  }
63 
64  protected:
65  virtual DtObjectPublisher* createPublisher(const DtDynamicTerrainStateComponent*);
66  virtual void updatePublisher(DtObjectPublisher*, const DtDynamicTerrainStateComponent*);
67 
68  virtual void updatePublisher() override;
69 
70  protected:
73  };
74 }
Instances of DtDynamicTerrainPublisher publish DynamicTerrain objects to the network.
Definition: dynamicTerrainPublisherDIS.h:27
Class Description: DtDynamicTerrainLocalNetInterface.
Definition: dynamicTerrainLocalNetInterface.h:23
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:398
const DtDynamicTerrainStateComponent * myDynamicTerrainComponent
Definition: dynamicTerrainLocalNetInterface.h:71
DtDynamicTerrainPublisher * myDynamicPublisher
Definition: dynamicTerrainLocalNetInterface.h:72
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:50
Definition: localStateComponentNetInterface.h:22
Definition: stateComponent.h:52
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
virtual bool isLocal() const override
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: dynamicTerrainLocalNetInterface.h:60
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: dynamicTerrainStateComponent.h:45

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)