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);
131 glVertex3f(l.
fV1[0], l.
fV1[1], l.
fV1[2]);
132 glVertex3f(l.
fV2[0], l.
fV2[1], l.
fV2[2]);
146 glVertex3f(l.
fV1[0], l.
fV1[1], l.
fV1[2]);
147 glVertex3f(l.
fV2[0], l.
fV2[1], l.
fV2[2]);
175 pnts, mL.GetMarkerPlex().Size(),
193 if (rec.
GetN() != 3)
return;
196 printf(
"selected line %d\n", rec.
GetItem(2));
201 printf(
"Selected point %d on line %d\n", rec.
GetItem(2), m.
fLineId);
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Bool_t SecSelection() const
virtual Bool_t GetDepthTest()
Int_t GetPickRadius()
Return pick radius. If selection is not active it returns 0.
virtual Bool_t ShouldDLCache(const TGLRnrCtx &rnrCtx) const
Override from TGLObject.
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.
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.
TEveStraightLineSetGL()
Constructor.
Bool_t IsDrawPassOutlineLine() const
virtual Width_t GetLineWidth() const
Return the line width.
TEveChunkManager & GetLinePlex()
virtual Style_t GetLineStyle() const
Return the line style.
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render the line-set with GL.
Base-class for direct OpenGL renderers.
TEveChunkManager & GetMarkerPlex()
TObject * fExternalObj
first replica
Char_t * Atom(Int_t idx) const
Standard selection record including information about containing scene and details ob out selected ob...
virtual void ProcessSelection(TGLRnrCtx &rnrCtx, TGLSelectRecord &rec)
Process results of the secondary selection.
virtual void SetBBox()
Setup bounding box information.
GL-renderer for TEveStraightLineSet class.
virtual Bool_t ShouldDLCache(const TGLRnrCtx &rnrCtx) const
Decide if display-list should be used for this pass rendering, as determined by rnrCtx.
UInt_t GetItem(Int_t i) const
static void BeginExtendPickRegion(Float_t scale)
static void EndExtendPickRegion()
Mother of all ROOT objects.
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw the GL drawable, using draw flags.
virtual Bool_t GetRnrLines()
static Float_t LineWidth()
Get the line-width, taking the global scaling into account.
virtual Bool_t GetRnrMarkers()
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw function for TEveStraightLineSetGL. Skips line-pass of outline mode.
Set of straight lines with optional markers along the lines.