virtual | ~TGLUtil() |
static void | BeginAttLine(const TAttLine& aline, Char_t transp, Int_t pick_radius = 0, Bool_t selection = kFALSE) |
static void | BeginExtendPickRegion(Float_t scale) |
static Int_t | CheckError(const char* loc) |
static TClass* | Class() |
static void | Color(const TGLColor& color) |
static void | Color3f(Float_t r, Float_t g, Float_t b) |
static void | Color3fv(const Float_t* rgb) |
static void | Color3ub(UChar_t r, UChar_t g, UChar_t b) |
static void | Color3ubv(const UChar_t* rgb) |
static void | Color4f(Float_t r, Float_t g, Float_t b, Float_t a) |
static void | Color4fv(const Float_t* rgba) |
static void | Color4ub(UChar_t r, UChar_t g, UChar_t b, UChar_t a) |
static void | Color4ubv(const UChar_t* rgba) |
static void | ColorAlpha(const TGLColor& color, UChar_t alpha) |
static void | ColorAlpha(const TGLColor& color, Float_t alpha) |
static void | ColorAlpha(Color_t color_index, Float_t alpha = 1) |
static void | ColorTransparency(Color_t color_index, Char_t transparency = 0) |
static void | DrawLine(const TGLLine3& line, TGLUtil::ELineHeadShape head, Double_t size, const UChar_t[4] rgba) |
static void | DrawLine(const TGLVertex3& start, const TGLVector3& vector, TGLUtil::ELineHeadShape head, Double_t size, const UChar_t[4] rgba) |
static void | DrawNumber(const TString& num, const TGLVertex3& pos, Bool_t center = kFALSE) |
static void | DrawReferenceMarker(const TGLCamera& camera, const TGLVertex3& pos, Float_t radius = 3, const UChar_t* rgba = 0) |
static void | DrawRing(const TGLVertex3& center, const TGLVector3& normal, Double_t radius, const UChar_t* rgba) |
static void | DrawSimpleAxes(const TGLCamera& camera, const TGLBoundingBox& bbox, Int_t axesType) |
static void | DrawSphere(const TGLVertex3& position, Double_t radius, const UChar_t[4] rgba) |
static void | EndAttLine(Int_t pick_radius = 0, Bool_t selection = kFALSE) |
static void | EndExtendPickRegion() |
static UInt_t | GetDefaultDrawQuality() |
static UInt_t | GetDrawQuality() |
static GLUtesselator* | GetDrawTesselator3dv() |
static GLUtesselator* | GetDrawTesselator3fv() |
static GLUtesselator* | GetDrawTesselator4dv() |
static GLUtesselator* | GetDrawTesselator4fv() |
static Float_t | GetLineWidthScale() |
static Int_t | GetPickingRadius() |
static Float_t | GetPointLineScalingFactor() |
static Float_t | GetPointSizeScale() |
static Float_t | GetScreenScalingFactor() |
static void | InitializeIfNeeded() |
virtual TClass* | IsA() const |
static Bool_t | IsColorLocked() |
static Float_t | LineWidth() |
static void | LineWidth(Float_t line_width) |
static UInt_t | LockColor() |
static Float_t | PointSize() |
static void | PointSize(Float_t point_size) |
static void | PointToViewport(Int_t& x, Int_t& y) |
static void | PointToViewport(Int_t& x, Int_t& y, Int_t& w, Int_t& h) |
static void | RenderCrosses(const TAttMarker& marker, Float_t* p, Int_t n, Bool_t sec_selection = kFALSE) |
static void | RenderCrosses(const TAttMarker& marker, const vector<Double_t>& points, Double_t dX, Double_t dY, Double_t dZ) |
static void | RenderPoints(const TAttMarker& marker, const vector<Double_t>& points) |
static void | RenderPoints(const TAttMarker& marker, Float_t* p, Int_t n, Int_t pick_radius = 0, Bool_t selection = kFALSE, Bool_t sec_selection = kFALSE) |
static void | RenderPolyLine(const TAttLine& aline, Char_t transp, Float_t* p, Int_t n, Int_t pick_radius = 0, Bool_t selection = kFALSE) |
static void | RenderPolyMarkers(const TAttMarker& marker, const vector<Double_t>& points, Double_t dX, Double_t dY, Double_t dZ) |
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) |
static void | ResetDrawQuality() |
static void | SetDefaultDrawQuality(UInt_t dq) |
static void | SetDrawColors(const UChar_t[4] rgba) |
static void | SetDrawQuality(UInt_t dq) |
static void | SetLineWidthScale(Float_t scale) |
static void | SetPointSizeScale(Float_t scale) |
virtual void | ShowMembers(TMemberInspector& insp) const |
virtual void | Streamer(TBuffer&) |
void | StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b) |
static UInt_t | UnlockColor() |
static const UChar_t | fgBlue[4] | |
static const UChar_t | fgGreen[4] | |
static const UChar_t | fgGrey[4] | |
static const UChar_t | fgRed[4] | |
static const UChar_t | fgWhite[4] | |
static const UChar_t | fgYellow[4] | |
static TGLUtil::EAxesType | kAxesEdge | |
static TGLUtil::EAxesType | kAxesNone | |
static TGLUtil::EAxesType | kAxesOrigin | |
static TGLUtil::ELineHeadShape | kLineHeadArrow | |
static TGLUtil::ELineHeadShape | kLineHeadBox | |
static TGLUtil::ELineHeadShape | kLineHeadNone |
static UInt_t | fgColorLockCount | |
static UInt_t | fgDefaultDrawQuality | |
static UInt_t | fgDrawQuality | |
static Float_t | fgLineWidth | |
static Float_t | fgLineWidthScale | |
static Int_t | fgPickingRadius | |
static Float_t | fgPointLineScalingFactor | |
static Float_t | fgPointSize | |
static Float_t | fgPointSizeScale | |
static Float_t | fgScreenScalingFactor |
Returns a tesselator for direct drawing when using 3-vertices with single precision.
Returns a tesselator for direct drawing when using 4-vertices with single precision.
Returns a tesselator for direct drawing when using 3-vertices with double precision.
Returns a tesselator for direct drawing when using 4-vertices with double precision.
Initialize globals that require other libraries to be initialized. This is called from TGLWidget creation function.
Check current GL error state, outputing details via ROOT Error method if one
Set color from color_index and GL-style alpha (default 1).
Set color from color_index and ROOT-style transparency (default 0).
Convert from point/screen coordinates to GL viewport coordinates.
Convert from point/screen coordinates to GL viewport coordinates.
Returns scaling factor between screen points and GL viewport pixels. This is what is returned by gVirtualX->GetOpenGLScalingFactor() but is cached here to avoid a virtual function call as it is used quite often in TGLPhysical shape when drawing the selection highlight.
Return extra scaling factor for points and lines. By default this is set to the same value as ScreenScalingFactor to keep the same appearance. To override use rootrc entry, e.g.: OpenGL.PointLineScalingFactor: 1.0
Set the point-size, taking the global scaling into account. Wrapper for glPointSize.
Set the line-width, taking the global scaling into account. Wrapper for glLineWidth.
Render polymarkers at points specified by p-array. Supports point and cross-like styles.
Render polymarkers at points specified by p-array. Supports point and cross-like styles. Color is set externally. Lighting is disabled externally.
Render markers as circular or square points. Color is never changed.
Render markers as circular or square points. Color is never changed.
Render markers as crosses. Color is never changed.
Render markers as crosses. Color is never changed.
Render poly-line as specified by the p-array.
Setup drawing parrameters according to passed TAttLine.
Restore previous line drawing state.
Set basic draw colors from 4 component 'rgba' Used by other TGLUtil drawing routines Sets basic (unlit) color - glColor and also GL materials (see OpenGL docs) thus: diffuse : rgba ambient : 0.0 0.0 0.0 1.0 specular : 0.6 0.6 0.6 1.0 emission : rgba/4.0 shininess: 60.0 emission is set so objects with no lights (but lighting still enabled) are partially visible
Draw sphere, centered on vertex 'position', with radius 'radius', color 'rgba'
Draw thick line (tube) defined by 'line', with head at end shape 'head' - box/arrow/none, (head) size 'size', color 'rgba'
Draw thick line (tube) running from 'start', length 'vector', with head at end of shape 'head' - box/arrow/none, (head) size 'size', color 'rgba'
Draw ring, centered on 'center', lying on plane defined by 'center' & 'normal' of outer radius 'radius', color 'rgba'
Draw a sphere- marker on world-coordinate 'pos' with pixel radius 'radius'. Color argument is optional.
Draw simple xyz-axes for given bounding-box.
Draw number in string 'num' via internal 8x8-pixel bitmap on vertex 'pos'. If 'center' is true, the number is centered on 'pos'. Only numbers, '.', '-' and ' ' are supported.