VR-Forces 4.0.4 Class Documentation
examples/addActuator/myActuator.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: myActuator.h,v $ $Revision: 1.11 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef MyActuatorComponent_H_
00010 #define MyActuatorComponent_H_
00011 
00012 #include "vrfmodel/autoAct.h"
00013 
00014 class MyActuatorComponent : public DtAutomotiveActuatorComponent
00015 {
00016 public:
00017 
00018    //constructor
00019    MyActuatorComponent(const DtString& name, DtVrfObject* object, 
00020       DtSimManager* simManager, DtComponentDescriptor* compDescriptor, 
00021       DtReaderWriterRegistry* parentRegistry = 0);
00022 
00023    //destructor
00024    virtual ~MyActuatorComponent();
00025 
00026    //Perform any initialization required by the actuator
00027    virtual bool init();
00028 
00029    //Returns a string from compTypes.h, identifying the type of component
00030    virtual DtString type() const;
00031 
00032    //Calculate new kinematic state, and copy it to state repository
00033    virtual void tick();
00034 
00035 public:
00036 
00037    //Creator function to be registered with the DtSimComponentFactory --
00038    //see main.cxx
00039    static DtSimComponent* creator(const DtString& name, DtVrfObject* object,
00040       DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
00041       DtReaderWriterRegistry* parentRegistry);
00042 
00043 };
00044 
00045 #endif
00046 
00047 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)