VR-Forces 4.0.4 Class Documentation
include/vrvVrlQt/DtAggregateSettingsWidget.h
Go to the documentation of this file.
00001 /******************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  ******************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvVrlQt/vrvVrlQt.h>
00013 
00014 #include <vrvVrlQt/DtAggregateSettingsInterface.h>
00015 
00016 #include <QtGui/QSpinBox>
00017 
00018 class QGroupBox;
00019 class QRadioButton;
00020 class QCheckBox;
00021 class QLabel;
00022 class QSpinBox;
00023 class QVBoxLayout;
00024 class QSizePolicy;
00025 
00026 namespace makVrv
00027 {
00028 
00031    class DT_DLL_VRVVRLQT DtAggregateSettingsWidget
00032       : public QWidget, public DtAggregateSettingsInterface
00033    {  Q_OBJECT;
00034    public:
00035 
00037       DtAggregateSettingsWidget( DtDe& de, QWidget* parent,
00038          Qt::WindowFlags f = Qt::Widget );
00039 
00041       virtual ~DtAggregateSettingsWidget();
00042 
00043    public:
00044 
00048 
00049       virtual void setGhostEchelonLevelItems( bool enabled );
00050       virtual void setEchelonLevel( int );
00051       virtual void setDisplayBoundingBoxes( bool enabled );
00052       virtual void setDisplayAggregates( bool enabled );
00053       virtual void setDisplayLeafLevelItems( bool enabled );
00054       virtual void setDisplayBoundingBoxesForSelected( bool enabled );
00055       virtual void setAllowSelectingOfGhostedItems( bool enabled );
00056       virtual void setDisplayMainIcon( bool enabled );
00057       virtual void setColorizedModelColorType(
00058          DtSharedAggregateDisplaySettings::ColorizedModelColorType type );
00059 
00061 
00065 
00066       virtual int echelonLevel() const;
00067       virtual bool displayAggregates() const;
00068       virtual bool ghostEchelonLevelItems() const;
00069       virtual bool displayBoundingBoxes() const;
00070       virtual bool displayBoundingBoxesForSelected() const;
00071       virtual bool displayMainIcon() const;
00072       virtual bool displayLeafLevelItems() const;
00073       virtual bool allowSelectingOfGhostedItems() const;
00074       virtual DtSharedAggregateDisplaySettings::ColorizedModelColorType
00075          colorizedModelColorType() const;
00076 
00078 
00079    protected slots:
00080 
00084 
00085       virtual void on_setDisplayAggregatesChanged();
00086       virtual void on_setShowLeafNodesChanged();
00087       virtual void on_displayBoundingBoxesForSelectedChanged();
00088       virtual void on_displayBoundingBoxesChanged();
00089       virtual void on_displayMainIconChanged();
00090       virtual void on_ghostEchelonLevelItemsChanged();
00091       virtual void on_allowSelectionOfGhostedItemsChanged();
00092       virtual void on_echelonLevelChanged();
00093       virtual void on_colorizedModelColorTypeChanged();
00094 
00096 
00097    protected:
00098 
00101       void setupGui();
00102 
00105       void connectToSignals();
00106 
00108       virtual void updateEnabledStates();
00109 
00110    public:
00111 
00112       QCheckBox* myShowAggregates;
00113       QCheckBox* myShowBoundingVolumes;
00114       QCheckBox* myShowBoundingVolumesOnlyForSelected;
00115 
00116       QCheckBox* myGhostEchelonSettingsBox;
00117       QLabel* myToEchelonLabel;
00118       QSpinBox* myToEchelonLevel;
00119       QCheckBox* myAllowSelectionOfGhosted;
00120 
00121       QCheckBox* myShowMainIcon;   // Valid for 3D only
00122       QCheckBox* myShowLeafNodes;  // Valid for 3D only
00123 
00124       QLabel* myForceColoringLabel;
00125       QRadioButton* myPrimaryColorsRadioButton;
00126       QRadioButton* myIconColorsRadioButton;
00127 
00128    protected:
00129 
00130       DtDe& myDe;
00131 
00132    };
00133 
00134 }

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)