VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
culturalFeatureStateRepository.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 
13 
14 #include <vlutil/vlMachineTypes.h>
16 
24 {
25 private:
28 
31 
35 
36 public:
37 
39  DtCulturalFeatureStateRepository (DtLocalObject* vrfObject, const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
44 
45  virtual bool init() override;
46 
48  virtual DtString type() const override;
49 
51  virtual const int vrfMovingObjectStateRepositorySubType() const override;
52 
54  virtual const int culturalFeatureStateRepositorySubType() const;
55 
56  virtual void initializeFromParameters() override;
57 
58  static DtVrfObjectStateRepository* creator (const DtString& name, DtLocalObject* localObject,
59  DtReaderWriterRegistry* parentRegistry);
60 
63  virtual bool gravityAligned() const;
64  virtual void setGravityAligned(bool);
65 
73  virtual void clampToGround(const DtVector& location, const DtReal heading,
74  bool* dataAvailable = 0, bool requireAllData = false) override;
75 
76  virtual bool attachToParent(DtSimObjectReference parentSR) override;
77  virtual void tick() override;
78 
79 protected:
81 };
Contains the DtVrfMovingObjectStateRepository class declaration.
virtual bool init() override
Our &#39;virtual&#39; constructor. Calls all the create&lt;&gt;() methods.
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
static DtVrfObjectStateRepository * creator(const DtString &name, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
DtVrfMovingObjectStateRepository & operator=(const DtVrfMovingObjectStateRepository &orig)
Assignment Operator.
Definition: readerWriterRegistry.h:39
virtual const int vrfMovingObjectStateRepositorySubType() const
Returns DtVrfMovingObjectStateRepositorySubTypeBase.
Description: This repository is an internal repository accessible only by local objects. It holds all information that is common to all the forms of all entity/aggregate/control objects within VR-Forces.
Definition: vrfObjectStateRepository.h:92
Description: This repository holds all information that is common to all the forms of cultural featur...
Definition: culturalFeatureStateRepository.h:22
virtual bool attachToParent(const DtUUID &parent) override
Looks up the parent state repository using the given echelon ID and puts it in a call to attachToPare...
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual void clampToGround(const DtVector &location, const DtReal heading, bool *dataAvailable=0, bool requireAllData=false)
Place entity on ground at location and heading. Calls clampToGround with gravity of false...
virtual void tick() override
Tick function.
DtRwBoolean myGravityAligned
Definition: culturalFeatureStateRepository.h:80
virtual void initializeFromParameters() override
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual DtString type() const override
returns DtSimObjectStateRepositoryType
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

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)