22#include "TGLIncludes.h"
27const UInt_t PolygonStippleSet::fgBitSwap[] = {0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15};
90 for (
Int_t k = 1,
k1 = 0; k >= 0; --k, ++
k1) {
122 : fStipple(0), fAlpha(1.)
162 0xf040, 0xf4f4, 0xf111, 0xf0f0,
163 0xff11, 0x3fff, 0x08ff};
252 for (
UInt_t i = 0; i <
n; ++i) {
282 for (
UInt_t i = 0; i <
n; ++i) {
307 for (
UInt_t i = 0; i <
n; ++i) {
326 for (
UInt_t i = 0; i <
n; ++i) {
363 for (
UInt_t i = 0; i <
n; ++i) {
387 for (
UInt_t i = 0; i <
n; ++i) {
412 for (
UInt_t i = 0; i <
n; ++i) {
429 for (
UInt_t i = 0; i <
n; ++i) {
448 for (
UInt_t i = 0; i <
n; ++i) {
468 for (
UInt_t i = 0; i <
n; ++i) {
487 for (
UInt_t i = 0; i <
n; ++i) {
506 for (
UInt_t i = 0; i <
n; ++i) {
534 for (
UInt_t i = 0; i <
n; ++i) {
571 for (
UInt_t i = 0; i <
n; ++i) {
625 for (
UInt_t i = 0; i <
n; ++i) {
650 for (
unsigned i = 0; i <
n; ++i) {
673 for (
unsigned i = 0; i <
n; ++i) {
698 for (
unsigned i = 0; i <
n; ++i) {
725 for (
unsigned i = 0; i <
n; ++i) {
756 for (
unsigned i = 0; i <
n; ++i) {
783 for (
unsigned i = 0; i <
n; ++i) {
812 for (
unsigned i = 0; i <
n; ++i) {
842 for (
unsigned i = 0; i <
n; ++i) {
867 for (
unsigned i = 0; i <
n; ++i) {
922 for (
unsigned i = 0; i <
n; ++i) {
949 for (
unsigned i = 0; i <
n; ++i) {
977 for (
unsigned i = 0; i <
n; ++i) {
1006 for (
unsigned i = 0; i <
n; ++i) {
1047 for (
unsigned i = 0; i <
n; ++i) {
1085 for (
unsigned i = 0; i <
n; ++i) {
1124#if defined(__APPLE_CC__) && __APPLE_CC__ > 4000 && __APPLE_CC__ < 5450 && !defined(__INTEL_COMPILER)
1126#elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__) || defined (__APPLE__)
1128#elif defined ( WIN32)
1131 #error "Error - need to define type tess_t for this platform/compiler"
1154 std::vector<Double_t> &
vs = dump->back().fPatch;
1175 throw std::runtime_error(
"tesselator creation failed");
1177#if defined(__GNUC__) && __GNUC__ >= 8
1178#pragma GCC diagnostic push
1179#pragma GCC diagnostic ignored "-Wcast-function-type"
1192#if defined(__GNUC__) && __GNUC__ >= 8
1193#pragma GCC diagnostic pop
1214 : fW(
w), fH(
h), fX(
x), fY(
y), fTop(top)
1221 : fMaxLineWidth(0.),
1266template<
class ValueType>
1269 assert(
nPoints > 0 &&
"FindBoundingRect, invalind number of points");
1270 assert(
xs !=
nullptr &&
"FindBoundingRect, parameter 'xs' is null");
1271 assert(
ys !=
nullptr &&
"FindBoundingRect, parameter 'ys' is null");
const unsigned char gStipples[26][32]
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 GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void pixel
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
Option_t Option_t TPoint xy
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 Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
FillAttribSet(const PolygonStippleSet &set, Bool_t ignoreStipple)
Polygon stipple, if required.
Double_t GetMaxLineWidth() const
Double_t GetMaxPointSize() const
LineAttribSet(Bool_t smooth, UInt_t stipple, Double_t maxWidth, Bool_t setWidth)
Set up line parameters.
void DrawOpenThreeTriangles(UInt_t n, const TPoint *xy) const
void DrawFullCrossX(UInt_t n, const TPoint *xy) const
void DrawFullDotSmall(UInt_t n, const TPoint *xy) const
void DrawOpenSquareDiagonal(UInt_t n, const TPoint *xy) const
void DrawOpenDoubleDiamond(UInt_t n, const TPoint *xy) const
void DrawFullFourTrianglesX(UInt_t n, const TPoint *xy) const
void DrawFullDotLarge(UInt_t n, const TPoint *xy) const
void DrawFullThreeTriangles(UInt_t n, const TPoint *xy) const
void DrawCircle(UInt_t n, const TPoint *xy) const
void DrawFullFourTrianglesPlus(UInt_t n, const TPoint *xy) const
void DrawOpenCross(UInt_t n, const TPoint *xy) const
void DrawFullCross(UInt_t n, const TPoint *xy) const
void DrawFullTrianlgeDown(UInt_t n, const TPoint *xy) const
void DrawOpenStar(UInt_t n, const TPoint *xy) const
Full star pentagone.
void DrawX(UInt_t n, const TPoint *xy) const
void DrawPlus(UInt_t n, const TPoint *xy) const
void DrawFullTrianlgeUp(UInt_t n, const TPoint *xy) const
void DrawFullSquare(UInt_t n, const TPoint *xy) const
std::vector< TPoint > fCircle
void DrawOpenFourTrianglesPlus(UInt_t n, const TPoint *xy) const
void DrawStar(UInt_t n, const TPoint *xy) const
void DrawFullDoubleDiamond(UInt_t n, const TPoint *xy) const
void DrawOpenCrossX(UInt_t n, const TPoint *xy) const
void DrawDot(UInt_t n, const TPoint *xy) const
Simple 1-pixel dots.
void DrawOctagonCross(UInt_t n, const TPoint *xy) const
void DrawFourSquaresX(UInt_t n, const TPoint *xy) const
void DrawFourSquaresPlus(UInt_t n, const TPoint *xy) const
void DrawFullDotMedium(UInt_t n, const TPoint *xy) const
void DrawDiamond(UInt_t n, const TPoint *xy) const
void DrawFullStar(UInt_t n, const TPoint *xy) const
Full star pentagone.
void DrawOpenTrianlgeDown(UInt_t n, const TPoint *xy) const
void DrawFullDiamond(UInt_t n, const TPoint *xy) const
void DrawOpenFourTrianglesX(UInt_t n, const TPoint *xy) const
void DrawOpenDiamondCross(UInt_t n, const TPoint *xy) const
OffScreenDevice(UInt_t w, UInt_t h, UInt_t x, UInt_t y, Bool_t top)
std::vector< unsigned char > fStipples
static UInt_t SwapBits(UInt_t bits)
static const UInt_t fgBitSwap[]
Tesselator(Bool_t dump=kFALSE)
static Tesselation_t * GetDump()
static Tesselation_t * fVs
static Width_t GetMarkerLineWidth(Style_t style)
Internal helper function that returns the line width of the given marker style (0 = filled marker)
The color creation and management class.
virtual void GetRGB(Float_t &r, Float_t &g, Float_t &b) const
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
const UShort_t gLineStipples[]
std::list< MeshPatch_t > Tesselation_t
BoundingRect< ValueType > FindBoundingRect(Int_t nPoints, const ValueType *xs, const ValueType *ys)
void Vertex(const Double_t *v)
void ExtractRGBA(Color_t colorIndex, Float_t *rgba)
const GLenum lineWidthPNAME
const GLenum pointSizePNAME
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Double_t Floor(Double_t x)
Rounds x downward, returning the largest integral value that is not greater than x.
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()