This macro is testing the "compacting" algorithm in TPadPainter.
It reduces the number of polygon's vertices using actual pixel coordinates.
This macro is testing new "compacting" algorithm in TPadPainter (it reduces the number of polygon's vertices using actual pixel coordinates). In principle, this test case is what our histograms (fringe cases) are: "saw-like" polygon (bins == teeth).
#include <cassert>
#include <vector>
public:
private:
};
std::vector<Double_t>
fXs1;
std::vector<Double_t>
fYs1;
std::vector<Double_t>
fXs2;
std::vector<Double_t>
fYs2;
};
PolyTest2::PolyTest2()
:
TNamed(
"polygon_compression_test2",
"polygon_compression_test2")
{
assert(
gPad !=
nullptr &&
"PolyTest2, gPad is null");
{
}
}
{
}
}
}
void PolyTest2::Paint(
const Option_t * )
{
}
{
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t SetLineColor
Option_t Option_t SetFillColor
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.
- Author
- Timur Pocheptsov
Definition in file polytest2.C.