ATLAS Offline Software
VP1DrawOptionsWidget.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1DrawOptionsWidget //
9 // //
10 // Description: Widget for setting complexity, line width, //
11 // point sizes and base colouring. //
12 // //
13 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
14 // Initial version: August 2008 //
15 // //
17 
18 #ifndef VP1DRAWOPTIONSWIDGET_H
19 #define VP1DRAWOPTIONSWIDGET_H
20 
21 #include <QWidget>
22 
23 class SoGroup;
24 
25 class VP1DrawOptionsWidget : public QWidget {
26 
27  Q_OBJECT
28 
29 public:
30 
31  VP1DrawOptionsWidget(QWidget * parent = 0);
32  virtual ~VP1DrawOptionsWidget();
33 
34  //Put this in the scene graph:
35  SoGroup * drawOptionsGroup() const;
36 
37  //Use these to set defaults (ASAP after construction)
38  //NB: Due to constraints in granularities, the values might not end
39  //up exactly the same as the arguments.
40  void setComplexity(const double&);//default 0.5
41  void setLineWidths(const double&);//default 1.0
42  void setPointSizes(const double&);//default 1.0
43  void setUseBaseLighting(bool);//default is false
44 
45  //And to fine tune options:
46  void setComplexityDisabled(bool b=true);//In case you have no curved surfaces you don't need complexity controls
47  void setLineWidthsDisabled(bool b=true);//In case you have no lines surfaces you don't need line width controls
48  void setPointSizesDisabled(bool b=true);//In case you have no points you don't need point size controls
49  void setBaseLightingDisabled(bool b=true);//In case you don't need this
50 
51  QByteArray state() const;
52  void applyState(QByteArray);
53 
54  //We might need the complexity elsewhere:
55  double complexity() const;
56 signals:
57  void complexityChanged(const double&);
58 private:
59  class Imp;
60  Imp * m_d;
61 private Q_SLOTS:
62  void updateNodes();
63 };
64 
65 #endif
VP1DrawOptionsWidget::applyState
void applyState(QByteArray)
Definition: VP1DrawOptionsWidget.cxx:262
VP1DrawOptionsWidget::setPointSizes
void setPointSizes(const double &)
Definition: VP1DrawOptionsWidget.cxx:124
VP1DrawOptionsWidget::setUseBaseLighting
void setUseBaseLighting(bool)
Definition: VP1DrawOptionsWidget.cxx:131
VP1DrawOptionsWidget::setLineWidths
void setLineWidths(const double &)
Definition: VP1DrawOptionsWidget.cxx:117
VP1DrawOptionsWidget::state
QByteArray state() const
Definition: VP1DrawOptionsWidget.cxx:242
VP1DrawOptionsWidget::setLineWidthsDisabled
void setLineWidthsDisabled(bool b=true)
Definition: VP1DrawOptionsWidget.cxx:151
VP1DrawOptionsWidget::drawOptionsGroup
SoGroup * drawOptionsGroup() const
Definition: VP1DrawOptionsWidget.cxx:84
VP1DrawOptionsWidget::complexityChanged
void complexityChanged(const double &)
VP1DrawOptionsWidget::~VP1DrawOptionsWidget
virtual ~VP1DrawOptionsWidget()
Definition: VP1DrawOptionsWidget.cxx:74
VP1DrawOptionsWidget::VP1DrawOptionsWidget
VP1DrawOptionsWidget(QWidget *parent=0)
Definition: VP1DrawOptionsWidget.cxx:43
VP1DrawOptionsWidget::setComplexity
void setComplexity(const double &)
Definition: VP1DrawOptionsWidget.cxx:105
test_pyathena.parent
parent
Definition: test_pyathena.py:15
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition: LegacyTopoMergerMap.py:13
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
VP1DrawOptionsWidget::Imp
Definition: VP1DrawOptionsWidget.cxx:27
VP1DrawOptionsWidget::updateNodes
void updateNodes()
Definition: VP1DrawOptionsWidget.cxx:183
VP1DrawOptionsWidget
Definition: VP1DrawOptionsWidget.h:25
VP1DrawOptionsWidget::setPointSizesDisabled
void setPointSizesDisabled(bool b=true)
Definition: VP1DrawOptionsWidget.cxx:162
VP1DrawOptionsWidget::m_d
Imp * m_d
Definition: VP1DrawOptionsWidget.h:59
VP1DrawOptionsWidget::complexity
double complexity() const
Definition: VP1DrawOptionsWidget.cxx:90
VP1DrawOptionsWidget::setBaseLightingDisabled
void setBaseLightingDisabled(bool b=true)
Definition: VP1DrawOptionsWidget.cxx:173
VP1DrawOptionsWidget::setComplexityDisabled
void setComplexityDisabled(bool b=true)
Definition: VP1DrawOptionsWidget.cxx:140