VR-Forces 5.0.1 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();
46 
48  virtual DtString type() const;
49 
51  virtual const int vrfMovingObjectStateRepositorySubType() const;
52 
54  virtual const int culturalFeatureStateRepositorySubType() const;
55 
56  virtual void initializeFromParameters();
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);
75 
76  virtual bool attachToParent(DtSimObjectReference parentSR);
77  virtual void tick();
78 
79 protected:
81 };
Contains the DtVrfMovingObjectStateRepository class declaration.
virtual bool init()
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
virtual void initializeFromParameters()
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:90
virtual DtString type() const
returns DtSimObjectStateRepositoryType
Description: This repository holds all information that is common to all the forms of cultural featur...
Definition: culturalFeatureStateRepository.h:22
virtual void tick()
Tick function.
#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 bool attachToParent(const DtUUID &parent)
Looks up the parent state repository using the given echelon ID and puts it in a call to attachToPare...
DtRwBoolean myGravityAligned
Definition: culturalFeatureStateRepository.h:80
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)