VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
myActuator.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 
9 
11 {
12 public:
13 
14  //constructor
16  DtSimulationServices* simServices, DtComponentDescriptor* compDescriptor,
17  DtReaderWriterRegistry* parentRegistry = 0);
18 
19  //destructor
20  virtual ~MyActuatorComponent();
21 
22  //Perform any initialization required by the actuator
23  virtual bool init();
24 
25  //Returns a string from compTypes.h, identifying the type of component
26  virtual const char* type() const;
27 
28  //Calculate new kinematic state, and copy it to state repository
29  virtual void tick();
30 
31 public:
32 
33  //Creator function to be registered with the DtSimComponentFactory --
34  //see main.cxx
35  static DtSimComponent* creator(const DtString& name, DtLocalObject* object,
36  DtSimulationServices* simServices, DtComponentDescriptor* compDescriptor,
37  DtReaderWriterRegistry* parentRegistry);
38 
39 };
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
static DtSimComponent * creator(const DtString &name, DtLocalObject *object, DtSimulationServices *simServices, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
Definition: readerWriterRegistry.h:39
virtual void tick()
Calculate new kinematic state.
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
virtual bool init()
Calls createPSR() to create our process state repository.
virtual ~MyActuatorComponent()
Definition: myActuator.h:10
DtAutomotiveActuatorComponent provides a kinematics-based model of an automotive system.
Definition: automotiveActuatorComponent.h:45
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
MyActuatorComponent(const DtString &name, DtLocalObject *object, DtSimulationServices *simServices, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry=0)
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)