VR-Forces 4.10 Class Documentation
 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) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: myActuator.h,v $ $Revision: 1.11 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef MyActuatorComponent_H_
10 #define MyActuatorComponent_H_
11 
13 
15 {
16 public:
17 
18  //constructor
21  DtReaderWriterRegistry* parentRegistry = 0);
22 
23  //destructor
24  virtual ~MyActuatorComponent();
25 
26  //Perform any initialization required by the actuator
27  virtual bool init();
28 
29  //Returns a string from compTypes.h, identifying the type of component
30  virtual const char* type() const;
31 
32  //Calculate new kinematic state, and copy it to state repository
33  virtual void tick();
34 
35 public:
36 
37  //Creator function to be registered with the DtSimComponentFactory --
38  //see main.cxx
39  static DtSimComponent* creator(const DtString& name, DtVrfObject* object,
40  DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
41  DtReaderWriterRegistry* parentRegistry);
42 
43 };
44 
45 #endif
46 
47 
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtSimManager * simManager()
Gets the sim manager.
Definition: simComponent.h:410
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
MyActuatorComponent(const DtString &name, DtVrfObject *object, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry=0)
virtual void tick()
Calculate new kinematic state.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual bool init()
Calls createPSR() to create our process state repository.
static DtSimComponent * creator(const DtString &name, DtVrfObject *object, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
virtual ~MyActuatorComponent()
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
Definition: myActuator.h:14
DtAutomotiveActuatorComponent provides a kinematics-based model of an automotive system.
Definition: automotiveActuatorComponent.h:44
virtual const char * type() const
Returns a string identifies the class type of component.
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)