VR-Forces 4.0.4 Class Documentation
include/vrfobjcore/diGuyControllerPSR.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: diGuyControllerPSR.h,v $ $Revision: 1.4 $ $State: Exp $
00007 ** Created: 4/16/08 MEM 
00008 *******************************************************************************/
00009 
00012 
00013 #ifndef diGuyControllerPSR_H_
00014 #define diGuyControllerPSR_H_
00015 
00016 #include "vrfobjcore/processSR.h"
00017 #include "vrfutil/rwReal.h"
00018 #include "vrfutil/rwBoolean.h"
00019 #include "vrfutil/rwString.h"
00020 
00027 
00028 #include "vrfobjcore/vrfobjcoreDefines.h"
00029 class DT_DLL_vrfobjcore DtDIGuyControllerPSR : public DtVrfProcessStateRepository
00030 {
00031 public:
00032 
00034    DtDIGuyControllerPSR(DtVrfObject* vrfObject, 
00035       const DtString& rwName = DtString::nullString(), 
00036       DtReaderWriterRegistry*  parentRegistry = 0);
00037 
00039    DtDIGuyControllerPSR(const DtDIGuyControllerPSR& orig,
00040       const DtString& rwName = DtString::nullString(), 
00041       DtReaderWriterRegistry*  parentRegistry = 0);
00042 
00044    virtual ~DtDIGuyControllerPSR();
00045 
00047    DtDIGuyControllerPSR& operator=(const DtDIGuyControllerPSR& orig);
00048 
00050    virtual DtVrfProcessStateRepository* clone(
00051       const DtString& rwName = DtString::nullString(), 
00052       DtReaderWriterRegistry*  parentRegistry = 0) const;
00053 
00055    virtual DtString type() const;
00056 
00058    virtual void setElapsedTime(double time);
00059    virtual double elapsedTime() const;
00060 
00062    virtual void setAnimationDuration(double time);
00063    virtual double animationDuration() const;
00064 
00067    virtual void setDirectionOfMovement(double angle);
00068    virtual double directionOfMovement() const;
00069 
00071    virtual void setAmRotating(bool rot);
00072    virtual bool amRotating() const;
00073 
00075    virtual void setDefaultAnimationName(const DtString & name);
00076    virtual const DtString & defaultAnimationName() const;
00077 
00078 public:
00079 
00081    static DtVrfProcessStateRepository* creator (const DtString& rwName,
00082       DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
00083 
00084 protected:
00085 
00086    DtRwReal       myElapsedTime;
00087    DtRwReal       myDuration;
00088    DtRwBoolean    myAmRotating;
00089    DtRwReal       myDirectionOfMovement;
00090    DtRwString     myDefaultAnimationName;
00091 };
00092 
00093 #endif

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)