JG ROOT Tools libraries  version 5.0 - august 2014
RGFillAttrSelect Class Reference

#include <RGFillAttrSelect.hh>

Inheritance diagram for RGFillAttrSelect:

Public Member Functions

 RGFillAttrSelect (TGWindow *p, TAttFill att=TAttFill(1, 0), UInt_t opt=rgFASVerticalLayout, Int_t wc=3, Int_t ws=5, Int_t sep=4)
 
virtual ~RGFillAttrSelect ()
 
virtual void MapSubwindows ()
 
virtual void SetState (const Bool_t b=kTRUE)
 
Color_t GetFillColor () const
 
Pixel_t GetFillColorPixel () const
 
Style_t GetFillStyle () const
 
TAttFill GetFillAttr () const
 
void SetFillColor (const Color_t c, const Bool_t emit=kTRUE)
 
void SetFillColorPixel (const Pixel_t c, const Bool_t emit=kTRUE)
 
void SetFillStyle (const Style_t s, const Bool_t emit=kTRUE)
 
RGColorNumberSelectGetColorWidget () const
 
RGFillStyleSelectGetStyleWidget () const
 
virtual void FillColorChanged (Color_t c)
 
virtual void FillStyleChanged (Style_t s)
 
 ClassDef (RGFillAttrSelect, 0)
 

Protected Attributes

RGColorNumberSelectw_color
 Fill color widget.
 
RGFillStyleSelectw_style
 Fill style.
 

Private Member Functions

 GObject (RGFillAttrSelect)
 
 RGFillAttrSelect (const RGFillAttrSelect &original)
 

Detailed Description

class RGFillAttrSelect

Widget for filling attributes selection; color and style.

RGFillAttrSelect_h.gif
RGFillAttrSelect_v.gif

Options:

  • rgLASVerticalLayout: vertical layout
  • rgLASHorizontalLayout: horizontal layout
  • rgLASExpandColorNumber: for horizontal layout the color number expands (default is filling style)

Constructor & Destructor Documentation

RGFillAttrSelect::RGFillAttrSelect ( TGWindow *  p,
TAttFill  att = TAttFill(1,0),
UInt_t  opt = rgFASVerticalLayout,
Int_t  wc = 3,
Int_t  ws = 5,
Int_t  sep = 4 
)

Constructor.

Parameters
pparent widget
attinitial attributes
optoptions
wccolor numerical field width (number of digits)
wsstyle numerical field width (number of digits)
sepsub-widgets separation width

References w_color, and w_style.

RGFillAttrSelect::RGFillAttrSelect ( const RGFillAttrSelect original)
private

Copy constructor, not implemented.

Parameters
originalobject to copy
RGFillAttrSelect::~RGFillAttrSelect ( )
virtual

Destructor.

Member Function Documentation

RGFillAttrSelect::GObject ( RGFillAttrSelect  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
void RGFillAttrSelect::MapSubwindows ( )
virtual

Overload of TGFrame function to set a minimum size to widget elements.

References w_color.

void RGFillAttrSelect::SetState ( const Bool_t  b = kTRUE)
virtual

Set the widget state (active/inactive)

Parameters
bstate

References RGColorNumberSelect::SetState(), RGFillStyleSelect::SetState(), w_color, and w_style.

Referenced by RGHistoPlotAttrSelect::SetState().

Color_t RGFillAttrSelect::GetFillColor ( ) const
inline

Get the selected fill color number.

References RGColorNumberSelect::GetColorNumber(), and w_color.

Referenced by GetFillAttr(), and GetFillColorPixel().

Pixel_t RGFillAttrSelect::GetFillColorPixel ( ) const
inline

Get the selected fill color code.

References GetFillColor().

Style_t RGFillAttrSelect::GetFillStyle ( ) const
inline

Get the selected fill style number.

References RGFillStyleSelect::GetStyleNumber(), and w_style.

Referenced by GetFillAttr().

TAttFill RGFillAttrSelect::GetFillAttr ( ) const
inline

Get the selected fill attributes.

References GetFillColor(), and GetFillStyle().

Referenced by RGHistoPlotAttrSelect::GetFillAttr().

void RGFillAttrSelect::SetFillColor ( const Color_t  c,
const Bool_t  emit = kTRUE 
)

Select a new filling color from its color number.

Parameters
ccolor number
emitflag if signal must be emitted

References RGColorNumberSelect::SetColorNumber(), and w_color.

Referenced by RGHistoPlotAttrSelect::SetFillAttr().

void RGFillAttrSelect::SetFillColorPixel ( const Pixel_t  c,
const Bool_t  emit = kTRUE 
)

Select a new filling color from its color code.

Parameters
ccolor code
emitflag if signal must be emitted

References RGColorNumberSelect::SetColorPixel(), and w_color.

void RGFillAttrSelect::SetFillStyle ( const Style_t  s,
const Bool_t  emit = kTRUE 
)

Select a new filling style from its number.

Parameters
sstyle number
emitflag if signal must be emitted

References RGFillStyleSelect::SetStyleNumber(), and w_style.

Referenced by RGHistoPlotAttrSelect::SetFillAttr().

RGColorNumberSelect * RGFillAttrSelect::GetColorWidget ( ) const
inline

Get color selection widget pointer.

References w_color.

RGFillStyleSelect * RGFillAttrSelect::GetStyleWidget ( ) const
inline

Get style selection widget pointer.

References w_style.

void RGFillAttrSelect::FillColorChanged ( Color_t  c)
inlinevirtual

Signal sent when fill color is changed.

Parameters
ccolor number
void RGFillAttrSelect::FillStyleChanged ( Style_t  s)
inlinevirtual

Signal sent when fill style is changed.

Parameters
sstyle number
RGFillAttrSelect::ClassDef ( RGFillAttrSelect  ,
 
)

For ROOT dictionary.


The documentation for this class was generated from the following files: