ROOT  6.06/09
Reference Guide
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Attributes | List of all members
TGLUtil Class Reference

Wrapper class for various misc static functions - error checking, draw helpers etc.

Definition at line 880 of file TGLUtil.h.

Classes

class  TColorLocker
 
class  TDrawQualityModifier
 
class  TDrawQualityScaler
 

Public Types

enum  ELineHeadShape { kLineHeadNone, kLineHeadArrow, kLineHeadBox }
 
enum  EAxesType { kAxesNone, kAxesEdge, kAxesOrigin }
 

Public Member Functions

virtual ~TGLUtil ()
 
 ClassDef (TGLUtil, 0)
 

Static Public Member Functions

static void InitializeIfNeeded ()
 Initialize globals that require other libraries to be initialized. More...
 
static Int_t CheckError (const char *loc)
 Check current GL error state, outputting details via ROOT Error method if one. More...
 
static GLUtesselator * GetDrawTesselator3fv ()
 Returns a tesselator for direct drawing when using 3-vertices with single precision. More...
 
static GLUtesselator * GetDrawTesselator4fv ()
 Returns a tesselator for direct drawing when using 4-vertices with single precision. More...
 
static GLUtesselator * GetDrawTesselator3dv ()
 Returns a tesselator for direct drawing when using 3-vertices with double precision. More...
 
static GLUtesselator * GetDrawTesselator4dv ()
 Returns a tesselator for direct drawing when using 4-vertices with double precision. More...
 
static UInt_t GetDrawQuality ()
 static: get draw quality More...
 
static void SetDrawQuality (UInt_t dq)
 static: set draw quality More...
 
static void ResetDrawQuality ()
 static: reset draw quality More...
 
static UInt_t GetDefaultDrawQuality ()
 static: get default draw quality More...
 
static void SetDefaultDrawQuality (UInt_t dq)
 static: set default draw quality More...
 
static UInt_t LockColor ()
 Prevent further color changes. More...
 
static UInt_t UnlockColor ()
 Allow color changes. More...
 
static Bool_t IsColorLocked ()
 Returns true if color lock-count is greater than 0. More...
 
static void Color (const TGLColor &color)
 Set color from TGLColor. More...
 
static void ColorAlpha (const TGLColor &color, UChar_t alpha)
 Set color from TGLColor and alpha value. More...
 
static void ColorAlpha (const TGLColor &color, Float_t alpha)
 Set color from TGLColor and alpha value. More...
 
static void ColorAlpha (Color_t color_index, Float_t alpha=1)
 Set color from color_index and GL-style alpha (default 1). More...
 
static void ColorTransparency (Color_t color_index, Char_t transparency=0)
 Set color from color_index and ROOT-style transparency (default 0). More...
 
static void Color3ub (UChar_t r, UChar_t g, UChar_t b)
 Wrapper for glColor3ub. More...
 
static void Color4ub (UChar_t r, UChar_t g, UChar_t b, UChar_t a)
 Wrapper for glColor4ub. More...
 
static void Color3ubv (const UChar_t *rgb)
 Wrapper for glColor3ubv. More...
 
static void Color4ubv (const UChar_t *rgba)
 Wrapper for glColor4ubv. More...
 
static void Color3f (Float_t r, Float_t g, Float_t b)
 Wrapper for glColor3f. More...
 
static void Color4f (Float_t r, Float_t g, Float_t b, Float_t a)
 Wrapper for glColor4f. More...
 
static void Color3fv (const Float_t *rgb)
 Wrapper for glColor3fv. More...
 
static void Color4fv (const Float_t *rgba)
 Wrapper for glColor4fv. More...
 
static void PointToViewport (Int_t &x, Int_t &y)
 Convert from point/screen coordinates to GL viewport coordinates. More...
 
static void PointToViewport (Int_t &x, Int_t &y, Int_t &w, Int_t &h)
 Convert from point/screen coordinates to GL viewport coordinates. More...
 
static Float_t GetScreenScalingFactor ()
 Returns scaling factor between screen points and GL viewport pixels. More...
 
static Float_t GetPointLineScalingFactor ()
 Return extra scaling factor for points and lines. More...
 
static Int_t GetPickingRadius ()
 Returns picking radius. More...
 
static Float_t GetPointSizeScale ()
 Get global point-size scale. More...
 
static void SetPointSizeScale (Float_t scale)
 Set global point-size scale. More...
 
static Float_t GetLineWidthScale ()
 Returns global line-width scale. More...
 
