Definition at line 18 of file TBoxInteractive.h.
Public Member Functions | |
| TBoxInteractive (Bool_t bx=kTRUE, Double_t x1=0., Double_t y1=0., Double_t x2=0., Double_t y2=0.) | |
| Constructor. | |
| void | ApplyChanges (TVirtualPad &parent) |
| Apply pixel coordinates changes back to box coordinates. | |
| void | CalcPixelCoord (const TVirtualPad &parent, Double_t x1, Double_t y1, Double_t x2, Double_t y2) |
| Calculate pixel coordinates. | |
| char | GetGuideChar () const |
| Return character for selecting guide action. | |
| TObject * | GetObject () const |
| Bool_t | IsOpaque (const TVirtualPad &parent) const |
| Return selected opaque mode. | |
| Bool_t | IsResizing () const |
| Return true if doing resize. | |
| virtual void | PaintOutline (TVirtualPad &parent) |
| Paint object outline. | |
| Bool_t | ProcessMouseMove (const TVirtualPad &parent, Int_t px, Int_t py, Bool_t canX=kTRUE, Bool_t canY=kTRUE, Double_t aspectRatio=0.) |
| Process change of moue position during dragging. | |
| Bool_t | SelectCorner (Int_t px, Int_t py, Bool_t canX=kTRUE, Bool_t canY=kTRUE) |
| Select corner or side for the inetarctive action. | |
| Bool_t | SelectDiamondCorner (Int_t px, Int_t py, Bool_t testInside=kTRUE) |
| Select diamond corner - or inside area Returns true if any mode was selected Can be reused for diamond and ellipse. | |
| void | SetCursor (TVirtualPad &parent, Bool_t is_down) const |
| Set cursor for current mode. | |
| void | SetObject (TObject *obj) |
Public Attributes | |
| Int_t | dpx1 = 0 |
| Int_t | dpy2 = 0 |
| Bool_t | isBox = kTRUE |
| Double_t | newX1 = 0. |
| Double_t | newX2 = 0. |
| Double_t | newY1 = 0. |
| Double_t | newY2 = 0. |
| Double_t | oldX1 = 0. |
| Double_t | oldX2 = 0. |
| Double_t | oldY1 = 0. |
| Double_t | oldY2 = 0. |
| Int_t | px1 = 0 |
| Int_t | px2 = 0 |
| Int_t | py1 = 0 |
| Int_t | py2 = 0 |
Protected Types | |
| enum | EMode { pNone = 0 , pA , pB , pC , pD , pTop , pL , pR , pBot , pINSIDE } |
Protected Attributes | |
| enum TBoxInteractive::EMode | fMode = pNone |
| TObject * | fObject = nullptr |
#include </github/home/ROOT-CI/src/graf2d/graf/src/TBoxInteractive.h>
|
protected |
| Enumerator | |
|---|---|
| pNone | |
| pA | |
| pB | |
| pC | |
| pD | |
| pTop | |
| pL | |
| pR | |
| pBot | |
| pINSIDE | |
Definition at line 22 of file TBoxInteractive.h.
| TBoxInteractive::TBoxInteractive | ( | Bool_t | bx = kTRUE, |
| Double_t | x1 = 0., | ||
| Double_t | y1 = 0., | ||
| Double_t | x2 = 0., | ||
| Double_t | y2 = 0. ) |
Constructor.
Definition at line 25 of file TBoxInteractive.cxx.
| void TBoxInteractive::ApplyChanges | ( | TVirtualPad & | parent | ) |
Apply pixel coordinates changes back to box coordinates.
Definition at line 263 of file TBoxInteractive.cxx.
| void TBoxInteractive::CalcPixelCoord | ( | const TVirtualPad & | parent, |
| Double_t | x1, | ||
| Double_t | y1, | ||
| Double_t | x2, | ||
| Double_t | y2 ) |
Calculate pixel coordinates.
Definition at line 37 of file TBoxInteractive.cxx.
| char TBoxInteractive::GetGuideChar | ( | ) | const |
Return character for selecting guide action.
Definition at line 306 of file TBoxInteractive.cxx.
|
inlineinherited |
Definition at line 82 of file TVirtualPad.h.
| Bool_t TBoxInteractive::IsOpaque | ( | const TVirtualPad & | parent | ) | const |
Return selected opaque mode.
Definition at line 124 of file TBoxInteractive.cxx.
| Bool_t TBoxInteractive::IsResizing | ( | ) | const |
Return true if doing resize.
Definition at line 116 of file TBoxInteractive.cxx.
|
virtual |
Paint object outline.
Reimplemented in TDiamondInteractive, and TEllipseInteractive.
Definition at line 254 of file TBoxInteractive.cxx.
| Bool_t TBoxInteractive::ProcessMouseMove | ( | const TVirtualPad & | parent, |
| Int_t | px, | ||
| Int_t | py, | ||
| Bool_t | canX = kTRUE, | ||
| Bool_t | canY = kTRUE, | ||
| Double_t | aspectRatio = 0. ) |
Process change of moue position during dragging.
Definition at line 132 of file TBoxInteractive.cxx.
| Bool_t TBoxInteractive::SelectCorner | ( | Int_t | px, |
| Int_t | py, | ||
| Bool_t | canX = kTRUE, | ||
| Bool_t | canY = kTRUE ) |
Select corner or side for the inetarctive action.
Definition at line 52 of file TBoxInteractive.cxx.
Select diamond corner - or inside area Returns true if any mode was selected Can be reused for diamond and ellipse.
Definition at line 87 of file TBoxInteractive.cxx.
| void TBoxInteractive::SetCursor | ( | TVirtualPad & | parent, |
| Bool_t | is_down ) const |
Set cursor for current mode.
Definition at line 287 of file TBoxInteractive.cxx.
|
inlineinherited |
Definition at line 81 of file TVirtualPad.h.
| Int_t TBoxInteractive::dpx1 = 0 |
Definition at line 26 of file TBoxInteractive.h.
| Int_t TBoxInteractive::dpy2 = 0 |
Definition at line 26 of file TBoxInteractive.h.
|
protected |
|
protectedinherited |
Definition at line 77 of file TVirtualPad.h.
Definition at line 25 of file TBoxInteractive.h.
| Double_t TBoxInteractive::newX1 = 0. |
Definition at line 28 of file TBoxInteractive.h.
| Double_t TBoxInteractive::newX2 = 0. |
Definition at line 28 of file TBoxInteractive.h.
| Double_t TBoxInteractive::newY1 = 0. |
Definition at line 28 of file TBoxInteractive.h.
| Double_t TBoxInteractive::newY2 = 0. |
Definition at line 28 of file TBoxInteractive.h.
| Double_t TBoxInteractive::oldX1 = 0. |
Definition at line 27 of file TBoxInteractive.h.
| Double_t TBoxInteractive::oldX2 = 0. |
Definition at line 27 of file TBoxInteractive.h.
| Double_t TBoxInteractive::oldY1 = 0. |
Definition at line 27 of file TBoxInteractive.h.
| Double_t TBoxInteractive::oldY2 = 0. |
Definition at line 27 of file TBoxInteractive.h.
| Int_t TBoxInteractive::px1 = 0 |
Definition at line 26 of file TBoxInteractive.h.
| Int_t TBoxInteractive::px2 = 0 |
Definition at line 26 of file TBoxInteractive.h.
| Int_t TBoxInteractive::py1 = 0 |
Definition at line 26 of file TBoxInteractive.h.
| Int_t TBoxInteractive::py2 = 0 |
Definition at line 26 of file TBoxInteractive.h.