![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1999 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: rwVector.h,v $ $Revision: 1.10 $ $State: Exp $ 00007 *******************************************************************************/ 00015 00018 00019 #ifndef DtRwVector_H_ 00020 #define DtRwVector_H_ 00021 00022 #include <matrix/vlVector.h> 00023 #include "vrfutil/rdrWritr.h" 00024 00025 #include "vrfutil/vrfutilDefines.h" 00026 class DT_DLL_vrfutil DtRwVector : public DtReaderWriter, public DtVector 00027 { 00028 public: 00030 DtRwVector(const DtString& name = DtString::nullString(), 00031 DtReaderWriterRegistry* parentRegistry = NULL); 00032 00033 DtRwVector(const DtSymbolString& name, 00034 DtReaderWriterRegistry* parentRegistry = NULL); 00035 00037 DtRwVector(double x, double y, double z, 00038 const DtString& name = DtString::nullString(), 00039 DtReaderWriterRegistry* parentRegistry = NULL); 00040 00041 DtRwVector(double x, double y, double z, 00042 const DtSymbolString& name, 00043 DtReaderWriterRegistry* parentRegistry = NULL); 00044 00046 DtRwVector(const DtVector & fromVec, 00047 const DtString& name = DtString::nullString(), 00048 DtReaderWriterRegistry* parentRegistry = NULL); 00049 00050 DtRwVector(const DtVector & fromVec, 00051 const DtSymbolString& name, 00052 DtReaderWriterRegistry* parentRegistry = NULL); 00053 00055 DtRwVector(const DtRwVector & orig, 00056 DtReaderWriterRegistry* parentRegistry = NULL); 00057 00059 DtRwVector & operator=(const DtRwVector & orig); 00060 DtRwVector & operator=(const DtVector & orig); 00061 00062 virtual ~DtRwVector(); 00063 00064 virtual void putData(FILE * fp, int indentLevel = 0); 00065 virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath, 00066 const DtVariableBindingsList& variableBindings); 00067 00068 virtual double distSquaredTo(const DtVector& point) const; 00069 00073 virtual const char* readerWriterType() const; 00074 00075 protected: 00076 00077 }; 00078 00079 00080 #endif