static void SetLineWidthScale (Float_t scale)
 Set global line-width scale. More...
 
static void PointSize (Float_t point_size)
 Set the point-size, taking the global scaling into account. More...
 
static void LineWidth (Float_t line_width)
 Set the line-width, taking the global scaling into account. More...
 
static Float_t PointSize ()
 Get the point-size, taking the global scaling into account. More...
 
static Float_t LineWidth ()
 Get the line-width, taking the global scaling into account. More...
 
static void BeginExtendPickRegion (Float_t scale)
 
static void EndExtendPickRegion ()
 
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. More...
 
static void RenderPolyMarkers (const TAttMarker &marker, const std::vector< Double_t > &points, Double_t dX, Double_t dY, Double_t dZ)
 Render polymarkers at points specified by p-array. More...
 
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)
 Render markers as circular or square points. More...
 
static void RenderPoints (const TAttMarker &marker, const std::vector< Double_t > &points)
 Render markers as circular or square points. More...
 
static void RenderCrosses (const TAttMarker &marker, Float_t *p, Int_t n, Bool_t sec_selection=kFALSE)
 Render markers as crosses. More...
 
static void RenderCrosses (const TAttMarker &marker, const std::vector< Double_t > &points, Double_t dX, Double_t dY, Double_t dZ)
 Render markers as crosses. More...
 
static void RenderPolyLine (const TAttLine &aline, Char_t transp, Float_t *p, Int_t n, Int_t pick_radius=0, Bool_t selection=kFALSE)
 Render poly-line as specified by the p-array. More...
 
static void BeginAttLine (const TAttLine &aline, Char_t transp, Int_t pick_radius=0, Bool_t selection=kFALSE)
 Setup drawing parameters according to passed TAttLine. More...
 
static void EndAttLine (Int_t pick_radius=0, Bool_t selection=kFALSE)
 Restore previous line drawing state. More...
 
static void SetDrawColors (const UChar_t rgba[4])
 Set basic draw colors from 4 component 'rgba' Used by other TGLUtil drawing routines. More...
 
static void DrawSphere (const TGLVertex3 &position, Double_t radius, const UChar_t rgba[4])
 Draw sphere, centered on vertex 'position', with radius 'radius', color 'rgba'. More...
 
static void DrawLine (const TGLLine3 &line, ELineHeadShape head, Double_t size, const UChar_t rgba[4])
 Draw thick line (tube) defined by 'line', with head at end shape 'head' - box/arrow/none, (head) size 'size', color 'rgba'. More...
 
static void DrawLine (const TGLVertex3 &start, const TGLVector3 &vector, ELineHeadShape head, Double_t size, const UChar_t rgba[4])
 Draw thick line (tube) running from 'start', length 'vector', with head at end of shape 'head' - box/arrow/none, (head) size 'size', color 'rgba'. More...
 
static void DrawRing (const TGLVertex3 &center, const TGLVector3 &normal, Double_t radius, const UChar_t *rgba)
 Draw ring, centered on 'center', lying on plane defined by 'center' & 'normal' of outer radius 'radius', color 'rgba'. More...
 
static void DrawReferenceMarker (const TGLCamera &camera, const TGLVertex3 &pos, Float_t radius=3, const UChar_t *rgba=0)
 Draw a sphere- marker on world-coordinate 'pos' with pixel radius 'radius'. More...
 
static void DrawSimpleAxes (const TGLCamera &camera, const TGLBoundingBox &bbox, Int_t axesType)
 Draw simple xyz-axes for given bounding-box. More...
 
static void DrawNumber (const TString &num, const TGLVertex3 &pos, Bool_t center=kFALSE)
 Draw number in string 'num' via internal 8x8-pixel bitmap on vertex 'pos'. More...
 

Static Public Attributes

static const UChar_t fgRed [4] = { 230, 0, 0, 255 }
 
static const UChar_t fgGreen [4] = { 0, 230, 0, 255 }
 
static const UChar_t fgBlue [4] = { 0, 0, 230, 255 }
 
static const UChar_t fgYellow [4] = { 210, 210, 0, 255 }
 
static const UChar_t fgWhite [4] = { 255, 255, 255, 255 }
 
static const UChar_t fgGrey [4] = { 128, 128, 128, 100 }
 

Private Member Functions

 TGLUtil (const TGLUtil &)
 
TGLUtiloperator= (const TGLUtil &)
 

Static Private Attributes

