VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
actuatorComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: actCmpnt.h,v $ $Revision: 1.25 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef actuatorComponent_H_
16 #define actuatorComponent_H_
17 
18 #include <vlutil/vlString.h>
21 
22 class DtSimRadio;
23 
48 {
49 
50 protected:
56  DtActuatorComponent(const DtString& name,
57  DtLocalObject* owner,
58  DtSimulationServices* simServices,
59  DtComponentDescriptor* desc = 0,
60  DtReaderWriterRegistry* parentRegistry = 0);
61 
62 private:
65 
68 
69 public:
71  virtual ~DtActuatorComponent();
72 
74  virtual bool init();
75 
77  virtual DtSimRadio* radio();
78 
81  virtual bool tickWhileDestroyed() const;
82 
83 protected:
84 
85  virtual void setRadio(DtSimRadio * radio);
86 
90 
91 protected:
92 
96 };
97 
98 #endif
99 
Definition: simRadio.h:30
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
End User Description: DtActuator is the base class for all actuator model components. Developer Description: The DtActuator base class caches a pointer to the entity&#39;s radio for convenience. Derived classes may have articulated parts that are configured from the DtActuatorComponentDescriptor&#39;s DtSimArtPartDescriptorList. For each articulated part in the list a DtArticulatedPartStateRepository will be created to store the data for the part such as it&#39;s location, rotation and so forth. These are created in the entity&#39;s DtVrfObjectStateRepository createParts() function. This call creates all the attached parts for all the actuators. These articulated state repositories are managed by the DtAttachmentManager. They are cached by their partType which is the DIS Enumeration describing the part from the disEnums.h file and was specified in the actuator&#39;s DtActuatorComponentDescriptor as descriped above. The partType is used as the category of the DtObjectType used to look up articulated parts in the DtAttachementManager. When an actuator needs access to a particular articulated part it looks it up by the part&#39;s object type.
Definition: actuatorComponent.h:47
virtual bool init()
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtSimRadio * myRadio
Actuators can send messages. Of course, if your actuator never will, you don&#39;t have to use this...
Definition: actuatorComponent.h:95
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Contains the DtSimComponent class declaration.
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)