![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 00002 /******************************************************************************* 00003 ** Copyright (c) 2009 MAK Technologies, Inc. 00004 ** All rights reserved. 00005 *******************************************************************************/ 00006 /******************************************************************************* 00007 * Copyright 2009 Autodesk, Inc. All rights reserved. 00008 * Use of this software is subject to the terms of the Autodesk license 00009 * agreement provided at the time of installation or download, or which otherwise 00010 * accompanies this software in either electronic or hard copy form. 00011 *******************************************************************************/ 00012 00013 00014 #ifndef KYNAPSE_DESCRIPTOR_H 00015 #define KYNAPSE_DESCRIPTOR_H 00016 00017 #include <vrfobjparam/compDesc.h> 00018 #include <vrfutil/rwString.h> 00019 #include "bhaveMsgs/bhaveMsgsDefines.h" 00020 00021 class DtReaderWriterRegistry; 00022 00023 namespace BHAVE 00024 { 00029 const char KynapseDescriptorType[] = "kynapse-descriptor"; 00030 00031 class DT_DLL_bhaveMsgs KynapseDescriptor : public DtComponentDescriptor 00032 { 00033 public: 00035 KynapseDescriptor(const DtString& name, 00036 DtReaderWriterRegistry * parentRegistry = 0); 00037 00039 KynapseDescriptor(const KynapseDescriptor & orig, 00040 DtReaderWriterRegistry * parentRegistry = 0); 00041 00043 KynapseDescriptor & operator=(const 00044 KynapseDescriptor & orig); 00045 00047 virtual DtComponentDescriptor * clone(DtReaderWriterRegistry * 00048 parentRegistry = 0) const; 00049 00051 virtual ~KynapseDescriptor(); 00052 00054 00056 virtual DtString type() const; 00057 00059 static DtComponentDescriptor * creator(); 00060 00061 00062 virtual void setPublishDebugRoutes(bool val); 00063 virtual bool publishDebugRoutes() const; 00064 00069 //{@ 00070 virtual void setInitialMovementMode(const DtString& val); 00071 virtual const DtString initalMovementMode() const; 00073 00074 00077 virtual void setNearDistance(DtReal nearDistance); 00078 virtual DtReal nearDistance() const; 00080 00083 virtual void setApproachSpeed(DtReal approachSpeed); 00084 virtual DtReal approachSpeed() const; 00086 00089 virtual void setAtDistance(DtReal atDistance); 00090 virtual DtReal atDistance() const; 00092 00095 virtual void setBotClass(DtRwString botclass); 00096 virtual DtRwString botClass() const; 00097 00098 void getSelf(DtlObjPtr args, const DtFilename& searchPath); 00099 00100 protected: 00104 DtRwBoolean myPublishDebugRoutes; 00105 00109 DtRwString myInitialMovementMode; 00110 00116 DtRwReal myNearDistance; 00117 00123 DtRwReal myAtDistance; 00124 00131 DtRwReal myApproachSpeed; 00132 00137 DtRwString myBotClass; 00138 }; 00139 00140 #endif //! KYNAPSE_DESCRIPTOR_H 00141 00142 }