static UInt_t fgDefaultDrawQuality = 10
 
static UInt_t fgDrawQuality = fgDefaultDrawQuality
 
static UInt_t fgColorLockCount = 0
 
static Float_t fgPointSize = 1.0f
 
static Float_t fgLineWidth = 1.0f
 
static Float_t fgPointSizeScale = 1.0f
 
static Float_t fgLineWidthScale = 1.0f
 
static Float_t fgScreenScalingFactor = 1.0f
 
static Float_t fgPointLineScalingFactor = 1.0f
 
static Int_t fgPickingRadius = 1
 

#include <TGLUtil.h>

Member Enumeration Documentation

Enumerator
kAxesNone 
kAxesEdge 
kAxesOrigin 

Definition at line 951 of file TGLUtil.h.

Enumerator
kLineHeadNone 
kLineHeadArrow 
kLineHeadBox 

Definition at line 950 of file TGLUtil.h.

Constructor & Destructor Documentation

TGLUtil::TGLUtil ( const TGLUtil )
private
virtual TGLUtil::~TGLUtil ( )
inlinevirtual

Definition at line 937 of file TGLUtil.h.

Member Function Documentation

void TGLUtil::BeginAttLine ( const TAttLine aline,
Char_t  transp,
Int_t  pick_radius = 0,
Bool_t  selection = kFALSE 
)
static

Setup drawing parameters according to passed TAttLine.

Definition at line 2233 of file TGLUtil.cxx.

void TGLUtil::BeginExtendPickRegion ( Float_t  scale)
static

Definition at line 1913 of file TGLUtil.cxx.

Referenced by TEveStraightLineSetGL::DirectDraw().

Int_t TGLUtil::CheckError ( const char *  loc)
static

Check current GL error state, outputting details via ROOT Error method if one.

Definition at line 1607 of file TGLUtil.cxx.

Referenced by TGLViewer::InitGL(), TGLViewer::PostDraw(), TGLViewer::PreDraw(), TGLViewerBase::RenderNonSelected(), TGLViewerBase::RenderOpaque(), TGLViewerBase::RenderSelected(), and TGLViewerBase::RenderTransparent().

TGLUtil::ClassDef ( TGLUtil  ,
 
)
void TGLUtil::Color ( const TGLColor color)
static
void TGLUtil::Color3f ( Float_t  r,
Float_t  g,
Float_t  b 
)
static

Wrapper for glColor3f.

Definition at line 1748 of file TGLUtil.cxx.

void TGLUtil::Color3fv ( const Float_t rgb)
static

Wrapper for glColor3fv.

Definition at line 1764 of file TGLUtil.cxx.

void TGLUtil::Color3ub ( UChar_t  r,
UChar_t  g,
UChar_t  b 
)
static

Wrapper for glColor3ub.

Definition at line 1716 of file TGLUtil.cxx.

void TGLUtil::Color3ubv ( const UChar_t rgb)
static

Wrapper for glColor3ubv.

Definition at line 1732 of file TGLUtil.cxx.

Referenced by TEveTriangleSetGL::DirectDraw(), and TEveDigitSetGL::SetupColor().

void TGLUtil::Color4f ( Float_t  r,
Float_t  g,
Float_t  b,
Float_t  a 
)
static

Wrapper for glColor4f.

Definition at line 1756 of file TGLUtil.cxx.

Referenced by TGLOverlayButton::Render(), and TEveCaloLegoOverlay::RenderPlaneInterface().

void TGLUtil::Color4fv ( const Float_t rgba)
static

Wrapper for glColor4fv.

Definition at line 1772 of file TGLUtil.cxx.

void TGLUtil::Color4ub ( UChar_t  r,
UChar_t  g,
UChar_t  b,
UChar_t  a 
)
static

Wrapper for glColor4ub.

Definition at line 1724 of file TGLUtil.cxx.

void TGLUtil::Color4ubv ( const UChar_t rgba)
static
void TGLUtil::ColorAlpha ( const TGLColor color,
UChar_t  alpha 
)
static

Set color from TGLColor and alpha value.

Definition at line 1666 of file TGLUtil.cxx.

Referenced by TGLViewer::FadeView(), and TGLPhysicalShape::SetupGLColors().

void TGLUtil::ColorAlpha ( const TGLColor color,
Float_t  alpha 
)
static

Set color from TGLColor and alpha value.

Definition at line 1677 of file TGLUtil.cxx.

