13 #include "Windows4root.h"
28 ClassImp(TPointSet3DGL);
33 Bool_t TPointSet3DGL::SetModel(TObject* obj,
const Option_t*)
35 return SetModelCheckClass(obj, TPointSet3D::Class());
41 void TPointSet3DGL::SetBBox()
43 SetAxisAlignedBBox(((TPointSet3D*)fExternalObj)->AssertBBox());
51 Bool_t TPointSet3DGL::ShouldDLCache(
const TGLRnrCtx& rnrCtx)
const
53 if (rnrCtx.Selection())
55 return TGLObject::ShouldDLCache(rnrCtx);
61 void TPointSet3DGL::Draw(TGLRnrCtx& rnrCtx)
const
63 if (rnrCtx.IsDrawPassOutlineLine())
66 TGLObject::Draw(rnrCtx);
72 void TPointSet3DGL::DirectDraw(TGLRnrCtx& rnrCtx)
const
77 TPointSet3D& q = * (TPointSet3D*) fExternalObj;
80 TGLUtil::RenderPolyMarkers(q, 0, q.GetP(), q.Size(),
81 rnrCtx.GetPickRadius(),
83 rnrCtx.SecSelection());
84 TGLUtil::UnlockColor();
92 void TPointSet3DGL::ProcessSelection(TGLRnrCtx& , TGLSelectRecord& rec)
94 if (rec.GetN() < 2)
return;
95 TPointSet3D& q = * (TPointSet3D*) fExternalObj;
96 q.PointSelected(rec.GetItem(1));