![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************** 00002 * Copyright (c) 2012 MAK Technologies, Inc. 00003 * All rights reserved. 00004 ********************************************************************/ 00005 00009 00010 #pragma once 00011 00012 #include <vrvCoreQt/vrvCoreQt.h> 00013 #include <vrvCoreQt/DtPage.h> 00014 00015 #include <QtGui/QWidget> 00016 #include <vrvCore/DtUniqueID.h> 00017 #include <vrvCoreQt/DtEyepointInfoWidgetUi.hpp> 00018 #include <vrvCoreQt/DtEyepointInfoWidgetInterface.h> 00019 #include <vrvCoreQt/DtDockable.h> 00020 00021 namespace makVrv 00022 { 00023 00024 class DtUnicode; 00025 class DtEyepointInfoWidgetLogic; 00026 00029 class DT_DLL_VRVCOREQT DtEyepointInfoWidget 00030 : public DtPage 00031 , public Ui::DtEyepointInfoWidgetUi 00032 , public DtEyepointInfoWidgetInterface 00033 { Q_OBJECT; 00034 public: 00035 00037 virtual ~DtEyepointInfoWidget(); 00038 00040 virtual QIcon icon(); 00041 00043 virtual QString title(); 00044 00046 virtual const std::string& pageClassName() const; 00047 00051 00052 virtual void setUnitType( const QString& unitToDisplay ) {} 00053 virtual void addUnitType( const QString& unit ) {} 00054 00055 virtual void setCoordinateSystem( const DtUnicode& coordSysToDisplay ); 00056 virtual void addCoordinateSystem( const QString& coordSys ); 00057 00058 virtual void setXLabel( const DtUnicode& xLabel ); 00059 virtual void setYLabel( const DtUnicode& yLabel ); 00060 virtual void setZLabel( const DtUnicode& zLabel ); 00061 00062 virtual void setXValue( const QString& xValStr ); 00063 virtual void setYValue( const QString& yValStr ); 00064 virtual void setZValue( const QString& zValStr ); 00065 00066 virtual void setYawLabel( const DtUnicode& label ); 00067 virtual void setPitchLabel( const DtUnicode& label ); 00068 virtual void setRollLabel( const DtUnicode& label ); 00069 00070 virtual void setYawValue( const QString& yawValStr ); 00071 virtual void setPitchValue( const QString& pitchValStr ); 00072 virtual void setRollValue( const QString& rollValStr ); 00073 00075 00076 virtual void showCoordinateSystemCombo( bool b ); 00077 00078 virtual QSize sizeHint() const; 00079 00080 public slots: 00081 00082 virtual void update(); 00083 virtual void updateCoordSys( const QString& s ); 00084 virtual void updateOrientationMode( const QString& m ); 00085 00086 protected: 00087 00089 friend class DtEyepointInfoWidgetCreator; 00090 00092 DtEyepointInfoWidget( DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0 ); 00093 00095 virtual void activate(); 00096 00098 virtual void deactivate(); 00099 00100 private: 00101 00103 DtEyepointInfoWidget( const DtEyepointInfoWidget& orig ); 00104 00106 DtEyepointInfoWidget& operator = ( const DtEyepointInfoWidget& orig ); 00107 00108 protected: 00109 00111 DtEyepointInfoWidgetLogic* myLogic; 00112 std::string myClassName; 00113 QTimer* myUpdateTimer; 00114 00115 }; 00116 00117 00120 class DT_DLL_VRVCOREQT DtEyepointInfoWidgetCreator : public DtPageCreator 00121 { 00122 public: 00123 00125 DtEyepointInfoWidgetCreator( DtDe& de ); 00126 00128 virtual ~DtEyepointInfoWidgetCreator(); 00129 00133 virtual std::string pageClassName() const; 00134 00136 virtual DtPage* create( QWidget* parent = 0, Qt::WindowFlags f = 0 ); 00137 00138 }; 00139 00140 }