VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfObjectLocalObjectFacade.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
11 
15 #include <readerWriter/rwString.h>
16 #include <readerWriter/rwBoolean.h>
17 #include <readerWriter/rwInt.h>
18 #include <vrfutil/rwUUID.h>
21 
23 
29 {
30 public:
31 
33  DtRwVrfObjectName( const DtLoadScenarioData&, const DtString& name, DtReaderWriterRegistry* const parentRegistry );
34  DtRwVrfObjectName( const DtLoadScenarioData&, const DtSymbolString& name, DtReaderWriterRegistry* const parentRegistry );
35 
37 
38  virtual void setVrfObject( DtLocalObject* );
39 
40  virtual DtlObjPtr getData( DtlObjPtr args, const SearchPaths& searchPaths,
41  const DtVariableBindingsList& variableBindings );
42 
43  bool markingTextChanged() const
44  {
45  return myMarkingTextChanged;
46  }
47 
48 protected:
49 
53 };
54 
55 
59 
60 typedef DtVrfObjectLocalObjectFacade* (*DtVrfObjectLocalObjectFacadeCreatorFcn)(DtLocalObject*, const DtLoadScenarioData&);
61 
63 {
64 public:
67 
70 
72  virtual void save(std::string&);
73 
75  virtual bool restore(const std::string&);
76 
77  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
78  const DtVariableBindingsList& variableBindings);
79 
81  virtual std::string archiveState();
82 
84  virtual void setupSimulationObjectGeometryGroup(int flags, const DtVector& geocentricOffsetLocation,
85  double offsetRotation);
86 
89  virtual DtVrfSimulationObjectGroupGeometry* takeSimulationObjectGroupGeometry();
90 
94  static DtVrfObjectLocalObjectFacadeCreatorFcn setVrfObjectLocalObjectFacadeCreatorFcn(DtVrfObjectLocalObjectFacadeCreatorFcn);
95  static DtVrfObjectLocalObjectFacadeCreatorFcn vrfObjectLocalObjectFacadeCreatorFnc();
97 
98  virtual DtLocalObject* localObject() const;
99 
100  virtual bool hasSimulationObjectGroup() const;
101 
102 protected:
103  virtual void setupDecorator() {};
104 
106  virtual void prePutSelf();
107  virtual void postPutSelf();
108 
110  virtual void preGetSelf();
111  virtual void postGetSelf();
112 
113 private:
114 
117 
120 
121 protected:
126  DtRwObjectType myObjectType;
130 
132 };
Class Description: DtVrfSimulationObjectGroupGeometry is a specialized that class will calculate obje...
Definition: vrfSimulationObjectGroupGeometry.h:50
DtVrfSimulationObjectGroupGeometry * mySimulationGroupGeometry
Definition: vrfObjectLocalObjectFacade.h:128
virtual void prePutSelf()
Called before either version of put self (file or environment). Default is no-op. ...
DtRwVrfObjectName myObjectName
Definition: vrfObjectLocalObjectFacade.h:125
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
DtLoadScenarioData myUserData
Definition: vrfObjectLocalObjectFacade.h:51
This is a simple base class that will keep track of the local object reference and provide a base lev...
Definition: localObjectFacadeBase.h:15
DtRwString myObjectClassType
Definition: vrfObjectLocalObjectFacade.h:122
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
Definition: vrfObjectLocalObjectFacade.h:62
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
bool markingTextChanged() const
Definition: vrfObjectLocalObjectFacade.h:43
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
File: rwEntityIdentifier.h.
Definition: rwEntityIdentifier.h:23
bool myMarkingTextChanged
Definition: vrfObjectLocalObjectFacade.h:52
DtRwInt myRwPublishFlag
Definition: vrfObjectLocalObjectFacade.h:123
uuid class
Definition: rwUUID.h:26
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwUUID myVrfObjectUUID
Definition: vrfObjectLocalObjectFacade.h:127
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
DtLoadScenarioData myUserData
Definition: vrfObjectLocalObjectFacade.h:131
Description: Readable, Writable int.
Definition: rwInt.h:25
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
This is a two way structure. It will contain read data (import) and output dat objects created...
Definition: loadScenarioData.h:39
static DtVrfObjectLocalObjectFacadeCreatorFcn theVrfObjectLocalObjectFacadeCreatorFcn
Definition: vrfObjectLocalObjectFacade.h:129
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
virtual void preGetSelf()
Called before either version of get self (file or environment). Default is no-op. ...
DtVrfObjectLocalObjectFacade *(* DtVrfObjectLocalObjectFacadeCreatorFcn)(DtLocalObject *, const DtLoadScenarioData &)
Definition: vrfObjectLocalObjectFacade.h:60
virtual void setupDecorator()
Called after setSimObjectReference, will set up any logic needed. Default is a no-op.
Definition: vrfObjectLocalObjectFacade.h:103
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
Specialized version of DtRwString. If this item is being imported and the import flags specify to cle...
Definition: vrfObjectLocalObjectFacade.h:28
DtLocalObject * myParent
Definition: vrfObjectLocalObjectFacade.h:50
DtRwEntityIdentifier myObjectIdentifier
Definition: vrfObjectLocalObjectFacade.h:124
DtRwObjectType myObjectType
Definition: vrfObjectLocalObjectFacade.h:126
DtRwString & operator=(const DtRwString &orig)
Assign to DtString. Assigns value only.
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
virtual void postPutSelf()
Called after either version of put self (file or environment). Default is no-op.

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)