void TGLUtil::ColorAlpha ( Color_t  color_index,
Float_t  alpha = 1 
)
static

Set color from color_index and GL-style alpha (default 1).

Definition at line 1688 of file TGLUtil.cxx.

void TGLUtil::ColorTransparency ( Color_t  color_index,
Char_t  transparency = 0 
)
static
void TGLUtil::DrawLine ( const TGLLine3 line,
ELineHeadShape  head,
Double_t  size,
const UChar_t  rgba[4] 
)
static

Draw thick line (tube) defined by 'line', with head at end shape 'head' - box/arrow/none, (head) size 'size', color 'rgba'.

Definition at line 2333 of file TGLUtil.cxx.

Referenced by TGLTransManip::Draw(), TGLScaleManip::Draw(), TGLRotateManip::Draw(), and TGLCameraGuide::Render().

void TGLUtil::DrawLine ( const TGLVertex3 start,
const TGLVector3 vector,
ELineHeadShape  head,
Double_t  size,
const UChar_t  rgba[4] 
)
static

Draw thick line (tube) running from 'start', length 'vector', with head at end of shape 'head' - box/arrow/none, (head) size 'size', color 'rgba'.

Definition at line 2344 of file TGLUtil.cxx.

void TGLUtil::DrawNumber ( const TString num,
const TGLVertex3 pos,
Bool_t  center = kFALSE 
)
static

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.

Definition at line 2595 of file TGLUtil.cxx.

void TGLUtil::DrawReferenceMarker ( const TGLCamera camera,
const TGLVertex3 pos,
Float_t  radius = 3,
const UChar_t rgba = 0 
)
static

Draw a sphere- marker on world-coordinate 'pos' with pixel radius 'radius'.

Color argument is optional.

Definition at line 2440 of file TGLUtil.cxx.

Referenced by TGLViewer::DrawGuides().

void TGLUtil::DrawRing ( const TGLVertex3 center,
const TGLVector3 normal,
Double_t  radius,
const UChar_t rgba 
)
static

Draw ring, centered on 'center', lying on plane defined by 'center' & 'normal' of outer radius 'radius', color 'rgba'.

Definition at line 2399 of file TGLUtil.cxx.

Referenced by TGLRotateManip::Draw().

void TGLUtil::DrawSimpleAxes ( const TGLCamera camera,
const TGLBoundingBox bbox,
Int_t  axesType 
)
static

Draw simple xyz-axes for given bounding-box.

Definition at line 2455 of file TGLUtil.cxx.

Referenced by TGLViewer::DrawGuides().

void TGLUtil::DrawSphere ( const TGLVertex3 position,
Double_t  radius,
const UChar_t  rgba[4] 
)
static

Draw sphere, centered on vertex 'position', with radius 'radius', color 'rgba'.

Definition at line 2318 of file TGLUtil.cxx.

Referenced by TGLTransManip::Draw(), TGLScaleManip::Draw(), TGLRotateManip::Draw(), TGLViewer::DrawDebugInfo(), TGLViewer::DrawGuides(), TGLCameraGuide::Render(), and TGLLightSet::StdSetupLights().

void TGLUtil::EndAttLine ( Int_t  pick_radius = 0,
Bool_t  selection = kFALSE 
)
static

Restore previous line drawing state.

Definition at line 2269 of file TGLUtil.cxx.

void TGLUtil::EndExtendPickRegion ( )
static

Definition at line 1928 of file TGLUtil.cxx.

Referenced by TEveStraightLineSetGL::DirectDraw().

UInt_t TGLUtil::GetDefaultDrawQuality ( )
static

static: get default draw quality

Definition at line 1590 of file TGLUtil.cxx.

UInt_t TGLUtil::GetDrawQuality ( )
static

static: get draw quality

Definition at line 1566 of file TGLUtil.cxx.

GLUtesselator * TGLUtil::GetDrawTesselator3dv ( )
static

Returns a tesselator for direct drawing when using 3-vertices with double precision.

Definition at line 1521 of file TGLUtil.cxx.

Referenced by TGLFaceSet::DirectDraw().

GLUtesselator * TGLUtil::GetDrawTesselator3fv ( )
static

Returns a tesselator for direct drawing when using 3-vertices with single precision.

Definition at line 1499 of file TGLUtil.cxx.

Referenced by TEvePolygonSetProjectedGL::DirectDraw().

GLUtesselator * TGLUtil::GetDrawTesselator4dv ( )
static

Returns a tesselator for direct drawing when using 4-vertices with double precision.

Definition at line 1532 of file TGLUtil.cxx.

GLUtesselator * TGLUtil::GetDrawTesselator4fv ( )
static

Returns a tesselator for direct drawing when using 4-vertices with single precision.

Definition at line 1510 of file TGLUtil.cxx.

Float_t TGLUtil::GetLineWidthScale ( )
static

Returns global line-width scale.

Definition at line 1860 of file TGLUtil.cxx.

Referenced by TGLScene::PreDraw().

Int_t TGLUtil::GetPickingRadius ( )
static

Returns picking radius.

Definition at line 1832 of file TGLUtil.cxx.

Referenced by TGLViewer::DoOverlaySelect(), TGLViewer::DoSecondarySelect(), and TGLViewer::DoSelect().

Float_t TGLUtil::GetPointLineScalingFactor ( )
static

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

Definition at line 1824 of file TGLUtil.cxx.

Float_t TGLUtil::GetPointSizeScale ( )
static

Get global point-size scale.

Definition at line 1844 of file TGLUtil.cxx.

Referenced by TGLScene::PreDraw().

Float_t TGLUtil::GetScreenScalingFactor ( )
static

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.

Definition at line 1813 of file TGLUtil.cxx.

Referenced by TGLPhysicalShape::Draw(), Rgl::DrawPaletteAxis(), TGLHistPainter::ExecuteEvent(), TGLPlotBox::FindFrontPoint(), TGLHistPainter::GetObjectInfo(), TGLHistPainter::PadToViewport(), TGLPlotPainter::Paint(), TGLPlotPainter::PlotSelected(), and TGLPadPainter::SelectDrawable().

void TGLUtil::InitializeIfNeeded ( )
static
Bool_t TGLUtil::IsColorLocked ( )
static

Returns true if color lock-count is greater than 0.

Definition at line 1650 of file TGLUtil.cxx.

void TGLUtil::LineWidth ( Float_t  line_width)
static

Set the line-width, taking the global scaling into account.

Wrapper for glLineWidth.

Definition at line 1887 of file TGLUtil.cxx.

Float_t TGLUtil::LineWidth ( )
static
UInt_t TGLUtil::LockColor ( )
static
TGLUtil& TGLUtil::operator= ( const TGLUtil )
private
void TGLUtil::PointSize ( Float_t  point_size)
static

Set the point-size, taking the global scaling into account.

Wrapper for glPointSize.

Definition at line 1877 of file TGLUtil.cxx.

Float_t TGLUtil::PointSize ( )
static

Get the point-size, taking the global scaling into account.

Definition at line 1896 of file TGLUtil.cxx.

Referenced by TGLPolyMarker::DirectDraw(), RenderCrosses(), TEveCaloLegoOverlay::RenderPlaneInterface(), and RenderPoints().

void TGLUtil::PointToViewport ( Int_t x,
Int_t y 
)
static
void TGLUtil::PointToViewport ( Int_t x,
Int_t y,
Int_t w,
Int_t h 
)
static

Convert from point/screen coordinates to GL viewport coordinates.

Definition at line 1796 of file TGLUtil.cxx.

void TGLUtil::RenderCrosses ( const TAttMarker marker,
Float_t op,
Int_t  n,
Bool_t  sec_selection = kFALSE 
)
static

Render markers as crosses.

Color is never changed.

Definition at line 2101 of file TGLUtil.cxx.

void TGLUtil::RenderCrosses ( const TAttMarker marker,
const std::vector< Double_t > &  points,
Double_t  dX,
Double_t  dY,
Double_t  dZ 
)
static

Render markers as crosses.

Color is never changed.

Definition at line 2175 of file TGLUtil.cxx.

void TGLUtil::RenderPoints ( const TAttMarker marker,
Float_t op,
Int_t  n,
Int_t  pick_radius = 0,
Bool_t  selection = kFALSE,
Bool_t  sec_selection = kFALSE 
)
static

Render markers as circular or square points.

Color is never changed.

Definition at line 1981 of file TGLUtil.cxx.

void TGLUtil::RenderPoints ( const TAttMarker marker,
const std::vector< Double_t > &  points 
)
static

Render markers as circular or square points.

Color is never changed.

Definition at line 2052 of file TGLUtil.cxx.

void TGLUtil::RenderPolyLine ( const TAttLine aline,
Char_t  transp,
Float_t p,
Int_t  n,
Int_t  pick_radius = 0,
Bool_t  selection = kFALSE 
)
static

