JG ROOT Tools libraries  version 5.0 - august 2014
RGFitDisplayer Class Referenceabstract

#include <RGFitDisplayer.hh>

Inheritance diagram for RGFitDisplayer:
RGBaseRequester RGFitDisplayer1D RGFitDisplayer2D

Public Member Functions

 RGFitDisplayer (const TGWindow *parent, const TGWindow *main=NULL)
 
 RGFitDisplayer (const RGFitDisplayer &original)
 
virtual ~RGFitDisplayer ()
 
virtual void Construct ()
 
virtual void MapRequester ()
 
virtual void DrawFitResult ()=0
 
virtual void ExportPlot ()
 
virtual void PrintPlot ()
 
virtual void NoDifferenceToggled ()
 
virtual void Button (const Int_t n)
 
 ClassDef (RGFitDisplayer, 0)
 
- Public Member Functions inherited from RGBaseRequester
 RGBaseRequester (const TGWindow *parent, const TGWindow *main, int &result, const char *title, const char *buttons=rDico.brq_ok_cancel.c_str(), const ULong_t opts=0, const bool auto_start=true)
 
 RGBaseRequester (const TGWindow *parent, const TGWindow *main, const char *title, const char *buttons=rDico.brq_ok_cancel.c_str(), const ULong_t opts=0, const bool auto_start=false)
 
virtual ~RGBaseRequester ()
 
virtual void Request ()
 
virtual TGCompositeFrame * GetFrame () const
 
virtual TGHorizontalFrame * GetHFrame () const
 
virtual TGVerticalFrame * GetVFrame () const
 
virtual void AddFrame (TGFrame *f, TGLayoutHints *l=0)
 
virtual void CloseFromButton ()
 
virtual void CancelClose (const Bool_t b=kTRUE)
 
virtual void ReqButtonClicked (Int_t n)
 
virtual void ProcessedEvent (Event_t *event)
 
virtual void Quit ()
 
 ClassDef (RGBaseRequester, 0)
 

Protected Attributes

TCanvas * canvas_ptr
 Pointer to canvas.
 
TRootEmbeddedCanvas * w_canvas
 Pointer to ROOT embedded canvas.
 
TGVerticalFrame * w_check_frame
 Frame for additional check buttons.
 
TGCheckButton * w_no_difference
 Button for difference plot.
 
- Protected Attributes inherited from RGBaseRequester
int * result_adr
 Request resul pointer.
 
string req_title
 Request title.
 
const char * req_buttons
 Buttons texts.
 
UInt_t options
 Request options.
 
ULong_t req_button_layout
 Buttons layout.
 
TGCompositeFrame * w_widget_frame
 Frame for widgets.
 
TGCompositeFrame * w_buttons_frame
 Frame for buttons.
 
TList buttons_list
 List of created buttons.
 
Bool_t cancel_close
 Check for close cancellation.
 

Private Member Functions

 GObjectV (RGFitDisplayer)
 

Static Private Attributes

static UInt_t disp_width = 600
 Display window width.
 
static UInt_t disp_height = 800
 Display window height.
 
static string export_name = "fit.eps"
 Export name.
 
static Int_t export_id = 2
 File type.
 

Friends

class RGFitBase1D
 

Additional Inherited Members

- Protected Member Functions inherited from RGBaseRequester
 RGBaseRequester (const RGBaseRequester &req)
 
- Static Protected Attributes inherited from RGBaseRequester
static UInt_t max_width = 1200
 Maximum request width.
 
static UInt_t max_height = 800
 Maximum request height.
 

Detailed Description

Graphical interface to display fit results from a fitter deriving from RGFitBase.

Constructor & Destructor Documentation

RGFitDisplayer::RGFitDisplayer ( const TGWindow *  parent,
const TGWindow *  main = NULL 
)

Constructor.

Parameters
parentparent window
mainmain application window
RGFitDisplayer::RGFitDisplayer ( const RGFitDisplayer original)

Copy constructor: not implemented.

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

Destructor.

Member Function Documentation

RGFitDisplayer::GObjectV ( RGFitDisplayer  )
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 RGFitDisplayer::Construct ( )
virtual
void RGFitDisplayer::MapRequester ( )
virtual

Map the requester (interface).

Reimplemented from RGBaseRequester.

References DrawFitResult(), and RGBaseRequester::MapRequester().

virtual void RGFitDisplayer::DrawFitResult ( )
pure virtual

Affichage du résultat de fit dans le pad.

Implemented in RGFitDisplayer2D, and RGFitDisplayer1D.

Referenced by MapRequester(), and NoDifferenceToggled().

void RGFitDisplayer::ExportPlot ( )
virtual

Export the plot: the file is selected with a requester.

References canvas_ptr, export_id, export_name, rExportFileTypes, and RSetFileExt().

Referenced by Button().

void RGFitDisplayer::PrintPlot ( )
virtual

Print the plot: a print requester is started.

References RDico::brq_ok_cancel, canvas_ptr, rDico, and RDico::rgfit_disp_print_title.

Referenced by Button().

void RGFitDisplayer::NoDifferenceToggled ( )
virtual

Slot for difference plot button.

References DrawFitResult().

void RGFitDisplayer::Button ( const Int_t  n)
virtual

Slot for selected button: the ReqButtonClicked(Int_t) signal is emitted.

Reimplemented from RGBaseRequester.

References RGBaseRequester::CancelClose(), ExportPlot(), PrintPlot(), and RGBaseRequester::result_adr.

RGFitDisplayer::ClassDef ( RGFitDisplayer  ,
 
)

For ROOT dictionary.


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