VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtContourizationWidget.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 /*****************************************************************************
00006  * $RCSfile: DtContourizationWidget.h,v $ $Revision: 1.8 $ $State: Exp $
00007  *****************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvCoreQt/vrvCoreQt.h>
00016 
00017 #include <vrvCoreQt/DtContourizationInterface.h>
00018 
00019 #include <QtGui/QWidget>
00020 
00021 class QFrame;
00022 class QCheckBox;
00023 class QLineEdit;
00024 class QLabel;
00025 class QPushButton;
00026 class QDoubleSpinBox;
00027 class QVBoxLayout;
00028 class QSpacerItem;
00029 class QGroupBox;
00030 
00031 namespace makVrv
00032 {
00033 
00034    class DtDe;
00035    class DtUnicode;
00036 
00039    class DT_DLL_VRVCOREQT DtContourizationWidget
00040       : public QWidget
00041       , public DtContourizationInterface
00042    {  Q_OBJECT;
00043    public:
00044 
00046       DtContourizationWidget( QWidget* parent,
00047          Qt::WindowFlags f  = Qt::Widget );
00048 
00050       virtual ~DtContourizationWidget();
00051 
00055 
00058       virtual void setCurrentInterval( double interval );
00059 
00062       virtual void setIntervalUnits( const DtUnicode& units );
00063 
00066       virtual void setIntervalDecimals( int decimals );
00067 
00070       virtual void setCurrentThickness( double thickness );
00071 
00074       virtual void setIntermediateLines( bool enabled );
00075 
00078       virtual void setContoursEnabled( bool enabled );
00079 
00081 
00085 
00087       virtual double currentInterval();
00088 
00090       virtual double currentThickness();
00091 
00093       virtual bool intermediateLines();
00094 
00096       virtual bool contoursEnabled();
00097 
00099 
00100    protected slots:
00101 
00105 
00107       virtual void onIntervalChanged( double value );
00108 
00110       virtual void onThicknessChanged( double value );
00111 
00113       virtual void onContoursEnabledChanged( int enabled );
00114 
00116       virtual void onIntermediateLinesChanged( int enabled );
00117 
00119 
00120    protected:
00121 
00124       void setupGui();
00125 
00126    protected:
00127 
00128       QVBoxLayout* myGroupLayout;
00129       QGroupBox* myGroupBox;
00130       QVBoxLayout* myMainLayout;
00131       QCheckBox* myEnableContourLinesCheckBox;
00132       QFrame* line;
00133       QLabel* myIntervalLabel;
00134       QDoubleSpinBox* myIntervalSpinBox;
00135       QLabel* myThicknessLabel;
00136       QDoubleSpinBox* myThicknessSpinBox;
00137       QSpacerItem* spacerItem;
00138       QCheckBox* myIntermediateLinesCheckBox;
00139       QSpacerItem* spacerItem1;
00140 
00141    };
00142 
00143 }

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)