![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: DtDisplayProctor.h,v $ $Revision: 1.17 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00012 00013 #ifndef DtDisplayProctor_H_ 00014 #define DtDisplayProctor_H_ 00015 00016 #include <vrvCore/vrvCore.h> 00017 #include <vrvCore/DtProctor.h> 00018 00019 #include <string> 00020 00021 #include <makArchives/portable_binary_iarchive.hpp> 00022 #include <makArchives/portable_binary_oarchive.hpp> 00023 00024 namespace makVrv 00025 { 00026 00027 class DtWindowConfiguration; 00028 00031 class DT_DLL_VRVCORE DtDisplayProctor : public DtProctor 00032 { 00033 00034 public: 00035 00036 friend class DtDisplayProxy; 00037 00040 static DtDisplayProctor& instance(DtDe& de); 00041 00043 DtDisplayProctor(DtDe& de); 00044 00046 virtual ~DtDisplayProctor(); 00047 00048 protected: 00049 00051 00052 virtual bool addWindow( const std::string& displayName, const DtWindowConfiguration& configuration) = 0; 00053 00055 static void decode_addWindow(DtProctor* proctor, DtMessage& msg); 00056 00058 static void serialize_addWindow(DtMessage& msg, std::string& displayName, 00059 DtWindowConfiguration& configuration); 00061 00062 00064 00065 virtual void destroyWindow( const std::string& displayName, const std::string& windowName ) = 0; 00066 00068 static void decode_destroyWindow(DtProctor* proctor, DtMessage& msg); 00069 00071 static void serialize_destroyWindow(DtMessage& msg, std::string& displayName, 00072 std::string& windowName); 00074 00076 00077 virtual void modifyWindow( const std::string& displayName, const std::string& windowName, 00078 const DtWindowConfiguration& configuration) = 0; 00079 00081 static void decode_modifyWindow(DtProctor* proctor, DtMessage& msg); 00082 00084 static void serialize_modifyWindow(DtMessage& msg, std::string& displayName, 00085 std::string& windowName, DtWindowConfiguration& configuration); 00087 00088 }; 00089 } 00090 00091 #endif 00092