15#include "TGLIncludes.h"
40 fM = SetModelDynCast<TEveStraightLineSet>(obj);
86 glPushAttrib(GL_VIEWPORT_BIT);
93 glPushAttrib(GL_LINE_BIT | GL_ENABLE_BIT);
94 glDisable(GL_LIGHTING);
100 case 2: pat = 0x3333;
break;
101 case 3: pat = 0x5555;
break;
102 case 4: pat = 0xf040;
break;
103 case 5: pat = 0xf4f4;
break;
104 case 6: pat = 0xf111;
break;
105 case 7: pat = 0xf0f0;
break;
106 case 8: pat = 0xff11;
break;
107 case 9: pat = 0x3fff;
break;
108 case 10: pat = 0x08ff;
break;
110 glLineStipple(1, pat);
111 glEnable(GL_LINE_STIPPLE);
130 glVertex3f(
l.fV1[0],
l.fV1[1],
l.fV1[2]);
131 glVertex3f(
l.fV2[0],
l.fV2[1],
l.fV2[2]);
144 glVertex3f(
l.fV1[0],
l.fV1[1],
l.fV1[2]);
145 glVertex3f(
l.fV2[0],
l.fV2[1],
l.fV2[2]);
173 pnts, mL.GetMarkerPlex().Size(),
191 if (rec.GetN() != 3)
return;
192 if (rec.GetItem(1) == 1)
194 printf(
"selected line %d\n", rec.GetItem(2));
199 printf(
"Selected point %d on line %d\n", rec.GetItem(2),
m.fLineId);
virtual Width_t GetLineWidth() const
Return the line width.
virtual Style_t GetLineStyle() const
Return the line style.
Char_t * Atom(Int_t idx) const
GL-renderer for TEveStraightLineSet class.
void ProcessSelection(TGLRnrCtx &rnrCtx, TGLSelectRecord &rec) override
Process results of the secondary selection.
Bool_t ShouldDLCache(const TGLRnrCtx &rnrCtx) const override
Override from TGLObject.
void SetBBox() override
Setup bounding box information.
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
void Draw(TGLRnrCtx &rnrCtx) const override
Draw function for TEveStraightLineSetGL. Skips line-pass of outline mode.
TEveStraightLineSetGL()
Constructor.
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Render the line-set with GL.
Set of straight lines with optional markers along the lines.
virtual Bool_t GetDepthTest()
TEveChunkManager & GetMarkerPlex()
virtual Bool_t GetRnrLines()
TEveChunkManager & GetLinePlex()
virtual Bool_t GetRnrMarkers()
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw the GL drawable, using draw flags.
TObject * fExternalObj
first replica
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.
Bool_t ShouldDLCache(const TGLRnrCtx &rnrCtx) const override
Decide if display-list should be used for this pass rendering, as determined by rnrCtx.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Int_t GetPickRadius()
Return pick radius. If selection is not active it returns 0.
Bool_t SecSelection() const
Bool_t IsDrawPassOutlineLine() const
Standard selection record including information about containing scene and details ob out selected ob...
static void BeginExtendPickRegion(Float_t scale)
static void EndExtendPickRegion()
static Float_t LineWidth()
Get the line-width, taking the global scaling into account.
static void RenderPolyMarkers(const TAttMarker &marker, Char_t transp, Float_t *p, Int_t n, Int_t pick_radius=0, Bool_t selection=kFALSE, Bool_t sec_selection=kFALSE)
Render polymarkers at points specified by p-array.
Mother of all ROOT objects.
Bool_t next()
Go to next atom.