|
| JGeoVolume (const char *name, const TGeoShape *shape, const TGeoMedium *med=0) |
| Constructor.
|
|
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
| Mouse events.
|
|
void | AddText (const std::string &text) |
| Add text to buffer.
|
|
Definition at line 41 of file JDrawModule3D.cc.
◆ JGeoVolume()
JGeoVolume::JGeoVolume |
( |
const char * | name, |
|
|
const TGeoShape * | shape, |
|
|
const TGeoMedium * | med = 0 ) |
|
inline |
Constructor.
- Parameters
-
name | name |
shape | shape |
med | medium |
Definition at line 52 of file JDrawModule3D.cc.
54 :
55 TGeoVolume(name, shape, med)
56 {}
◆ ExecuteEvent()
virtual void JGeoVolume::ExecuteEvent |
( |
Int_t | event, |
|
|
Int_t | px, |
|
|
Int_t | py ) |
|
inlinevirtual |
Mouse events.
- Parameters
-
event | event |
px | x-position of mouse |
py | y-position of mouse |
Definition at line 66 of file JDrawModule3D.cc.
67 {
68 if (event == kMouseEnter) {
69
70 for (std::vector<std::string>::const_iterator i =
buffer.begin(); i !=
buffer.end(); ++i)
71 p1->AddText(i->c_str());
72
75
76 } else if (event == kMouseLeave) {
77
81
82 } else {
83
84 TGeoVolume::ExecuteEvent(event, px, py);
85 }
86 }
TCanvas * c1
Global variables to handle mouse events.
std::vector< std::string > buffer
◆ AddText()
void JGeoVolume::AddText |
( |
const std::string & | text | ) |
|
|
inline |
◆ buffer
The documentation for this class was generated from the following file: