VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtTreeRecord.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2010 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtTreeRecord.h,v $ $Revision: 1.9 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #ifndef DtTreeRecord_H_ 
00014 #define DtTreeRecord_H_ 
00015  
00016 #include <vrvCore/vrvCore.h> 
00017 #include <vrvCore/DtUniqueID.h>
00018 
00019 #include <matrix/vlVector.h>
00020 #include <string>
00021 
00022  
00023 namespace makVrv 
00024 { 
00025    class DtMessage;
00026   
00029    class DT_DLL_VRVCORE DtTreeRecord 
00030    { 
00031 
00032    public:
00033 
00035       DtTreeRecord();
00036 
00038       DtTreeRecord(DtUniqueID id, const DtVector& pos, const std::string& modelDefinitionName);
00039 
00041       DtTreeRecord(const DtTreeRecord& orig);
00042 
00044       const DtTreeRecord& operator=(const DtTreeRecord& orig);
00045 
00047       bool operator==(const DtTreeRecord& other) const;
00048 
00050       bool operator<(const DtTreeRecord& other) const;
00051 
00053       virtual ~DtTreeRecord();
00054 
00056       virtual void setUniqueId(DtUniqueID id);
00057 
00059       virtual DtUniqueID uniqueId() const;
00060 
00062       virtual void setPostion(const DtVector& pos);
00063 
00065       virtual const DtVector& position() const;
00066 
00068       virtual void setModelDefinition(const std::string& modelDef);
00069 
00071       virtual const std::string& modelDefinition() const;
00072 
00073    protected:
00074 
00076       void copyHelper(const DtTreeRecord& orig);
00077 
00078    protected:
00079 
00080       DtUniqueID myUniqueId;
00081       DtVector myPosition;
00082       std::string myModelDefinition;
00083       
00084    }; 
00085    
00087    DT_DLL_VRVCORE DtMessage& operator<<( DtMessage& msg,const DtTreeRecord& record );
00088 
00090    DT_DLL_VRVCORE DtMessage& operator>>( DtMessage& msg,DtTreeRecord& record );
00091 } 
00092  
00093 #endif 
00094  

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)