VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
addActuator
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
12
#include "
vrfmodel/autoAct.h
"
13
14
class
MyActuatorComponent
:
public
DtAutomotiveActuatorComponent
15
{
16
public
:
17
18
//constructor
19
MyActuatorComponent
(
const
DtString
&
name
,
DtVrfObject
*
object
,
20
DtSimManager
*
simManager
,
DtComponentDescriptor
* compDescriptor,
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
DtString
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
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)