#include <FW3DViewDistanceMeasureTool.h>
◆ EPickAction
◆ FW3DViewDistanceMeasureTool()
FW3DViewDistanceMeasureTool::FW3DViewDistanceMeasureTool |
( |
| ) |
|
◆ ~FW3DViewDistanceMeasureTool()
virtual FW3DViewDistanceMeasureTool::~FW3DViewDistanceMeasureTool |
( |
| ) |
|
|
inlinevirtual |
◆ buildGUI()
TGCompositeFrame * FW3DViewDistanceMeasureTool::buildGUI |
( |
TGCompositeFrame * |
p | ) |
|
Definition at line 70 of file FW3DViewDistanceMeasureTool.cc.
71 TGVerticalFrame* vf =
new TGVerticalFrame(
p);
74 TGHorizontalFrame*
hf =
new TGHorizontalFrame(vf);
75 TGLabel* lb =
new TGLabel(
hf,
"Distance: ");
82 TGHorizontalFrame*
hf =
new TGHorizontalFrame(vf);
84 m_bp1 =
new TGTextButton(
hf,
"Pick Point1");
85 m_bp1->Connect(
"Clicked()",
"FW3DViewDistanceMeasureTool",
this,
"setActionPnt1()");
86 m_bp1->SetToolTipText(
"Click on the butto to pick the first point in viewer.");
87 hf->AddFrame(
m_bp1,
new TGLayoutHints(kLHintsNormal, 0, 5, 4, 4));
90 hf->AddFrame(
m_lp1,
new TGLayoutHints(kLHintsNormal, 0, 1, 4, 4));
96 TGHorizontalFrame*
hf =
new TGHorizontalFrame(vf);
98 m_bp2 =
new TGTextButton(
hf,
"Pick Point2");
99 m_bp2->Connect(
"Clicked()",
"FW3DViewDistanceMeasureTool",
this,
"setActionPnt2()");
100 m_bp2->SetToolTipText(
"Click on the butto to pick the secoond point in viewer.");
101 hf->AddFrame(
m_bp2,
new TGLayoutHints(kLHintsExpandX, 0, 5, 4, 4));
104 hf->AddFrame(
m_lp2,
new TGLayoutHints(kLHintsNormal, 0, 1, 4, 4));
110 TGHorizontalFrame*
hf =
new TGHorizontalFrame(vf);
111 TGTextButton*
b =
new TGTextButton(
hf,
"Print distance to terminal");
112 b->Connect(
"Clicked()",
"FW3DViewDistanceMeasureTool",
this,
"Print()");
113 hf->AddFrame(
b,
new TGLayoutHints(kLHintsNormal, 0, 5, 4, 4));
References b, photonIsolationHIProducer_cfi::hf, m_bp1, m_bp2, m_ldist, m_lp1, m_lp2, m_pnt1, m_pnt2, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by FW3DViewBase::populateController().
◆ ClassDef()
◆ Print()
void FW3DViewDistanceMeasureTool::Print |
( |
void |
| ) |
const |
◆ refCurrentVertex()
TGLVector3 & FW3DViewDistanceMeasureTool::refCurrentVertex |
( |
| ) |
|
◆ resetAction()
void FW3DViewDistanceMeasureTool::resetAction |
( |
| ) |
|
Definition at line 22 of file FW3DViewDistanceMeasureTool.cc.
25 m_bp1->SetState(kButtonUp);
28 m_bp2->SetState(kButtonUp);
32 m_ldist->SetText(Form(
"%.2f",
d.Mag()));
35 TGCompositeFrame*
p = (TGCompositeFrame*)(
m_ldist->GetParent());
36 p->Resize(
p->GetDefaultSize());
39 TGCompositeFrame*
p = (TGCompositeFrame*)(
m_ldist->GetParent()->GetParent());
References ztail::d, kNone, m_action, m_bp1, m_bp2, m_ldist, m_lp1, m_lp2, m_pnt1, m_pnt2, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by FW3DViewBase::setCurrentDMTVertex().
◆ setActionPnt1()
void FW3DViewDistanceMeasureTool::setActionPnt1 |
( |
| ) |
|
◆ setActionPnt2()
void FW3DViewDistanceMeasureTool::setActionPnt2 |
( |
| ) |
|
◆ FW3DViewBase
◆ m_action
◆ m_bp1
TGTextButton* FW3DViewDistanceMeasureTool::m_bp1 |
|
private |
◆ m_bp2
TGTextButton* FW3DViewDistanceMeasureTool::m_bp2 |
|
private |
◆ m_ldist
TGLabel* FW3DViewDistanceMeasureTool::m_ldist |
|
private |
◆ m_lp1
TGLabel* FW3DViewDistanceMeasureTool::m_lp1 |
|
private |
◆ m_lp2
TGLabel* FW3DViewDistanceMeasureTool::m_lp2 |
|
private |
◆ m_pnt1
TGLVector3 FW3DViewDistanceMeasureTool::m_pnt1 |
|
protected |
◆ m_pnt2
TGLVector3 FW3DViewDistanceMeasureTool::m_pnt2 |
|
protected |