CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
FWColorFrame Class Reference

#include <FWColorSelect.h>

Inheritance diagram for FWColorFrame:

Public Member Functions

 ClassDef (FWColorFrame, 0)
 
void ColorSelected (Color_t)
 
virtual void DrawBorder ()
 
 FWColorFrame (const TGWindow *p=0, Color_t ci=0)
 
Color_t GetColor () const
 
virtual Bool_t HandleButton (Event_t *event)
 
void SetColor (Color_t)
 
virtual ~FWColorFrame ()
 

Protected Attributes

Color_t fColor
 

Detailed Description

Definition at line 16 of file FWColorSelect.h.

Constructor & Destructor Documentation

FWColorFrame::FWColorFrame ( const TGWindow *  p = 0,
Color_t  ci = 0 
)

Definition at line 43 of file FWColorSelect.cc.

References kCFHeight, kCFWidth, and SetColor().

43  :
44  TGFrame(p, 20, 20, kOwnBackground)
45 {
46  SetColor(ci);
47  Resize(kCFWidth, kCFHeight);
48 }
void SetColor(Color_t)
virtual FWColorFrame::~FWColorFrame ( )
inlinevirtual

Definition at line 23 of file FWColorSelect.h.

23 {}

Member Function Documentation

FWColorFrame::ClassDef ( FWColorFrame  ,
 
)
void FWColorFrame::ColorSelected ( Color_t  ci)

Definition at line 66 of file FWColorSelect.cc.

Referenced by HandleButton().

67 {
68  Emit("ColorSelected(Color_t)", ci);
69 }
virtual void FWColorFrame::DrawBorder ( )
inlinevirtual

Definition at line 26 of file FWColorSelect.h.

26 {}
Color_t FWColorFrame::GetColor ( ) const
inline

Definition at line 29 of file FWColorSelect.h.

References fColor.

29 { return fColor; }
Color_t fColor
Definition: FWColorSelect.h:19
Bool_t FWColorFrame::HandleButton ( Event_t *  event)
virtual

Definition at line 50 of file FWColorSelect.cc.

References ColorSelected(), and fColor.

51 {
52  if (event->fType == kButtonRelease)
53  {
55  }
56  return kTRUE;
57 }
void ColorSelected(Color_t)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
Color_t fColor
Definition: FWColorSelect.h:19
void FWColorFrame::SetColor ( Color_t  ci)

Definition at line 60 of file FWColorSelect.cc.

References fColor.

Referenced by FWColorFrame().

61 {
62  fColor = ci;
63  SetBackgroundColor(TColor::Number2Pixel(fColor));
64 }
Color_t fColor
Definition: FWColorSelect.h:19

Member Data Documentation

Color_t FWColorFrame::fColor
protected

Definition at line 19 of file FWColorSelect.h.

Referenced by GetColor(), HandleButton(), and SetColor().