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

#include <RGMarkerAttrSelect.hh>

Inheritance diagram for RGMarkerAttrSelect:

Public Member Functions

 RGMarkerAttrSelect (TGWindow *p, TAttMarker att=TAttMarker(1, 20, 1.), UInt_t opt=rgMASVerticalLayout, Int_t wc=3, Int_t ws=4, Int_t sep=4)
 
virtual ~RGMarkerAttrSelect ()
 
virtual void MapSubwindows ()
 
virtual void SetState (const Bool_t b=kTRUE)
 
Color_t GetMarkerColor () const
 
Pixel_t GetMarkerColorPixel () const
 
Style_t GetMarkerStyle () const
 
Size_t GetMarkerSize () const
 
TAttMarker GetMarkerAttr () const
 
void SetMarkerColor (const Color_t c, const Bool_t emit=kTRUE)
 
void SetMarkerColorPixel (const Pixel_t c, const Bool_t emit=kTRUE)
 
void SetMarkerStyle (const Style_t s, const Bool_t emit=kTRUE)
 
void SetMarkerSize (const Size_t s, const Bool_t emit=kTRUE)
 
RGColorNumberSelectGetColorWidget () const
 
TGedMarkerSelect * GetStyleWidget () const
 
TGNumberEntry * GetSizeWidget () const
 
virtual void MarkerColorChanged (Color_t c)
 
virtual void MarkerStyleChanged (Style_t s)
 
virtual void MarkerSizeChanged (Size_t s)
 
virtual void MarkerSizeEntryChanged (const char *str)
 
 ClassDef (RGMarkerAttrSelect, 0)
 

Protected Attributes

RGColorNumberSelectw_color
 Marker color widget pointer.
 
TGedMarkerSelect * w_style
 Marker style widget pointer.
 
TGNumberEntry * w_size
 Marker size widget pointer.
 

Private Member Functions

 GObject (RGMarkerAttrSelect)
 
 RGMarkerAttrSelect (const RGMarkerAttrSelect &original)
 

Detailed Description

class RGMarkerAttrSelect

Widget for marker attributes selection: color style (marker type) and size.

RGMarkerAttrSelect_h.gif
RGMarkerAttrSelect_v.gif

Options:

  • rgLASVerticalLayout: vertical layout
  • rgLASHorizontalLayout: horizontal layout

Constructor & Destructor Documentation

RGMarkerAttrSelect::RGMarkerAttrSelect ( TGWindow *  p,
TAttMarker  att = TAttMarker(1,20,1.),
UInt_t  opt = rgMASVerticalLayout,
Int_t  wc = 3,
Int_t  ws = 4,
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, w_size, and w_style.

RGMarkerAttrSelect::RGMarkerAttrSelect ( const RGMarkerAttrSelect original)
private

Copy constructor, not implemented.

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

Destructor.

Member Function Documentation

RGMarkerAttrSelect::GObject ( RGMarkerAttrSelect  )
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 RGMarkerAttrSelect::MapSubwindows ( )
virtual

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

References w_color.

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

Set the widget state (active/inactive)

Parameters
bstate

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

Referenced by RGHistoPlotAttrSelect::SetState().

Color_t RGMarkerAttrSelect::GetMarkerColor ( ) const
inline

Get selected marker color number.

References RGColorNumberSelect::GetColorNumber(), and w_color.

Referenced by GetMarkerAttr(), and GetMarkerColorPixel().

Pixel_t RGMarkerAttrSelect::GetMarkerColorPixel ( ) const
inline

Get selected marker color code.

References GetMarkerColor().

Style_t RGMarkerAttrSelect::GetMarkerStyle ( ) const
inline

Get selected marker style.

References w_style.

Referenced by GetMarkerAttr().

Size_t RGMarkerAttrSelect::GetMarkerSize ( ) const
inline

Get selected marker size.

References w_size.

Referenced by GetMarkerAttr().

TAttMarker RGMarkerAttrSelect::GetMarkerAttr ( ) const
inline

Get selected marker attributes.

References GetMarkerColor(), GetMarkerSize(), and GetMarkerStyle().

Referenced by RGHistoPlotAttrSelect::GetMarkerAttr().

void RGMarkerAttrSelect::SetMarkerColor ( const Color_t  c,
const Bool_t  emit = kTRUE 
)

Set the marker color from color number.

Parameters
ccolor number
emitflag if signal must be emitted

References RGColorNumberSelect::SetColorNumber(), and w_color.

Referenced by RGHistoPlotAttrSelect::SetMarkerAttr().

void RGMarkerAttrSelect::SetMarkerColorPixel ( const Pixel_t  c,
const Bool_t  emit = kTRUE 
)

Set the marker color from color code.

Parameters
ccolor code
emitflag if signal must be emitted

References RGColorNumberSelect::SetColorPixel(), and w_color.

void RGMarkerAttrSelect::SetMarkerStyle ( const Style_t  s,
const Bool_t  emit = kTRUE 
)

Set marker style (type).

Parameters
sstyle number
emitflag if signal must be emitted

References MarkerStyleChanged(), and w_style.

Referenced by RGHistoPlotAttrSelect::SetMarkerAttr().

void RGMarkerAttrSelect::SetMarkerSize ( const Size_t  s,
const Bool_t  emit = kTRUE 
)

Set marker size.

Parameters
ssize
emitflag if signal must be emitted

References MarkerSizeChanged(), and w_size.

Referenced by RGHistoPlotAttrSelect::SetMarkerAttr().

RGColorNumberSelect * RGMarkerAttrSelect::GetColorWidget ( ) const
inline

Get marker color selection widget pointer.

References w_color.

TGedMarkerSelect * RGMarkerAttrSelect::GetStyleWidget ( ) const
inline

Get marker style selection widget pointer.

References w_style.

TGNumberEntry * RGMarkerAttrSelect::GetSizeWidget ( ) const
inline

Get marker size selection widget pointer.

References w_size.

void RGMarkerAttrSelect::MarkerColorChanged ( Color_t  c)
inlinevirtual

Signal sent when marker color is changed.

Parameters
ccolor number
void RGMarkerAttrSelect::MarkerStyleChanged ( Style_t  s)
inlinevirtual

Signal sent when marker style (type) is changed.

Parameters
smarker type

Referenced by SetMarkerStyle().

void RGMarkerAttrSelect::MarkerSizeChanged ( Size_t  s)
inlinevirtual

Signal sent when marker size is changed.

Parameters
smarker size

Referenced by MarkerSizeEntryChanged(), and SetMarkerSize().

void RGMarkerAttrSelect::MarkerSizeEntryChanged ( const char *  str)
virtual

Slot called when color number is changed.

References MarkerSizeChanged(), and w_size.

RGMarkerAttrSelect::ClassDef ( RGMarkerAttrSelect  ,
 
)

For ROOT dictionary.


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