|
ATLAS Offline Software
|
#include <GeoSysController.h>
|
void | transparencyChanged (float) |
|
void | muonChamberAdaptionStyleChanged (VP1GeoFlags::MuonChamberAdaptionStyleFlags) |
|
void | showVolumeOutLinesChanged (bool) |
|
void | labelsChanged (int) |
|
void | labelPosOffsetChanged (QList< int >) |
|
void | adaptMuonChambersToEventData () |
|
void | autoAdaptPixelsOrSCT (bool, bool, bool, bool, bool, bool) |
|
void | autoAdaptMuonNSW (bool, bool, bool, bool, bool, bool) |
|
void | resetSubSystems (VP1GeoFlags::SubSystemFlags) |
|
void | autoExpandByVolumeOrMaterialName (bool, QString) |
|
void | autoIconifyByVolumeOrMaterialName (bool, QString) |
|
void | actionOnAllNonStandardVolumes (bool) |
|
void | volumeStateChangeRequested (VolumeHandle *, VP1GeoFlags::VOLSTATE) |
|
void | volumeResetRequested (VolumeHandle *) |
|
void | saveMaterialsToFile (QString, bool) |
|
void | loadMaterialsFromFile (QString) |
|
void | dummyUpdateTrigger () |
|
|
| GeoSysController (IVP1System *sys) |
|
virtual | ~GeoSysController () |
|
void | setGeometrySelectable (bool) |
|
void | setZoomToVolumeOnClick (bool) |
|
void | setOrientViewToMuonChambersOnClick (bool) |
|
void | setAutoAdaptMuonChambersToEventData (bool) |
|
void | setComplexity (double) |
|
void | setLabelsEnabled (bool t0s, bool hits) |
| controls whether the checkboxes are enabled or not. More...
|
|
void | actualRestoreSettings (VP1Deserialise &) |
|
int | currentSettingsVersion () const |
|
void | actualSaveSettings (VP1Serialise &) const |
|
void | setLastSelectedVolume (VolumeHandle *) |
|
VolumeHandle * | lastSelectedVolume () const |
|
QCheckBox * | subSystemCheckBox (VP1GeoFlags::SubSystemFlag) const |
|
SoGroup * | drawOptions () const |
|
SoPickStyle * | pickStyle () const |
|
VP1GeoTreeView * | volumeTreeBrowser () const |
|
PhiSectionWidget * | phiSectionWidget () const |
|
ZappedVolumeListModel * | zappedVolumeListModel () const |
|
bool | printInfoOnClick_Shape () const |
|
bool | printInfoOnClick_Material () const |
|
bool | printInfoOnClick_CopyNumber () const |
|
bool | printInfoOnClick_Transform () const |
|
bool | printInfoOnClick_Tree () const |
|
bool | printInfoOnClick_Mass () const |
|
bool | printInfoOnClick_MuonStationInfo () const |
|
bool | orientViewToMuonChambersOnClick () const |
|
bool | zoomToVolumeOnClick () const |
|
bool | autoAdaptMuonChambersToEventData () const |
|
float | transparency () const |
|
VP1GeoFlags::MuonChamberAdaptionStyleFlags | muonChamberAdaptionStyle () const |
|
bool | showVolumeOutLines () const |
|
int | labels () const |
|
QList< int > | labelPosOffset () |
| Offset in x,y,z. More...
|
|
void | initLastVars () |
|
QByteArray | saveSettings () const |
|
void | restoreSettings (QByteArray) |
|
void | setSystemBasePointer (IVP1System *sys) |
|
void | message (const QString &) const |
|
void | message (const QStringList &, const QString &addtoend="") const |
|
void | message (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &) const |
|
void | messageDebug (const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &) const |
|
void | messageVerbose (const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
IVP1System * | systemBase () const |
|
QString | helperClassName () const |
|
|
template<class T > |
bool | changed (T &lastval, const T &newval) |
|
template<class T > |
void | initDialog (T &theUI, QPushButton *launchbutton, QAbstractButton *enabledButton=0) |
|
void | initDialog (QWidget *dialog, QPushButton *launchbutton, QPushButton *closebutton, QAbstractButton *enabledButton=0) |
|
void | setupCollWidgetInScrollArea (QScrollArea *scrollarea, VP1CollectionWidget *collWidget) |
|
const char * | addUpdateSlot (const char *slot) |
|
void | connectToLastUpdateSlot (QObject *sender, const char *signal) |
|
void | connectToLastUpdateSlot (QCheckBox *) |
|
void | connectToLastUpdateSlot (QComboBox *) |
|
void | connectToLastUpdateSlot (QGroupBox *) |
|
void | connectToLastUpdateSlot (QSpinBox *) |
|
void | connectToLastUpdateSlot (QDoubleSpinBox *) |
|
void | connectToLastUpdateSlot (QRadioButton *) |
|
void | connectToLastUpdateSlot (QButtonGroup *) |
|
void | connectToLastUpdateSlot (QSlider *) |
|
void | connectToLastUpdateSlot (VP1ColorSelectButton *) |
|
bool | initVarsMode () const |
|
QButtonGroup * | defineRadioButtonGroup (QRadioButton *rb0, QRadioButton *rb1, QRadioButton *rb2=0, QRadioButton *rb3=0, QRadioButton *rb4=0, QRadioButton *rb5=0, QRadioButton *rb6=0, QRadioButton *rb7=0, QRadioButton *rb8=0, QRadioButton *rb9=0) |
|
QButtonGroup * | defineRadioButtonGroup (QList< QRadioButton * >) |
|
SoMaterial * | getMaterial (VP1MaterialButton *) const |
|
SoMaterial * | fallBackMaterial () const |
|
void | setHelperClassName (const QString &n) |
|
Definition at line 29 of file GeoSysController.h.
◆ GeoSysController()
GeoSysController::GeoSysController |
( |
IVP1System * |
sys | ) |
|
Definition at line 71 of file GeoSysController.cxx.
75 m_d->
ui.setupUi(
this);
85 m_d->
ui_disp.widget_drawOptions->setPointSizesDisabled();
87 m_d->
ui_disp.widget_drawOptions->setComplexity(0.6);
95 m_d->
ui.groupBox_innerdetector->setVisible(
false);
96 m_d->
ui.groupBox_calorimeters->setVisible(
false);
97 m_d->
ui.groupBox_muonsystems->setVisible(
false);
98 m_d->
ui.pushButton_settings_muonchambers->setEnabled(
false);
99 m_d->
ui_misc.groupBox_pixelactivemodules->setVisible(
false);
100 m_d->
ui_misc.groupBox_sctactivemodules->setVisible(
false);
101 m_d->
ui.groupBox_misc->setVisible(
false);
102 m_d->
ui_muon.groupBox_muonchamberconfig->setVisible(
false);
103 m_d->
ui_misc.groupBox_show_NSW_chambers->setVisible(
false);
104 m_d->
ui_int.checkBox_AutomaticMuonChamberEndViews->setVisible(
false);
105 message(
"GeoModel not properly initialised.");
127 m_d->
ui_iconisedvols.listView_iconisedvolumes->setSelectionMode(QAbstractItemView::ExtendedSelection);
◆ ~GeoSysController()
GeoSysController::~GeoSysController |
( |
| ) |
|
|
virtual |
◆ actionOnAllNonStandardVolumes
void GeoSysController::actionOnAllNonStandardVolumes |
( |
bool |
| ) |
|
|
signal |
◆ actualRestoreSettings()
Implements VP1Controller.
Definition at line 714 of file GeoSysController.cxx.
717 message(
"Warning: State data in .vp1 file has unsupported version ("+
str(
s.version())+
")");
721 if (
s.version()<=1) {
722 s.ignoreObsoletePhiSectionWidgetState();
728 s.restore(
m_d->
ui_muon.checkBox_muonadapt_autoadapt);
729 s.restore(
m_d->
ui_muon.checkBox_muonadapt_openmdtchambers);
730 s.restore(
m_d->
ui_muon.checkBox_muonadapt_hidetubes);
731 s.restore(
m_d->
ui_muon.checkBox_muonadapt_hiderpcvolumes);
732 s.restore(
m_d->
ui_muon.checkBox_muonadapt_opencscchambers);
733 s.restore(
m_d->
ui_muon.checkBox_muonadapt_opentgcchambers);
741 s.restore(
m_d->
ui_misc.lineEdit_expand_vols_matname);
742 s.restore(
m_d->
ui_misc.lineEdit_expand_vols_volname);
743 s.restore(
m_d->
ui_int.checkBox_geomselectable);
745 s.restore(
m_d->
ui_int.checkBox_print_material);
746 s.restore(
m_d->
ui_int.checkBox_print_transform);
750 s.restore(
m_d->
ui_int.checkBox_print_muonstationinfo);
751 s.restore(
m_d->
ui_int.checkBox_zoomToVolumes);
752 s.restore(
m_d->
ui_int.checkBox_AutomaticMuonChamberEndViews);
754 s.restore(
m_d->
ui_disp.checkBox_showVolumeOutLines);
756 if (
s.version()>=3) {
764 s.restore(
m_d->
ui_disp.horizontalSlider_labels_xOffset);
765 s.restore(
m_d->
ui_disp.horizontalSlider_labels_yOffset);
766 s.restore(
m_d->
ui_disp.horizontalSlider_labels_zOffset);
777 s.restore(
m_d->
ui_misc.checkBox_NSW_Passive_Spacer);
778 s.restore(
m_d->
ui_misc.checkBox_NSW_Passive_Structure);
779 s.restore(
m_d->
ui_misc.checkBox_NSW_Passive_APlate);
785 s.ignoreWidget(
it->second);
787 m_d->
ui_int.groupBox_printOnSelection->setEnabled(
m_d->
ui_int.checkBox_geomselectable->isChecked());
788 m_d->
ui_int.groupBox_automaticViewReorientations->setEnabled(
m_d->
ui_int.checkBox_geomselectable->isChecked());
◆ actualSaveSettings()
void GeoSysController::actualSaveSettings |
( |
VP1Serialise & |
s | ) |
const |
|
virtual |
◆ adaptMuonChambersToEventData
void GeoSysController::adaptMuonChambersToEventData |
( |
| ) |
|
|
signal |
◆ addUpdateSlot()
const char * VP1Controller::addUpdateSlot |
( |
const char * |
slot | ) |
|
|
protectedinherited |
◆ autoAdaptMuonChambersToEventData()
bool GeoSysController::autoAdaptMuonChambersToEventData |
( |
| ) |
const |
◆ autoAdaptMuonNSW
void GeoSysController::autoAdaptMuonNSW |
( |
bool |
, |
|
|
bool |
, |
|
|
bool |
, |
|
|
bool |
, |
|
|
bool |
, |
|
|
bool |
|
|
) |
| |
|
signal |
◆ autoAdaptPixelsOrSCT
void GeoSysController::autoAdaptPixelsOrSCT |
( |
bool |
, |
|
|
bool |
, |
|
|
bool |
, |
|
|
bool |
, |
|
|
bool |
, |
|
|
bool |
|
|
) |
| |
|
signal |
◆ autoExpandByVolumeOrMaterialName
void GeoSysController::autoExpandByVolumeOrMaterialName |
( |
bool |
, |
|
|
QString |
|
|
) |
| |
|
signal |
◆ autoIconifyByVolumeOrMaterialName
void GeoSysController::autoIconifyByVolumeOrMaterialName |
( |
bool |
, |
|
|
QString |
|
|
) |
| |
|
signal |
◆ changed()
template<class T >
bool VP1Controller::changed |
( |
T & |
lastval, |
|
|
const T & |
newval |
|
) |
| |
|
protectedinherited |
◆ collWidgetContentChanged
void VP1Controller::collWidgetContentChanged |
( |
| ) |
|
|
slotinherited |
Definition at line 232 of file VP1Controller.cxx.
235 message(
"ERROR: Unexpected signal in collWidgetContentChanged slot!!");
238 QScrollArea* scrollarea =
dynamic_cast<QScrollArea*
>(
m_d->
collWidget->parent());
240 scrollarea =
dynamic_cast<QScrollArea*
>(
m_d->
collWidget->parent()->parent());
242 message(
"ERROR: m_d->collWidget not child or grandchild of a scroll area!!");
248 QScrollBar *
sb = scrollarea->verticalScrollBar();
251 scrollarea->setMinimumWidth(
width+2);
◆ connectToLastUpdateSlot() [1/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QButtonGroup * |
bg | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [2/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QCheckBox * |
cb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [3/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QComboBox * |
cb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [4/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QDoubleSpinBox * |
dsb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [5/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QGroupBox * |
gb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [6/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QObject * |
sender, |
|
|
const char * |
signal |
|
) |
| |
|
protectedinherited |
◆ connectToLastUpdateSlot() [7/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QRadioButton * |
rb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [8/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QSlider * |
s | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [9/10]
void VP1Controller::connectToLastUpdateSlot |
( |
QSpinBox * |
sb | ) |
|
|
protectedinherited |
◆ connectToLastUpdateSlot() [10/10]
◆ currentSettingsVersion()
int GeoSysController::currentSettingsVersion |
( |
| ) |
const |
|
virtual |
◆ customTourEditor()
◆ defineRadioButtonGroup() [1/2]
QButtonGroup * VP1Controller::defineRadioButtonGroup |
( |
QList< QRadioButton * > |
l | ) |
|
|
protectedinherited |
Definition at line 300 of file VP1Controller.cxx.
302 QRadioButton * rb_checked(0);
303 for (QRadioButton *
rb :
l) {
304 if (
rb->isChecked()) {
309 QButtonGroup * radiogroup =
new QButtonGroup(
this);
310 for (QRadioButton *
rb :
l)
311 radiogroup->addButton(
rb);
313 rb_checked->setChecked(
true);
◆ defineRadioButtonGroup() [2/2]
QButtonGroup * VP1Controller::defineRadioButtonGroup |
( |
QRadioButton * |
rb0, |
|
|
QRadioButton * |
rb1, |
|
|
QRadioButton * |
rb2 = 0 , |
|
|
QRadioButton * |
rb3 = 0 , |
|
|
QRadioButton * |
rb4 = 0 , |
|
|
QRadioButton * |
rb5 = 0 , |
|
|
QRadioButton * |
rb6 = 0 , |
|
|
QRadioButton * |
rb7 = 0 , |
|
|
QRadioButton * |
rb8 = 0 , |
|
|
QRadioButton * |
rb9 = 0 |
|
) |
| |
|
protectedinherited |
Definition at line 288 of file VP1Controller.cxx.
293 QList<QRadioButton *>
l;
294 l << rb0 << rb1 << rb2 << rb3 << rb4 << rb5 << rb6 << rb7 << rb8 << rb9;
◆ drawOptions()
SoGroup * GeoSysController::drawOptions |
( |
| ) |
const |
◆ dummyUpdateTrigger
void VP1Controller::dummyUpdateTrigger |
( |
| ) |
|
|
signalinherited |
◆ emit_actionOnAllNonStandardVolumes
void GeoSysController::emit_actionOnAllNonStandardVolumes |
( |
| ) |
|
|
privateslot |
◆ emit_adaptMuonChambersToEventData
void GeoSysController::emit_adaptMuonChambersToEventData |
( |
| ) |
|
|
privateslot |
◆ emit_autoAdaptMuonNSW
void GeoSysController::emit_autoAdaptMuonNSW |
( |
| ) |
|
|
privateslot |
Definition at line 566 of file GeoSysController.cxx.
569 if (sender()==
m_d->
ui_misc.toolButton_nswchambers_reset) {
572 bool stgc =
m_d->
ui_misc.checkBox_NSW_sTGC->isChecked();
574 bool pSp =
m_d->
ui_misc.checkBox_NSW_Passive_Spacer->isChecked();
575 bool pSt =
m_d->
ui_misc.checkBox_NSW_Passive_Structure->isChecked();
576 bool pAP =
m_d->
ui_misc.checkBox_NSW_Passive_APlate->isChecked();
◆ emit_autoAdaptPixelsOrSCT
void GeoSysController::emit_autoAdaptPixelsOrSCT |
( |
| ) |
|
|
privateslot |
◆ emit_autoExpandByVolumeOrMaterialName
void GeoSysController::emit_autoExpandByVolumeOrMaterialName |
( |
| ) |
|
|
privateslot |
◆ emit_autoIconifyByVolumeOrMaterialName
void GeoSysController::emit_autoIconifyByVolumeOrMaterialName |
( |
| ) |
|
|
privateslot |
◆ emit_resetSubSystems
void GeoSysController::emit_resetSubSystems |
( |
| ) |
|
|
privateslot |
Reset to the sub-system top volume.
The method reset the view to the whole sub-system by contracting all children to the mother volume. It does work properly only if the top sub-system volume has a concrete shape. If, instead, it is a mere container, then this method does not work because it will hide the children of the top container volume. In that case, you should implement a custom method.
Note: for an example of a custom solution, please refer to the 'VP1GeometrySystem::autoAdaptMuonNSW()' method, triggered by the emission of the 'autoAdaptMuonNSW()' signal in the 'emit_autoAdaptMuonNSW()' of this class.
Definition at line 636 of file GeoSysController.cxx.
638 VP1GeoFlags::SubSystemFlags
f;
639 if (sender()==
m_d->
ui_misc.toolButton_pixelmod_reset)
641 else if (sender()==
m_d->
ui_misc.toolButton_sctmod_reset)
643 else if (sender()==
m_d->
ui_muon.pushButton_muonadapt_resetToAllChambers)
◆ enabledButtonStateChanged
void VP1Controller::enabledButtonStateChanged |
( |
| ) |
|
|
slotinherited |
Definition at line 167 of file VP1Controller.cxx.
169 Imp::DialogInfo * di(0);
171 if (di2->enabledButton==sender()) {
177 message(
"ERROR: enabledButtonStateChanged() triggered with unrecognised sender() ="
178 +QString(sender()?sender()->objectName():
"NULL"));
182 bool on(di->enabledButton->isChecked());
183 if (di->launchButton->isEnabled()!=on)
184 di->launchButton->setEnabled(on);
186 if (di->dialogWidget->isVisible())
187 di->dialogWidget->setVisible(
false);
188 if (di->dialogWidget->windowState()==Qt::WindowMinimized)
189 di->dialogWidget->setWindowState(Qt::WindowNoState);
◆ fallBackMaterial()
SoMaterial * VP1Controller::fallBackMaterial |
( |
| ) |
const |
|
protectedinherited |
◆ getMaterial()
Definition at line 437 of file VP1Controller.cxx.
440 message(
"ERROR: Null material button pointer");
443 QList<SoMaterial*> mats =
mb->handledMaterials();
444 if (mats.count()!=1) {
445 message(
"ERROR: No material in button "+
mb->objectName());
◆ helperClassName()
QString VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ initDialog() [1/2]
void VP1Controller::initDialog |
( |
QWidget * |
dialog, |
|
|
QPushButton * |
launchbutton, |
|
|
QPushButton * |
closebutton, |
|
|
QAbstractButton * |
enabledButton = 0 |
|
) |
| |
|
protectedinherited |
Definition at line 123 of file VP1Controller.cxx.
125 QString txt(enabledButton?enabledButton->text():launchButton->text());
126 txt.replace(
"&&",
"&");
128 dialog->setWindowIcon(QIcon(QString(
":/vp1/icons/icons/3d_32x32.png")));
129 launchButton->setMaximumHeight(
static_cast<int>(0.5+QFontMetricsF(launchButton->font()).height()*1.05+2));
130 launchButton->setMinimumHeight(launchButton->maximumHeight());
131 launchButton->setCheckable(
true);
133 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
134 sizePolicy.setHorizontalStretch(0);
135 sizePolicy.setVerticalStretch(0);
136 sizePolicy.setHeightForWidth(launchButton->sizePolicy().hasHeightForWidth());
137 launchButton->setSizePolicy(sizePolicy);
138 launchButton->setFocusPolicy(Qt::NoFocus);
141 launchButton->setEnabled(enabledButton->isChecked());
143 m_d->
dialogs <<
new Imp::DialogInfo(launchButton,dialog,enabledButton);
149 dialog->installEventFilter(closeEventEater);
152 closeButton->setText(
"&Close");
153 closeButton->setToolTip(
"Close this dialog [Esc]");
154 connect(closeButton,SIGNAL(clicked()),dialog,SLOT(close()));
156 connect(
new QShortcut(QKeySequence(Qt::Key_Escape), dialog),SIGNAL(activated()),dialog,SLOT(close()));
161 maxwidth =
std::max(maxwidth,di->launchButton->sizeHint().width());
163 di->launchButton->setMinimumWidth(maxwidth);
◆ initDialog() [2/2]
template<class T >
void VP1Controller::initDialog |
( |
T & |
theUI, |
|
|
QPushButton * |
launchbutton, |
|
|
QAbstractButton * |
enabledButton = 0 |
|
) |
| |
|
protectedinherited |
Definition at line 144 of file VP1Controller.h.
145 QWidget *
w =
new QWidget(0,Qt::WindowStaysOnTopHint);
147 initDialog(
w, launchbutton, theUI.pushButton_close,enabledButton);
◆ initLastVars()
void VP1Controller::initLastVars |
( |
| ) |
|
|
inherited |
◆ initVarsMode()
bool VP1Controller::initVarsMode |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ labelPosOffset()
QList< int > GeoSysController::labelPosOffset |
( |
| ) |
|
◆ labelPosOffsetChanged
void GeoSysController::labelPosOffsetChanged |
( |
QList< int > |
| ) |
|
|
signal |
◆ labels()
int GeoSysController::labels |
( |
| ) |
const |
◆ labelsChanged
void GeoSysController::labelsChanged |
( |
int |
| ) |
|
|
signal |
◆ lastSelectedVolume()
VolumeHandle * GeoSysController::lastSelectedVolume |
( |
| ) |
const |
◆ loadMaterialsFromFile
void GeoSysController::loadMaterialsFromFile |
( |
QString |
| ) |
|
|
signal |
◆ loadMaterialsRequested
void GeoSysController::loadMaterialsRequested |
( |
| ) |
|
|
privateslot |
Definition at line 333 of file GeoSysController.cxx.
335 QString
filename = QFileDialog::getOpenFileName(
this,
"Select geometry material file to load",
339 "VP1 geometry material files (*.vp1geomat)",
340 0,QFileDialog::DontResolveSymlinks);
◆ message() [1/3]
void VP1HelperClassBase::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void VP1HelperClassBase::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ message() [3/3]
void VP1HelperClassBase::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [1/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [3/3]
void VP1HelperClassBase::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [1/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [3/3]
void VP1HelperClassBase::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ muonChamberAdaptionStyle()
VP1GeoFlags::MuonChamberAdaptionStyleFlags GeoSysController::muonChamberAdaptionStyle |
( |
| ) |
const |
Definition at line 468 of file GeoSysController.cxx.
470 VP1GeoFlags::MuonChamberAdaptionStyleFlags
f;
471 if (
m_d->
ui_muon.checkBox_muonadapt_openmdtchambers->isChecked())
473 if (
m_d->
ui_muon.checkBox_muonadapt_hidetubes->isChecked())
475 if (
m_d->
ui_muon.checkBox_muonadapt_hiderpcvolumes->isChecked())
477 if (
m_d->
ui_muon.checkBox_muonadapt_opencscchambers->isChecked())
479 if (
m_d->
ui_muon.checkBox_muonadapt_opentgcchambers->isChecked())
◆ muonChamberAdaptionStyleChanged
void GeoSysController::muonChamberAdaptionStyleChanged |
( |
VP1GeoFlags::MuonChamberAdaptionStyleFlags |
| ) |
|
|
signal |
◆ orientViewToMuonChambersOnClick()
bool GeoSysController::orientViewToMuonChambersOnClick |
( |
| ) |
const |
◆ phiSectionWidget()
◆ pickStyle()
SoPickStyle * GeoSysController::pickStyle |
( |
| ) |
const |
◆ possibleChange_labelPosOffset
void GeoSysController::possibleChange_labelPosOffset |
( |
| ) |
|
|
privateslot |
◆ possibleChange_labels
void GeoSysController::possibleChange_labels |
( |
| ) |
|
|
privateslot |
◆ possibleChange_muonChamberAdaptionStyle
void GeoSysController::possibleChange_muonChamberAdaptionStyle |
( |
| ) |
|
|
privateslot |
◆ possibleChange_showVolumeOutLines
void GeoSysController::possibleChange_showVolumeOutLines |
( |
| ) |
|
|
privateslot |
◆ possibleChange_transparency
void GeoSysController::possibleChange_transparency |
( |
| ) |
|
|
privateslot |
◆ printInfoOnClick_CopyNumber()
bool GeoSysController::printInfoOnClick_CopyNumber |
( |
| ) |
const |
◆ printInfoOnClick_Mass()
bool GeoSysController::printInfoOnClick_Mass |
( |
| ) |
const |
◆ printInfoOnClick_Material()
bool GeoSysController::printInfoOnClick_Material |
( |
| ) |
const |
◆ printInfoOnClick_MuonStationInfo()
bool GeoSysController::printInfoOnClick_MuonStationInfo |
( |
| ) |
const |
◆ printInfoOnClick_Shape()
bool GeoSysController::printInfoOnClick_Shape |
( |
| ) |
const |
◆ printInfoOnClick_Transform()
bool GeoSysController::printInfoOnClick_Transform |
( |
| ) |
const |
◆ printInfoOnClick_Tree()
bool GeoSysController::printInfoOnClick_Tree |
( |
| ) |
const |
◆ resetSubSystems
void GeoSysController::resetSubSystems |
( |
VP1GeoFlags::SubSystemFlags |
| ) |
|
|
signal |
◆ restoreSettings()
void VP1Controller::restoreSettings |
( |
QByteArray |
ba | ) |
|
|
inherited |
Definition at line 387 of file VP1Controller.cxx.
397 s.warnUnrestored((QWidget*)(
this));
399 s.warnUnrestored(di->dialogWidget);
◆ saveMaterialsRequested
void GeoSysController::saveMaterialsRequested |
( |
| ) |
|
|
privateslot |
Definition at line 306 of file GeoSysController.cxx.
308 const bool ctrl_isdown = (Qt::ControlModifier & QApplication::keyboardModifiers());
309 const bool onlyChangedMaterials = !ctrl_isdown;
312 = QFileDialog::getSaveFileName(
this,
"Select geometry material file to save",
316 "VP1 geometry material files (*.vp1geomat)",
317 0,QFileDialog::DontResolveSymlinks);
322 if (!
filename.endsWith(
".vp1geomat"))
◆ saveMaterialsToFile
void GeoSysController::saveMaterialsToFile |
( |
QString |
, |
|
|
bool |
|
|
) |
| |
|
signal |
◆ saveSettings()
QByteArray VP1Controller::saveSettings |
( |
| ) |
const |
|
inherited |
Definition at line 405 of file VP1Controller.cxx.
418 s.warnUnsaved((QWidget*)(
this));
420 s.warnUnsaved(di->dialogWidget);
◆ setAutoAdaptMuonChambersToEventData()
void GeoSysController::setAutoAdaptMuonChambersToEventData |
( |
bool |
b | ) |
|
◆ setComplexity()
void GeoSysController::setComplexity |
( |
double |
c | ) |
|
◆ setCustomTourEditor()
◆ setGeometrySelectable()
void GeoSysController::setGeometrySelectable |
( |
bool |
b | ) |
|
◆ setHelperClassName()
void VP1HelperClassBase::setHelperClassName |
( |
const QString & |
n | ) |
|
|
inlineprotectedinherited |
◆ setLabelsEnabled()
void GeoSysController::setLabelsEnabled |
( |
bool |
t0s, |
|
|
bool |
hits |
|
) |
| |
◆ setLastSelectedVolume()
void GeoSysController::setLastSelectedVolume |
( |
VolumeHandle * |
vh | ) |
|
Definition at line 284 of file GeoSysController.cxx.
287 m_d->
ui_disp.matButton_lastSel->setEnabled(vh!=0);
289 QList<SoMaterial*> mats =
m_d->
ui_disp.matButton_lastSel->handledMaterials();
290 if (mats.isEmpty()||mats.at(0)!=vh->
material()) {
291 m_d->
ui_disp.matButton_lastSel->clearHandledMaterials();
295 m_d->
ui_disp.matButton_lastSel->clearHandledMaterials();
◆ setOrientViewToMuonChambersOnClick()
void GeoSysController::setOrientViewToMuonChambersOnClick |
( |
bool |
b | ) |
|
◆ setSystemBasePointer()
void VP1HelperClassBase::setSystemBasePointer |
( |
IVP1System * |
sys | ) |
|
|
inherited |
◆ setupCollWidgetInScrollArea()
void VP1Controller::setupCollWidgetInScrollArea |
( |
QScrollArea * |
scrollarea, |
|
|
VP1CollectionWidget * |
collWidget |
|
) |
| |
|
protectedinherited |
Definition at line 255 of file VP1Controller.cxx.
257 if (!scrollarea || !collWidget) {
258 message(
"ERROR: NULL scrollarea or collWidget");
261 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
262 sizePolicy.setHorizontalStretch(0);
263 sizePolicy.setVerticalStretch(scrollarea->sizePolicy().verticalStretch());
264 sizePolicy.setHeightForWidth(scrollarea->sizePolicy().hasHeightForWidth());
265 scrollarea->setSizePolicy(sizePolicy);
267 collWidget->setContentsMargins(0,0,0,0);
268 if (!collWidget->children().isEmpty()&&collWidget->children().at(0)->isWidgetType()) {
269 static_cast<QWidget*
>(collWidget->children().at(0))->setContentsMargins(0,0,0,0);
271 scrollarea->setContentsMargins(0,0,0,0);
273 scrollarea->setWidgetResizable(
true);
274 scrollarea->setFrameShape(QFrame::NoFrame);
275 scrollarea->setFrameShadow(QFrame::Plain);
276 collWidget->setParent(scrollarea);
277 scrollarea->setWidget(collWidget);
278 scrollarea->viewport()->setContentsMargins(0,0,0,0);
279 scrollarea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
280 collWidget->setObjectName(objectName()+
"_CollWidget");
281 scrollarea->setObjectName(objectName()+
"_CollWidgetScrollArea");
◆ setZoomToVolumeOnClick()
void GeoSysController::setZoomToVolumeOnClick |
( |
bool |
b | ) |
|
◆ showVolumeOutLines()
bool GeoSysController::showVolumeOutLines |
( |
| ) |
const |
◆ showVolumeOutLinesChanged
void GeoSysController::showVolumeOutLinesChanged |
( |
bool |
| ) |
|
|
signal |
◆ str() [1/30]
◆ str() [2/30]
static QString VP1String::str |
( |
const bool |
b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53 {
return b?
"True":
"False"; }
◆ str() [3/30]
static QString VP1String::str |
( |
const char * |
c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
static QString VP1String::str |
( |
const double & |
d | ) |
|
|
inlinestaticinherited |
◆ str() [5/30]
static QString VP1String::str |
( |
const float & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [6/30]
◆ str() [7/30]
QString VP1String::str |
( |
const QColor & |
c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
32 return c.isValid() ?
c.name() :
"Invalid";
◆ str() [8/30]
template<class T >
static QString VP1String::str |
( |
const QFlags< T > & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [9/30]
template<class T >
static QString VP1String::str |
( |
const QList< T > & |
t | ) |
|
|
inlinestaticinherited |
◆ str() [10/30]
static QString VP1String::str |
( |
const QString & |
s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
QString VP1String::str |
( |
const SbColor & |
c | ) |
|
|
staticinherited |
◆ str() [12/30]
QString VP1String::str |
( |
const SbVec2d & |
v | ) |
|
|
staticinherited |
◆ str() [13/30]
QString VP1String::str |
( |
const SbVec2f & |
v | ) |
|
|
staticinherited |
◆ str() [14/30]
QString VP1String::str |
( |
const SbVec2s & |
v | ) |
|
|
staticinherited |
◆ str() [15/30]
QString VP1String::str |
( |
const SbVec3d & |
v | ) |
|
|
staticinherited |
◆ str() [16/30]
QString VP1String::str |
( |
const SbVec3f & |
v | ) |
|
|
staticinherited |
◆ str() [17/30]
QString VP1String::str |
( |
const SbVec3s & |
v | ) |
|
|
staticinherited |
◆ str() [18/30]
QString VP1String::str |
( |
const SbVec4d & |
v | ) |
|
|
staticinherited |
◆ str() [19/30]
QString VP1String::str |
( |
const SbVec4f & |
v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T >
static QString VP1String::str |
( |
const T * |
t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87 {
return str(
static_cast<const void*
>(
t)); }
◆ str() [21/30]
QString VP1String::str |
( |
const void * |
p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
54 return QString (
s.str().c_str());
◆ str() [22/30]
◆ str() [23/30]
static QString VP1String::str |
( |
int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [24/30]
static QString VP1String::str |
( |
long |
n | ) |
|
|
inlinestaticinherited |
◆ str() [25/30]
static QString VP1String::str |
( |
qlonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [26/30]
static QString VP1String::str |
( |
qulonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [27/30]
static QString VP1String::str |
( |
short int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [28/30]
static QString VP1String::str |
( |
uint |
n | ) |
|
|
inlinestaticinherited |
◆ str() [29/30]
static QString VP1String::str |
( |
ulong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [30/30]
static QString VP1String::str |
( |
unsigned short int |
n | ) |
|
|
inlinestaticinherited |
◆ subSystemCheckBox()
◆ systemBase()
IVP1System* VP1HelperClassBase::systemBase |
( |
| ) |
const |
|
inlineinherited |
◆ testForChanges
void VP1Controller::testForChanges |
( |
| ) |
|
|
inlineprotectedslotinherited |
◆ toggleDialogState
void VP1Controller::toggleDialogState |
( |
QObject * |
widget = 0 | ) |
|
|
slotinherited |
Definition at line 194 of file VP1Controller.cxx.
196 Imp::DialogInfo * di(0);
198 if (di2->launchButton==sender() || (widget && di2->dialogWidget==widget)) {
205 message(
"ERROR: toggleDialogState() triggered with unrecognised sender() ="
206 +QString(sender()?sender()->objectName():
"NULL"));
210 bool oldvis = di->dialogWidget->isVisible();
212 if (oldvis&&di->dialogWidget->windowState()==Qt::WindowMinimized) {
213 di->dialogWidget->setWindowState(Qt::WindowNoState);
215 di->dialogWidget->setVisible(!oldvis);
216 if (!oldvis && di->neverShown) {
217 di->neverShown =
false;
226 if (di->launchButton->isCheckable() && oldvis){
227 di->launchButton->setChecked(
false);
◆ toString() [1/4]
QString VP1Controller::toString |
( |
const bool & |
par | ) |
|
|
staticprotectedinherited |
◆ toString() [2/4]
◆ toString() [3/4]
template<class T >
QString VP1Controller::toString |
( |
const T & |
par | ) |
|
|
staticprotectedinherited |
◆ toString() [4/4]
QString VP1Controller::toString |
( |
SbColor4f |
p | ) |
|
|
staticprotectedinherited |
◆ transparency()
float GeoSysController::transparency |
( |
| ) |
const |
◆ transparencyChanged
void GeoSysController::transparencyChanged |
( |
float |
| ) |
|
|
signal |
◆ updatePickStyle
void GeoSysController::updatePickStyle |
( |
| ) |
|
|
privateslot |
◆ verbose()
static bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ volumeResetRequested
void GeoSysController::volumeResetRequested |
( |
VolumeHandle * |
| ) |
|
|
signal |
◆ volumeStateChangeRequested
◆ volumeTreeBrowser()
◆ warnUndeletedInstances()
void VP1HelperClassBase::warnUndeletedInstances |
( |
| ) |
|
|
staticinherited |
Definition at line 183 of file VP1HelperClassBase.cxx.
185 if (vp1helperclassbase_instanceMap.empty())
187 std::cout <<
"WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<
" undeleted helper class instances:"<<std::endl;
190 for (
it = vp1helperclassbase_instanceMap.begin();
it!=
itE;++
it) {
191 std::cout <<
" ==> "<<
it->first<<
": "<<
it->first->m_helpername.toStdString()
192 << (
it->second.isEmpty()?QString(
""):
" (in system "+
it->
second+
")").toStdString()<<std::endl;
◆ zappedVolumeListModel()
◆ zoomToVolumeOnClick()
bool GeoSysController::zoomToVolumeOnClick |
( |
| ) |
const |
◆ m_customTourEditor
◆ m_d
Imp* GeoSysController::m_d |
|
private |
◆ m_helpername
QString VP1HelperClassBase::m_helpername |
|
privateinherited |
◆ m_initVarsMode
bool VP1Controller::m_initVarsMode |
|
privateinherited |
◆ m_system
◆ s_vp1verbose
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
QButtonGroup * defineRadioButtonGroup(QRadioButton *rb0, QRadioButton *rb1, QRadioButton *rb2=0, QRadioButton *rb3=0, QRadioButton *rb4=0, QRadioButton *rb5=0, QRadioButton *rb6=0, QRadioButton *rb7=0, QRadioButton *rb8=0, QRadioButton *rb9=0)
const char * addUpdateSlot(const char *slot)
void autoExpandByVolumeOrMaterialName(bool, QString)
Ui::GeoSysSettingsInteractionsForm ui_int
const char * lastUpdateSlot
void dummyUpdateTrigger()
VP1Controller(IVP1System *sys, const QString &classname)
void emit_autoIconifyByVolumeOrMaterialName()
ZappedVolumeListModel * zappedVolumeListModel
void autoIconifyByVolumeOrMaterialName(bool, QString)
static bool hasTileGeometry()
void loadMaterialsFromFile(QString)
VolumeHandle * lastSelectedVolHandle
void messageVerbose(const QString &) const
static bool hasLArGeometry()
SoMaterial * fallBackMaterial() const
static const bool s_vp1verbose
void initDialog(T &theUI, QPushButton *launchbutton, QAbstractButton *enabledButton=0)
void emit_actionOnAllNonStandardVolumes()
VP1CollectionWidget * collWidget
virtual void actualSaveSettings(VP1Serialise &) const =0
Ui::GeoSysSettingsDisplayForm ui_disp
void emit_autoAdaptMuonNSW()
static QString str(const QString &s)
void messageDebug(const QString &) const
void connectToLastUpdateSlot(QObject *sender, const char *signal)
QString lastLoadMaterialsFile
bool initVarsMode() const
void emit_adaptMuonChambersToEventData()
void saveMaterialsToFile(QString, bool)
Ui::GeoSysSettingsIconisedVolumesForm ui_iconisedvols
static const char * prefix_msg()
static QString defaultFileSelectDirectory()
void possibleChange_transparency()
Ui::GeoSysSettingsTreeBrowserForm ui_treebrowser
SoMaterial * fallBackMaterial
void autoAdaptPixelsOrSCT(bool, bool, bool, bool, bool, bool)
Ui::GeoSysSettingsMuonChamberForm ui_muon
std::map< VP1GeoFlags::SubSystemFlag, QCheckBox * > subSysCheckBoxMap
static bool hasSCTGeometry()
void possibleChange_labelPosOffset()
const QString & name() const
GeoSysController * theclass
void emit_autoExpandByVolumeOrMaterialName()
void saveMaterialsRequested()
void possibleChange_labels()
static bool hasTRTGeometry()
Ui::GeometrySystemControllerForm ui
static QColor sbcol2qcol(const SbColor &)
IVP1System * systemBase() const
static bool hasInDetServiceMaterialGeometry()
static const char * prefix_debug()
QList< DialogInfo * > dialogs
virtual void actualRestoreSettings(VP1Deserialise &)=0
@ MuonBarrelStationMiddle
static const char * prefix_verbose()
int currentSettingsVersion() const
const double mb
1mb to cm2
void autoAdaptMuonNSW(bool, bool, bool, bool, bool, bool)
QString lastSaveMaterialsFile
void collWidgetContentChanged()
constexpr std::enable_if_t< is_bitmask_v< E >, E & > reset(E &lhs, E rhs)
Convenience function to clear bits in a class enum bitmask.
void emit_autoAdaptPixelsOrSCT()
void enabledButtonStateChanged()
void message(const QString &) const
void resetSubSystems(VP1GeoFlags::SubSystemFlags)
int last_labels
needed for POSSIBLECHANGE_IMP macro.
static bool hasMuonNSWGeometry()
static bool hasPixelGeometry()
void actionOnAllNonStandardVolumes(bool)
void setLastSelectedVolume(VolumeHandle *)
Ui::GeoSysSettingsMiscForm ui_misc
void toggleDialogState(QObject *widget=0)
void emit_resetSubSystems()
Reset to the sub-system top volume.
void possibleChange_showVolumeOutLines()
void adaptMuonChambersToEventData()
static bool hasMuonGeometry()
void possibleChange_muonChamberAdaptionStyle()
void message(const QString &) const
static VP1CustomTourEditor * m_customTourEditor
static bool hasGeoModelExperiment()
void loadMaterialsRequested()
virtual int currentSettingsVersion() const =0