Render poly-line as specified by the p-array.

Definition at line 2213 of file TGLUtil.cxx.

Referenced by TEveTrackProjectedGL::DirectDraw(), and TEveLineGL::DirectDraw().

void TGLUtil::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

Render polymarkers at points specified by p-array.

Supports point and cross-like styles.

Definition at line 1941 of file TGLUtil.cxx.

Referenced by TPointSet3DGL::DirectDraw(), TEveTrackProjectedGL::DirectDraw(), TEveLineGL::DirectDraw(), TEveStraightLineSetGL::DirectDraw(), TGLBoxPainter::DrawCloud(), and TEveTrackGL::RenderPathMarksAndFirstVertex().

void TGLUtil::RenderPolyMarkers ( const TAttMarker marker,
const std::vector< Double_t > &  points,
Double_t  dX,
Double_t  dY,
Double_t  dZ 
)
static

Render polymarkers at points specified by p-array.

Supports point and cross-like styles. Color is set externally. Lighting is disabled externally.

Definition at line 1967 of file TGLUtil.cxx.

void TGLUtil::ResetDrawQuality ( )
static

static: reset draw quality

Definition at line 1582 of file TGLUtil.cxx.

Referenced by TGLManipSet::Render().

void TGLUtil::SetDefaultDrawQuality ( UInt_t  dq)
static

static: set default draw quality

Definition at line 1598 of file TGLUtil.cxx.

void TGLUtil::SetDrawColors ( const UChar_t  rgbai[4])
static

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

Definition at line 2297 of file TGLUtil.cxx.

Referenced by DrawRing().

void TGLUtil::SetDrawQuality ( UInt_t  dq)
static
void TGLUtil::SetLineWidthScale ( Float_t  scale)
static

Set global line-width scale.

Definition at line 1868 of file TGLUtil.cxx.

Referenced by TGLViewer::PostRender(), and TGLViewer::PreRender().

void TGLUtil::SetPointSizeScale ( Float_t  scale)
static

Set global point-size scale.

Definition at line 1852 of file TGLUtil.cxx.

Referenced by TGLViewer::PostRender(), and TGLViewer::PreRender().

UInt_t TGLUtil::UnlockColor ( )
static

Member Data Documentation

const UChar_t TGLUtil::fgBlue = { 0, 0, 230, 255 }
static

Definition at line 1053 of file TGLUtil.h.

Referenced by TGLManip::ColorFor(), and TGLCameraGuide::Render().

UInt_t TGLUtil::fgColorLockCount = 0
staticprivate

Definition at line 922 of file TGLUtil.h.

UInt_t TGLUtil::fgDefaultDrawQuality = 10
staticprivate

Definition at line 919 of file TGLUtil.h.

UInt_t TGLUtil::fgDrawQuality = fgDefaultDrawQuality
staticprivate

Definition at line 920 of file TGLUtil.h.

const UChar_t TGLUtil::fgGreen = { 0, 230, 0, 255 }
static
const UChar_t TGLUtil::fgGrey = { 128, 128, 128, 100 }
static
Float_t TGLUtil::fgLineWidth = 1.0f
staticprivate

Definition at line 925 of file TGLUtil.h.

Float_t TGLUtil::fgLineWidthScale = 1.0f
staticprivate

Definition at line 927 of file TGLUtil.h.

Int_t TGLUtil::fgPickingRadius = 1
staticprivate

Definition at line 931 of file TGLUtil.h.

Float_t TGLUtil::fgPointLineScalingFactor = 1.0f
staticprivate

Definition at line 930 of file TGLUtil.h.

Float_t TGLUtil::fgPointSize = 1.0f
staticprivate

Definition at line 924 of file TGLUtil.h.

Float_t TGLUtil::fgPointSizeScale = 1.0f
staticprivate

Definition at line 926 of file TGLUtil.h.

const UChar_t TGLUtil::fgRed = { 230, 0, 0, 255 }
static

Definition at line 1051 of file TGLUtil.h.

Referenced by TGLManip::ColorFor(), and TGLCameraGuide::Render().

Float_t TGLUtil::fgScreenScalingFactor = 1.0f
staticprivate

Definition at line 929 of file TGLUtil.h.

const UChar_t TGLUtil::fgWhite = { 255, 255, 255, 255 }
static
const UChar_t TGLUtil::fgYellow = { 210, 210, 0, 255 }
static

The documentation for this class was generated from the following files: