19#include "TGLIncludes.h"
60 if (
rnrCtx.IsDrawPassOutlineLine())
77 std::map<Edge_t, Int_t> edges;
82 for(
Int_t k = 0; k < i->fNPnts - 1; ++k)
84 ++edges[
Edge_t(i->fPnts[k], i->fPnts[k+1])];
86 ++edges[
Edge_t(i->fPnts[0], i->fPnts[i->fNPnts - 1])];
90 for (std::map<Edge_t, Int_t>::iterator i = edges.begin(); i != edges.end(); ++i)
108 for(
Int_t k = 0; k < i->fNPnts; ++k)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
GL-renderer for TEvePolygonSetProjected class.
void DrawOutline() const
Draw polygons outline.
void DrawHighlight(TGLRnrCtx &rnrCtx, const TGLPhysicalShape *pshp, Int_t lvl=-1) const override
Draw polygons in highlight mode.
void SetBBox() override
Setup bounding-box information.
void Draw(TGLRnrCtx &rnrCtx) const override
Draw function for TEvePolygonSetProjectedGL.
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Do GL rendering.
TEvePolygonSetProjected * fM
TEvePolygonSetProjectedGL()
Constructor.
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
vpPolygon_t::const_iterator vpPolygon_ci
virtual Bool_t GetMiniFrame() const
virtual Bool_t GetHighlightFrame() const
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw the GL drawable, using draw flags.
Base-class for direct OpenGL renderers.
void SetAxisAlignedBBox(Float_t xmin, Float_t xmax, Float_t ymin, Float_t ymax, Float_t zmin, Float_t zmax)
Set axis-aligned bounding-box.
Concrete physical shape - a GL drawable.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
static UInt_t LockColor()
Prevent further color changes.
static UInt_t UnlockColor()
Allow color changes.
static void Color(const TGLColor &color)
Set color from TGLColor.
static GLUtesselator * GetDrawTesselator3fv()
Returns a tesselator for direct drawing when using 3-vertices with single precision.
static Float_t LineWidth()
Get the line-width, taking the global scaling into account.
Mother of all ROOT objects.