![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: vectorIOPort.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00014 00015 #ifndef DtVectorIOPort_H_ 00016 #define DtVectorIOPort_H_ 00017 00018 #include <matrix/vlVector.h> 00019 00020 #include "vrfobjcore/singleConnectionInputPort.h" 00021 #include "vrfobjcore/outputPort.h" 00022 #include "vrfobjcore/portData.h" 00023 00026 #include "vrfobjcore/vrfobjcoreDefines.h" 00027 class DT_DLL_vrfobjcore DtVectorInputPort : public DtSingleConnectionInputPort 00028 { 00029 public: 00031 DtVectorInputPort(const DtString & portName); 00032 00034 virtual ~DtVectorInputPort(); 00035 00037 virtual bool acceptType(const DtString& type) const; 00038 00039 virtual void receiveData(DtPortData* data); 00040 00041 virtual const DtVector value() const; 00042 00043 protected: 00045 DtVectorInputPort(const DtVectorInputPort & orig); 00047 const DtVectorInputPort & operator=(const DtVectorInputPort & orig); 00048 }; 00049 00052 class DT_DLL_vrfobjcore DtVectorOutputPort : public DtOutputPort 00053 { 00054 public: 00055 DtVectorOutputPort(const DtString& portName); 00056 virtual ~DtVectorOutputPort(); 00057 00059 virtual const DtString type() const; 00060 00062 virtual void createPortData(); 00063 00066 virtual void setValue(const DtVector& vector); 00067 00069 virtual const DtVector value() const; 00070 00071 protected: 00073 DtVectorOutputPort(const DtVectorOutputPort & orig); 00075 const DtVectorOutputPort & operator=(const DtVectorOutputPort & orig); 00076 }; 00077 00081 class DT_DLL_vrfobjcore DtVectorPortData : public DtPortData 00082 { 00083 public: 00085 DtVectorPortData(); 00087 virtual ~DtVectorPortData(); 00089 DtVectorPortData(const DtVectorPortData& orig); 00091 DtVectorPortData& operator=(const DtVectorPortData& orig); 00092 00094 virtual const DtString type() const; 00095 00097 virtual void setValue(const DtVector&); 00098 00100 virtual const DtVector& value() const; 00101 00103 virtual DtPortData* clone() const; 00104 00105 protected: 00106 DtVector myValue; 00107 }; 00108 00109 #endif