Namespaces | |
namespace | Fgt |
namespace | Mc |
namespace | Pad |
Classes | |
class | PlotTranslation |
class | TGuardBase |
class | TOneArgGuard |
class | TTwoArgsGuard |
Typedefs | |
typedef std::pair< Int_t, Int_t > | BinRange_t |
typedef std::pair< Double_t, Double_t > | Range_t |
Enumerations | |
enum | EFormatOptions { kNone = 0 , kDoubleBuffer = 1 , kDepth = 2 , kAccum = 4 , kStencil = 8 , kStereo = 16 , kMultiSample = 32 } |
enum | EOverlap { kInside = 0 , kPartial , kOutside } |
Variables | |
const Int_t | gAxisType [][2] = {{1, 0}, {0, 1}, {1, 0}, {0, 1}} |
const Float_t | gBlueEmission [] = {0.f, 0.f, 1.f, 1.f} |
const Double_t | gBoxBackNormals [][3] = {{0., -1., 0.}, {-1., 0., 0.}, {0., 1., 0.}, {1., 0., 0.}} |
const Int_t | gBoxBackPlanes [][2] = {{0, 1}, {3, 0}, {2, 3}, {1, 2}} |
const Int_t | gBoxBackQuads [][4] = {{7, 1, 2, 6}, {4, 7, 6, 5}, {0, 4, 5, 3}, {0, 3, 2, 1}} |
const Double_t | gBoxFrontNormals [][3] = {{-1., 0., 0.}, {0., -1., 0.}, {1., 0., 0.}, {0., 1., 0.}} |
const Int_t | gBoxFrontPlanes [][2] = {{0, 1}, {1, 2}, {2, 3}, {3, 0}} |
const Int_t | gBoxFrontQuads [][4] = {{0, 1, 2, 3}, {4, 0, 3, 5}, {4, 5, 6, 7}, {7, 6, 2, 1}} |
const Int_t | gFramePoints [][2] = {{3, 1}, {0, 2}, {1, 3}, {2, 0}} |
const Float_t | gGrayEmission [] = {0.3f,0.3f, 0.3f,1.f} |
const Float_t | gGreenEmission [] = {0.f, 1.f, 0.f, 1.f} |
const Double_t | gH2PolyScaleXY = 1.2 |
const Float_t | gNullEmission [] = {0.f, 0.f, 0.f, 1.f} |
const Float_t | gOrangeEmission [] = {1.f, 0.4f, 0.f, 1.f} |
const Float_t | gRedEmission [] = {1.f, 0.f, 0.f, 1.f} |
const Float_t | gWhiteEmission [] = {1.f, 1.f, 1.f, 1.f} |
Enumerator | |
---|---|
kNone | |
kDoubleBuffer | |
kDepth | |
kAccum | |
kStencil | |
kStereo | |
kMultiSample |
Definition at line 126 of file TVirtualGL.h.
Definition at line 2916 of file TGLUtil.cxx.
Definition at line 3319 of file TGLUtil.cxx.
Definition at line 3333 of file TGLUtil.cxx.
void Rgl::Draw2DAxis | ( | TAxis * | axis, |
Double_t | xMin, | ||
Double_t | yMin, | ||
Double_t | xMax, | ||
Double_t | yMax, | ||
Double_t | min, | ||
Double_t | max, | ||
Bool_t | log, | ||
Bool_t | z = kFALSE ) |
Definition at line 3702 of file TGLUtil.cxx.
void Rgl::DrawAxes | ( | Int_t | frontPoint, |
const Int_t * | viewport, | ||
const TGLVertex3 * | box2D, | ||
const TGLPlotCoordinates * | plotCoord, | ||
TAxis * | xAxis, | ||
TAxis * | yAxis, | ||
TAxis * | zAxis ) |
Using front point, find, where to draw axes and which labels to use for them gVirtualX->SelectWindow(gGLManager->GetVirtualXInd(fGLDevice)); gVirtualX->SetDrawMode(TVirtualX::kCopy);//TCanvas by default sets in kInverse.
Definition at line 3758 of file TGLUtil.cxx.
void Rgl::DrawBoxFront | ( | Double_t | xMin, |
Double_t | xMax, | ||
Double_t | yMin, | ||
Double_t | yMax, | ||
Double_t | zMin, | ||
Double_t | zMax, | ||
Int_t | fp ) |
Draws lego's bar as a 3d box.
Definition at line 3006 of file TGLUtil.cxx.
void Rgl::DrawBoxFrontTextured | ( | Double_t | xMin, |
Double_t | xMax, | ||
Double_t | yMin, | ||
Double_t | yMax, | ||
Double_t | zMin, | ||
Double_t | zMax, | ||
Double_t | tMin, | ||
Double_t | tMax, | ||
Int_t | front ) |
Draws lego's bar as a 3d box LULULULU.
Definition at line 3133 of file TGLUtil.cxx.
void Rgl::DrawBoxWithGradientFill | ( | Double_t | y1, |
Double_t | y2, | ||
Double_t | x1, | ||
Double_t | x2, | ||
const Double_t * | rgba1, | ||
const Double_t * | rgba2 ) |
Definition at line 3196 of file TGLUtil.cxx.
void Rgl::DrawCylinder | ( | TGLQuadric * | quadric, |
Double_t | xMin, | ||
Double_t | xMax, | ||
Double_t | yMin, | ||
Double_t | yMax, | ||
Double_t | zMin, | ||
Double_t | zMax ) |
Cylinder for lego3.
Definition at line 3243 of file TGLUtil.cxx.
void Rgl::DrawError | ( | Double_t | xMin, |
Double_t | xMax, | ||
Double_t | yMin, | ||
Double_t | yMax, | ||
Double_t | zMin, | ||
Double_t | zMax ) |
Definition at line 3297 of file TGLUtil.cxx.
void Rgl::DrawFaceTextured | ( | const TGLVertex3 & | v1, |
const TGLVertex3 & | v2, | ||
const TGLVertex3 & | v3, | ||
Double_t | t1, | ||
Double_t | t2, | ||
Double_t | t3, | ||
const TGLVector3 & | norm1, | ||
const TGLVector3 & | norm2, | ||
const TGLVector3 & | norm3 ) |
Draw textured triangle.
Definition at line 3835 of file TGLUtil.cxx.
void Rgl::DrawFaceTextured | ( | const TGLVertex3 & | v1, |
const TGLVertex3 & | v2, | ||
const TGLVertex3 & | v3, | ||
Double_t | t1, | ||
Double_t | t2, | ||
Double_t | t3, | ||
Double_t | z, | ||
const TGLVector3 & | planeNormal ) |
Draw textured triangle on a plane.
Definition at line 3855 of file TGLUtil.cxx.
void Rgl::DrawMapleMesh | ( | const std::vector< Double_t > & | vs, |
const std::vector< Double_t > & | ns, | ||
const std::vector< UInt_t > & | ts ) |
Colored mesh with lighting disabled.
Definition at line 192 of file TGLIsoMesh.cxx.
void Rgl::DrawMapleMesh | ( | const std::vector< Double_t > & | vs, |
const std::vector< Double_t > & | ns, | ||
const std::vector< UInt_t > & | ts, | ||
const TGLBoxCut & | box ) |
Colored mesh with cut and disabled lighting.
Definition at line 224 of file TGLIsoMesh.cxx.
void Rgl::DrawMesh | ( | const std::vector< Double_t > & | vs, |
const std::vector< Double_t > & | ns, | ||
const std::vector< UInt_t > & | ts ) |
Call function-template.
Definition at line 48 of file TGLIsoMesh.cxx.
void Rgl::DrawMesh | ( | const std::vector< Double_t > & | vs, |
const std::vector< Double_t > & | ns, | ||
const std::vector< UInt_t > & | ts, | ||
const TGLBoxCut & | box ) |
Call function-template.
Definition at line 127 of file TGLIsoMesh.cxx.
Call function-template.
Definition at line 77 of file TGLIsoMesh.cxx.
void Rgl::DrawMesh | ( | const std::vector< Double_t > & | vs, |
const std::vector< UInt_t > & | ts, | ||
const TGLBoxCut & | box ) |
Call function-template.
Definition at line 171 of file TGLIsoMesh.cxx.
void Rgl::DrawMesh | ( | const std::vector< Float_t > & | vs, |
const std::vector< Float_t > & | ns, | ||
const std::vector< UInt_t > & | ts ) |
Call function-template.
Definition at line 39 of file TGLIsoMesh.cxx.
void Rgl::DrawMesh | ( | const std::vector< Float_t > & | vs, |
const std::vector< Float_t > & | ns, | ||
const std::vector< UInt_t > & | ts, | ||
const TGLBoxCut & | box ) |
Call function-template.
Definition at line 118 of file TGLIsoMesh.cxx.
Call function-template.
Definition at line 69 of file TGLIsoMesh.cxx.
void Rgl::DrawMesh | ( | const std::vector< Float_t > & | vs, |
const std::vector< UInt_t > & | ts, | ||
const TGLBoxCut & | box ) |
Call function-template.
Definition at line 163 of file TGLIsoMesh.cxx.
void Rgl::DrawMesh | ( | GLenum | type, |
const std::vector< V > & | vs, | ||
const std::vector< UInt_t > & | fTS ) |
Only vertices, no normal (no lighting and material).
Definition at line 58 of file TGLIsoMesh.cxx.
void Rgl::DrawMesh | ( | GLenum | type, |
const std::vector< V > & | vs, | ||
const std::vector< V > & | ns, | ||
const std::vector< UInt_t > & | fTS ) |
Surface with material and lighting.
Definition at line 24 of file TGLIsoMesh.cxx.
void Rgl::DrawPalette | ( | const TGLPlotCamera * | camera, |
const TGLLevelPalette & | palette ) |
Draw. Palette.
Definition at line 2110 of file TGLPlotPainter.cxx.
void Rgl::DrawPalette | ( | const TGLPlotCamera * | camera, |
const TGLLevelPalette & | palette, | ||
const std::vector< Double_t > & | levels ) |
Draw. Palette.
Definition at line 2159 of file TGLPlotPainter.cxx.
void Rgl::DrawPaletteAxis | ( | const TGLPlotCamera * | camera, |
const Range_t & | minMax, | ||
Bool_t | logZ ) |
Definition at line 2216 of file TGLPlotPainter.cxx.
void Rgl::DrawQuadFilled | ( | const Double_t * | v0, |
const Double_t * | v1, | ||
const Double_t * | v2, | ||
const Double_t * | v3, | ||
const Double_t * | normal ) |
Draw quad face.
Definition at line 2967 of file TGLUtil.cxx.
void Rgl::DrawQuadFilled | ( | const TGLVertex3 & | v0, |
const TGLVertex3 & | v1, | ||
const TGLVertex3 & | v2, | ||
const TGLVertex3 & | v3, | ||
const TGLVector3 & | normal ) |
Draw quad face.
Definition at line 2952 of file TGLUtil.cxx.
void Rgl::DrawQuadOutline | ( | const TGLVertex3 & | v1, |
const TGLVertex3 & | v2, | ||
const TGLVertex3 & | v3, | ||
const TGLVertex3 & | v4 ) |
Draw quad outline.
Definition at line 2938 of file TGLUtil.cxx.
void Rgl::DrawQuadStripWithRadialGradientFill | ( | unsigned | nPoints, |
const Double_t * | inner, | ||
const Double_t * | innerRGBA, | ||
const Double_t * | outer, | ||
const Double_t * | outerRGBA ) |
TODO: is it possible to use GLdouble to avoid problems with Double_t/GLdouble if they are not the same type?
Definition at line 3216 of file TGLUtil.cxx.
void Rgl::DrawSmoothFace | ( | const TGLVertex3 & | v1, |
const TGLVertex3 & | v2, | ||
const TGLVertex3 & | v3, | ||
const TGLVector3 & | norm1, | ||
const TGLVector3 & | norm2, | ||
const TGLVector3 & | norm3 ) |
Draws triangle face, each vertex has its own averaged normal.
Definition at line 2982 of file TGLUtil.cxx.
void Rgl::DrawSphere | ( | TGLQuadric * | quadric, |
Double_t | xMin, | ||
Double_t | xMax, | ||
Double_t | yMin, | ||
Double_t | yMax, | ||
Double_t | zMin, | ||
Double_t | zMax ) |
Cylinder for lego3.
Definition at line 3274 of file TGLUtil.cxx.
void Rgl::DrawTransparentBox | ( | Double_t | xMin, |
Double_t | xMax, | ||
Double_t | yMin, | ||
Double_t | yMax, | ||
Double_t | zMin, | ||
Double_t | zMax, | ||
Int_t | fp ) |
Draws lego's bar as a 3d box.
Definition at line 3056 of file TGLUtil.cxx.
void Rgl::DrawTrapezoid | ( | const Double_t | ver[][2], |
Double_t | zMin, | ||
Double_t | zMax, | ||
Bool_t | color = kTRUE ) |
Definition at line 3347 of file TGLUtil.cxx.
Definition at line 3590 of file TGLUtil.cxx.
void Rgl::DrawTrapezoidTextured | ( | const Double_t | ver[][2], |
Double_t | zMin, | ||
Double_t | zMax, | ||
Double_t | texMin, | ||
Double_t | texMax ) |
In polar coordinates, box became trapezoid.
Four faces need normal calculations.
Definition at line 3417 of file TGLUtil.cxx.
Definition at line 3648 of file TGLUtil.cxx.
void Rgl::DrawTrapezoidTextured2 | ( | const Double_t | ver[][2], |
Double_t | zMin, | ||
Double_t | zMax, | ||
Double_t | tMin, | ||
Double_t | tMax ) |
In polar coordinates, box became trapezoid.
Definition at line 3494 of file TGLUtil.cxx.
This function creates color for parametric surface's vertex, using its 'u' value.
I've found it in one of Apple's Carbon tutorials , and it's based on Paul Bourke work. Very nice colors!!! :)
Definition at line 3876 of file TGLUtil.cxx.
TOneArgGuard< Func, Arg > Rgl::make_guard | ( | Func | f, |
Arg | a ) |
TTwoArgsGuard< Func, Arg1, Arg2 > Rgl::make_guard | ( | Func | f, |
Arg1 | a1, | ||
Arg2 | a2 ) |
NormalToColor generates a color from a given normal.
Definition at line 179 of file TGLIsoMesh.cxx.
Object id encoded as rgb triplet.
Definition at line 2890 of file TGLUtil.cxx.
void Rgl::SetZLevels | ( | TAxis * | zAxis, |
Double_t | zMin, | ||
Double_t | zMax, | ||
Double_t | zScale, | ||
std::vector< Double_t > & | zLevels ) |
Definition at line 3819 of file TGLUtil.cxx.
Definition at line 3558 of file TGLUtil.cxx.
Definition at line 3574 of file TGLUtil.cxx.
Definition at line 3751 of file TGLUtil.cxx.
Definition at line 2842 of file TGLUtil.cxx.
const Double_t Rgl::gBoxBackNormals[][3] = {{0., -1., 0.}, {-1., 0., 0.}, {0., 1., 0.}, {1., 0., 0.}} |
Definition at line 3000 of file TGLUtil.cxx.
Definition at line 3001 of file TGLUtil.cxx.
Definition at line 2999 of file TGLUtil.cxx.
const Double_t Rgl::gBoxFrontNormals[][3] = {{-1., 0., 0.}, {0., -1., 0.}, {1., 0., 0.}, {0., 1., 0.}} |
Definition at line 2996 of file TGLUtil.cxx.
Definition at line 2997 of file TGLUtil.cxx.
Definition at line 2995 of file TGLUtil.cxx.
Definition at line 3749 of file TGLUtil.cxx.
Definition at line 2845 of file TGLUtil.cxx.
Definition at line 2841 of file TGLUtil.cxx.
Definition at line 2256 of file TGLPlotPainter.cxx.
Definition at line 2846 of file TGLUtil.cxx.
Definition at line 2843 of file TGLUtil.cxx.