44 std::vector<Double_t> fXs;
45 std::vector<Double_t> fYs;
50 :
TNamed(
"polygon_compression_test1",
"polygon_compression_test1")
59 assert(
gPad !=
nullptr &&
"Reset, gPad is null");
81 for (
unsigned i = 0; i <
nVertices - 1; ++i) {
92void PolyTest1::Paint(
const Option_t * )
94 assert(
gPad !=
nullptr &&
"Paint, gPad is null");
97 gPad->PaintFillArea((
Int_t)fXs.size(), &fXs[0], &fYs[0]);
100 gPad->PaintPolyLine((
Int_t)fXs.size(), &fXs[0], &fYs[0]);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint angle
R__EXTERN TRandom * gRandom
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.
Double_t Rndm() override
Machine independent random number generator.
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
constexpr Double_t TwoPi()