JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RGLineAttrSelect.hh>
Public Member Functions | |
RGLineAttrSelect (TGWindow *p, TAttLine att=TAttLine(1, 1, 1), UInt_t opt=rgLASVerticalLayout, Int_t w=3, Int_t sep=4) | |
virtual | ~RGLineAttrSelect () |
virtual void | MapSubwindows () |
virtual void | SetState (const Bool_t b=kTRUE) |
Color_t | GetLineColor () const |
Pixel_t | GetLineColorPixel () const |
Width_t | GetLineWidth () const |
Style_t | GetLineStyle () const |
TAttLine | GetLineAttr () const |
void | SetLineColor (const Color_t c, const Bool_t emit=kTRUE) |
void | SetLineColorPixel (const Pixel_t c, const Bool_t emit=kTRUE) |
void | SetLineWidth (const Width_t w, const Bool_t emit=kTRUE) |
void | SetLineStyle (const Style_t s, const Bool_t emit=kTRUE) |
RGColorNumberSelect * | GetColorWidget () const |
TGLineWidthComboBox * | GetWidthWidget () const |
TGLineStyleComboBox * | GetStyleWidget () const |
virtual void | LineColorChanged (Color_t c) |
virtual void | LineWidthChanged (Width_t w) |
virtual void | LineStyleChanged (Style_t s) |
ClassDef (RGLineAttrSelect, 0) | |
Protected Attributes | |
Int_t | min_width |
Minimum width. | |
RGColorNumberSelect * | w_color |
Line color widget pointer. | |
TGLineWidthComboBox * | w_width |
Line width widget pointer. | |
TGLineStyleComboBox * | w_style |
Line style widget pointer. | |
Private Member Functions | |
GObject (RGLineAttrSelect) | |
RGLineAttrSelect (const RGLineAttrSelect &original) | |
class RGLineAttrSelect
Widget for line attributes selection: color, width and style.
Options:
RGLineAttrSelect::RGLineAttrSelect | ( | TGWindow * | p, |
TAttLine | att = TAttLine(1,1,1) , |
||
UInt_t | opt = rgLASVerticalLayout , |
||
Int_t | w = 3 , |
||
Int_t | sep = 4 |
||
) |
|
private |
Copy constructor, not implemented.
original | object to copy |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
|
virtual |
Set the widget state (active/inactive)
b | state |
References RGColorNumberSelect::SetState(), w_color, w_style, and w_width.
Referenced by RGHistoPlotAttrSelect::SetState().
|
inline |
Get selected line color number.
References RGColorNumberSelect::GetColorNumber(), and w_color.
Referenced by GetLineAttr(), and GetLineColorPixel().
|
inline |
Get selected line color code.
References GetLineColor().
|
inline |
|
inline |
|
inline |
Get selected line attributes.
References GetLineColor(), GetLineStyle(), and GetLineWidth().
Referenced by RGHistoPlotAttrSelect::GetLineAttr().
void RGLineAttrSelect::SetLineColor | ( | const Color_t | c, |
const Bool_t | emit = kTRUE |
||
) |
Select a new line color from its color number.
c | color number |
emit | flag if signal must be emitted |
References RGColorNumberSelect::SetColorNumber(), and w_color.
Referenced by RGHistoPlotAttrSelect::SetLineAttr().
void RGLineAttrSelect::SetLineColorPixel | ( | const Pixel_t | c, |
const Bool_t | emit = kTRUE |
||
) |
Select a new line color from its color code.
c | color code |
emit | flag if signal must be emitted |
References RGColorNumberSelect::SetColorPixel(), and w_color.
void RGLineAttrSelect::SetLineWidth | ( | const Width_t | w, |
const Bool_t | emit = kTRUE |
||
) |
Select a new line width.
w | line width |
emit | flag if signal must be emitted |
References w_width.
Referenced by RGHistoPlotAttrSelect::SetLineAttr().
void RGLineAttrSelect::SetLineStyle | ( | const Style_t | s, |
const Bool_t | emit = kTRUE |
||
) |
Select a new line style from its number.
s | line number |
emit | flag if signal must be emitted |
References w_style.
Referenced by RGHistoPlotAttrSelect::SetLineAttr().
|
inline |
Get line color selection widget pointer.
References w_color.
|
inline |
Get line width selection widget pointer.
References w_width.
|
inline |
Get line style selection widget pointer.
References w_style.
|
inlinevirtual |
Signal sent when line color is changed.
c | color number |
|
inlinevirtual |
Signal sent when line width is changed.
w | line width |
|
inlinevirtual |
Signal sent when line style is changed.
s | style number |
RGLineAttrSelect::ClassDef | ( | RGLineAttrSelect | , |
0 | |||
) |
For ROOT dictionary.