Definition at line 39 of file PhiSectionWidget.cxx.
◆ addMenuEntriesForSetNPhi()
| void PhiSectionWidget::Imp::addMenuEntriesForSetNPhi |
( |
| ) |
|
Definition at line 302 of file PhiSectionWidget.cxx.
303{
305 return;
308 delete setNPhiAct;
309 }
311
314 a->setData(nSectors);
316 }
320 }
321}
◆ approximateSectorStatusFromRanges()
| void PhiSectionWidget::Imp::approximateSectorStatusFromRanges |
( |
const QList< VP1Interval > & | oldEnabledRanges, |
|
|
QVector< bool > & | target ) |
Definition at line 791 of file PhiSectionWidget.cxx.
793{
794 if (oldEnabledRanges.isEmpty()) {
796 return;
797 }
798 if (oldEnabledRanges.count()==1&&oldEnabledRanges.first().length()>=2*
M_PI*(1.0-1.0e-10)) {
800 return;
801 }
802 const unsigned n =
target.size();
804 const double dphi = (2*
M_PI)/n;
805 const double epsilon(dphi*1.0e-9);
806 for (
unsigned i = 0;
i <
n; ++
i) {
807 VP1Interval
phirange(dphi*i+epsilon,dphi*(i+1)-epsilon);
808 for(const VP1Interval& oldrange : oldEnabledRanges) {
811 break;
812 }
813 }
814 }
815}
◆ checkForChanges()
| void PhiSectionWidget::Imp::checkForChanges |
( |
| ) |
|
Definition at line 650 of file PhiSectionWidget.cxx.
651{
653 theclass->messageDebug(
"checkForChanges()");
654 }
655
656
658
661 return;
662 }
665
668 for(
int i=0;
i<
r.count();++
i)
669 s+=
r.at(i).toString()+(
i==
r.count()-1?
"":
", ");
670 theclass->messageVerbose(
"Emitting enabledPhiRangesChanged("
671 +
theclass->enabledRangesToString()+
")");
672 }
673 emit
theclass->enabledPhiRangesChanged(
r);
674}
◆ enabledPhiRangesNoCache()
| QList< VP1Interval > PhiSectionWidget::Imp::enabledPhiRangesNoCache |
( |
const QVector< bool > & | secstatus, |
|
|
bool & | allOn, |
|
|
bool & | allOff ) const |
Definition at line 510 of file PhiSectionWidget.cxx.
511{
513 theclass->messageVerbose(
"enabledPhiRangesNoCache()");
514 }
515 QList<VP1Interval>
l;
516 allOn = true;
517 allOff = true;
518
519 const unsigned int n = secstatus.count();
520
521 const double dphi = (2*
M_PI)/n;
523 qDebug() <<
"n: " <<
n <<
" - dphi:" << dphi;
524 }
525
528
529 for (
unsigned i = 0;
i <
n; ++
i) {
530 const bool status = secstatus[
i];
531 if (status) {
532 allOff = false;
533 }
534 else {
535 allOn = false;
536 }
537 if (status!=open) {
538 if (!open) {
541 } else {
542 l << VP1Interval(tmp,i*dphi);
544 }
545 }
546 }
547 if (open)
548 l << VP1Interval(tmp,(2*
M_PI));
550
552 theclass->messageDebug(
"exiting enabledPhiRangesNoCache()...");
553 }
554
556}
l
Printing final latex table to .tex output file.
◆ ensureMenuInit()
| void PhiSectionWidget::Imp::ensureMenuInit |
( |
| ) |
|
◆ updateColors()
| void PhiSectionWidget::Imp::updateColors |
( |
| ) |
|
◆ wrap()
| void PhiSectionWidget::Imp::wrap |
( |
QList< VP1Interval > & | l | ) |
|
|
static |
Definition at line 500 of file PhiSectionWidget.cxx.
501{
502 if (
l.count()<2||
l.front().lower()!=0.0||
l.back().upper()!=(2*
M_PI))
503 return;
504 l.front().setLower(
l.back().lower()-(2*
M_PI));
506}
◆ allowCustomNSectors
| bool PhiSectionWidget::Imp::allowCustomNSectors |
◆ allowedNSectors
| QList<int> PhiSectionWidget::Imp::allowedNSectors |
◆ brush_off
| QBrush PhiSectionWidget::Imp::brush_off |
◆ brush_on
| QBrush PhiSectionWidget::Imp::brush_on |
◆ cachedAllOff
| bool PhiSectionWidget::Imp::cachedAllOff |
◆ cachedAllOn
| bool PhiSectionWidget::Imp::cachedAllOn |
◆ cachedRanges
◆ cacheValid
| bool PhiSectionWidget::Imp::cacheValid |
◆ dragStartPosition
| QPoint PhiSectionWidget::Imp::dragStartPosition |
◆ item2sector
| std::map<QGraphicsEllipseItem*,int> PhiSectionWidget::Imp::item2sector |
◆ pen_off
| QPen PhiSectionWidget::Imp::pen_off |
◆ pen_on
| QPen PhiSectionWidget::Imp::pen_on |
◆ popup_copyAction
| QAction* PhiSectionWidget::Imp::popup_copyAction |
◆ popup_disableAllAction
| QAction* PhiSectionWidget::Imp::popup_disableAllAction |
◆ popup_enableAllAction
| QAction* PhiSectionWidget::Imp::popup_enableAllAction |
◆ popup_invertAction
| QAction* PhiSectionWidget::Imp::popup_invertAction |
◆ popup_menu
| QMenu* PhiSectionWidget::Imp::popup_menu |
◆ popup_pasteAction
| QAction* PhiSectionWidget::Imp::popup_pasteAction |
◆ popup_setCustomNPhi
| QAction* PhiSectionWidget::Imp::popup_setCustomNPhi |
◆ popup_setNPhiSubMenu
| QMenu* PhiSectionWidget::Imp::popup_setNPhiSubMenu |
◆ popuplist_setNPhi
| QList<QAction*> PhiSectionWidget::Imp::popuplist_setNPhi |
◆ sectorstatus
| QVector<bool> PhiSectionWidget::Imp::sectorstatus |
◆ theclass
The documentation for this class was generated from the following file: