ATLAS Offline Software
Loading...
Searching...
No Matches
VP1DrawOptionsWidget.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 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
23class SoGroup;
24
25class VP1DrawOptionsWidget : public QWidget {
26
27 Q_OBJECT
28
29public:
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(const QByteArray&);
53
54 //We might need the complexity elsewhere:
55 double complexity() const;
56signals:
57 void complexityChanged(const double&);
58private:
59 class Imp;
61private Q_SLOTS:
62 void updateNodes();
63};
64
65#endif
void setComplexity(const double &)
SoGroup * drawOptionsGroup() const
void setPointSizesDisabled(bool b=true)
void setLineWidths(const double &)
void setPointSizes(const double &)
void complexityChanged(const double &)
VP1DrawOptionsWidget(QWidget *parent=0)
void setLineWidthsDisabled(bool b=true)
void applyState(const QByteArray &)
void setComplexityDisabled(bool b=true)
void setBaseLightingDisabled(bool b=true)