![]() |
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 00014 #include <vrvCoreQt/DtInterestManagementInterface.h> 00015 00016 #include <QtGui/QWidget> 00017 00018 class QLabel; 00019 class QSpinBox; 00020 class QCheckBox; 00021 class QHBoxLayout; 00022 00023 namespace makVrv 00024 { 00025 00026 class DtUnicode; 00027 00031 class DT_DLL_VRVCOREQT DtInterestManagementWidget 00032 : public QWidget, public DtInterestManagementInterface 00033 { 00034 00035 Q_OBJECT 00036 00037 public: 00038 00040 DtInterestManagementWidget( QWidget* parent = 0, 00041 Qt::WindowFlags flags = 0 ); 00042 00044 virtual ~DtInterestManagementWidget(); 00045 00049 00050 virtual void setDdmRegionSize( int size ); 00051 virtual void setDdmRegionSizeUnitLabel( const DtUnicode& label ); 00052 virtual void setRegionUpdateThreshold( int percentage ); 00053 virtual void setAltitudeThresholdEnabled( bool enabled ); 00054 virtual void setAltitudeThreshold( int threshold ); 00055 virtual void setAltitudeThresholdUnitLabel( const DtUnicode& label ); 00056 00058 00059 protected slots: 00060 00064 00065 void on_myDdmRegionSizeSpinBox_valueChanged( int ); 00066 void on_myRegionUpdateThresholdSpinBox_valueChanged( int ); 00067 void on_myAltitudeThresholdSpinBox_valueChanged( int ); 00068 void on_myHideEntitiesCheckbox_stateChanged( int ); 00069 00071 00072 protected: 00073 00076 void setupGui(); 00077 00078 protected: 00079 00080 QSpinBox* myDdmRegionSizeSpinBox; 00081 QLabel* regionSizeLabel; 00082 QSpinBox* myRegionUpdateThresholdSpinBox; 00083 QSpinBox* myAltitudeThresholdSpinBox; 00084 QCheckBox* myHideEntitiesCheckbox; 00085 QHBoxLayout* myMainLayout; 00086 00087 }; 00088 00089 }