29 double fX[3] = {0, 0, 0};
30 double fY[3] = {0, 0, 0};
37 void SetPoints(
double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
56 gPad->PaintFillAreaNDC(3, fX, fY, opt);
58 gPad->PaintPolyLineNDC(3, fX, fY, opt);
67 printf(
"Custom JS module will NOT be provided for TTriangle class\n");
68 printf(
"No interactive features will be available\n");
69 printf(
"TTriangle::Paint() method will be used for object painting - also in web case\n");
72 printf(
"Please run this script in compiled mode by running \".x triangle.cxx+\"\n");
73 printf(
"Requires to properly generate dictionary for TTriangle class\n");
78 auto pos = fdir.find(
"triangle.cxx");
79 if (pos != std::string::npos)
82 fdir =
gROOT->GetTutorialsDir() + std::string(
"/webcanv/");
97 tr1->SetPoints(0.4, 0.5, 0.8, 0.3, 0.8, 0.7);
103 tr2->SetPoints(0.2, 0.2, 0.2, 0.6, 0.5, 0.4);
109 tr3->SetPoints(0.4, 0.8, 0.6, 0.8, 0.5, 0.2);
113 auto c1 =
new TCanvas(
"c1",
"Triangles");
#define ClassDefOverride(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
static void AddServerLocation(const std::string &server_prefix, const std::string &files_path)
Configure server location which can be used for loading of custom scripts or files When THttpServer i...
Fill Area Attributes class.
virtual void Modify()
Change current fill area attributes if necessary.
virtual void Modify()
Change current line attributes if necessary.
The TNamed class is the base class for all named ROOT classes.
static void AddCustomClass(const std::string &clname, bool with_derived=false)
Assign custom class.
static void SetCustomScripts(const std::string &src)
Configures custom script for canvas.