Figure class for TCanvas. A canvas is the base of your figure where you can define multiple NAGASH::FigurePad objects for drawing all the ingredients.
More...
#include "NAGASH/FigureTool.h"
|
virtual | ~FigureCanvas () |
|
std::shared_ptr< FigurePad > | BookPad (const TString &padname, int lbx, int lby, int rtx, int rty, std::function< void(TPad *)> optionfunc=[](TPad *) {}) |
| Book a FigurePad in this canvas.
|
|
std::shared_ptr< FigurePad > | BookPadNDC (const TString &padname, double lbx, double lby, double rtx, double rty, std::function< void(TPad *)> optionfunc=[](TPad *) {}) |
| Book a FigurePad in this canvas. The position is given in relative coordinates.
|
|
virtual void | CD () override |
|
virtual void | DrawElement () override |
|
void | SaveAs (const TString &filename) |
|
| FigureElement (std::shared_ptr< MSGTool > MSG, std::shared_ptr< FigureStyleHelper > shelper, const TString &elementname, const TString &tyname, FigureElement *mother=0) |
|
void | Draw () |
|
std::shared_ptr< FigureElement > | FindLinkElement (const TString &name) |
|
std::shared_ptr< FigureElement > | GetLinkElement (int index) |
|
int | GetLinkIndex (const TString &name) |
|
FigureElement * | GetMotherElement () |
|
TString | GetName () |
|
int | GetNLinkElement () |
|
FigureElement * | GetRootElement () |
|
TString | GetTypeName () |
|
bool | IsType (const TString &tyname) |
|
virtual void | SetStyle () |
|
std::shared_ptr< FigureElement > | TraceElement (const TString &name) |
|
Figure class for TCanvas. A canvas is the base of your figure where you can define multiple NAGASH::FigurePad objects for drawing all the ingredients.
Definition at line 489 of file FigureTool.h.
◆ ~FigureCanvas()
FigureCanvas::~FigureCanvas |
( |
| ) |
|
|
virtual |
◆ FigureCanvas()
FigureCanvas::FigureCanvas |
( |
std::shared_ptr< MSGTool > |
MSG, |
|
|
std::shared_ptr< FigureStyleHelper > |
shelper, |
|
|
const TString & |
elementname, |
|
|
int |
npx, |
|
|
int |
npy |
|
) |
| |
|
private |
◆ BookPad()
std::shared_ptr< FigurePad > FigureCanvas::BookPad |
( |
const TString & |
padname, |
|
|
int |
lbx, |
|
|
int |
lby, |
|
|
int |
rtx, |
|
|
int |
rty, |
|
|
std::function< void(TPad *)> |
optionfunc = [](TPad *) {} |
|
) |
| |
Book a FigurePad in this canvas.
- Parameters
-
padname | name of the pad. |
lbx | left-bottom x position of the pad. |
lby | left-bottom y position of the pad. |
rtx | right-top x position of the pad. |
rty | right-top y position of the pad. |
optionfunc | user-defined function to draw the pad, passed to TPad::Draw(). |
- Returns
- the pointer to the FigurePad object.
Definition at line 2337 of file FigureTool.cxx.
◆ BookPadNDC()
std::shared_ptr< FigurePad > FigureCanvas::BookPadNDC |
( |
const TString & |
padname, |
|
|
double |
lbx, |
|
|
double |
lby, |
|
|
double |
rtx, |
|
|
double |
rty, |
|
|
std::function< void(TPad *)> |
optionfunc = [](TPad *) {} |
|
) |
| |
Book a FigurePad in this canvas. The position is given in relative coordinates.
- Parameters
-
padname | name of the pad. |
lbx | left-bottom x position of the pad in relative coordinates(0 to 1). |
lby | left-bottom y position of the pad in relative coordinates(0 to 1). |
rtx | right-top x position of the pad in relative coordinates (0 to 1). |
rty | right-top y position of the pad in relative coordinates (0 to 1). |
optionfunc | user-defined function to draw the pad, passed to TPad::Draw(). |
- Returns
- the pointer to the FigurePad object.
Definition at line 2358 of file FigureTool.cxx.
◆ CD()
void FigureCanvas::CD |
( |
| ) |
|
|
overridevirtual |
◆ DrawElement()
void FigureCanvas::DrawElement |
( |
| ) |
|
|
overridevirtual |
◆ SaveAs()
void NAGASH::FigureCanvas::SaveAs |
( |
const TString & |
filename | ) |
|
|
inline |
◆ FigureTool
◆ mycanvas
TCanvas* NAGASH::FigureCanvas::mycanvas = nullptr |
|
private |
The documentation for this class was generated from the following files: