ROOT » GRAF3D » GL » Rgl

namespace Rgl


TGLVertex3

3 component (x/y/z) vertex class

This is part of collection of simple utility classes for GL only in
TGLUtil.h/cxx. These provide const and non-const accessors Arr() &
CArr() to a GL compatible internal field - so can be used directly
with OpenGL C API calls - which TVector3 etc cannot (easily).
They are not intended to be fully featured just provide minimum
required.

Function Members (Methods)

public:
Int_tColorToObjectID(const UChar_t* color, Bool_t highColor)
voidDrawAxes(Int_t frontPoint, const Int_t* viewport, const TGLVertex3* box2D, const TGLPlotCoordinates* plotCoord, TAxis* xAxis, TAxis* yAxis, TAxis* zAxis)
voidDrawBoxFront(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax, Int_t fp)
voidDrawBoxFrontTextured(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)
voidDrawBoxWithGradientFill(Double_t y1, Double_t y2, Double_t x1, Double_t x2, const Double_t* rgba1, const Double_t* rgba2)
voidDrawCylinder(TGLQuadric* quadric, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
voidDrawError(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
voidDrawFaceTextured(const TGLVertex3& v1, const TGLVertex3& v2, const TGLVertex3& v3, Double_t t1, Double_t t2, Double_t t3, Double_t z, const TGLVector3& planeNormal)
voidDrawFaceTextured(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)
voidDrawMapleMesh(const vector<Double_t>& vs, const vector<Double_t>& ns, const vector<UInt_t>& ts)
voidDrawMapleMesh(const vector<Double_t>& vs, const vector<Double_t>& ns, const vector<UInt_t>& ts, const TGLBoxCut& box)
voidDrawMesh(const vector<Float_t>& vs, const vector<UInt_t>& fTS)
voidDrawMesh(const vector<Double_t>& vs, const vector<UInt_t>& fTS)
voidDrawMesh(const vector<Float_t>& vs, const vector<Float_t>& ns, const vector<UInt_t>& ts)
voidDrawMesh(const vector<Double_t>& vs, const vector<Double_t>& ns, const vector<UInt_t>& ts)
voidDrawMesh(const vector<Float_t>& vs, const vector<UInt_t>& ts, const TGLBoxCut& box)
voidDrawMesh(const vector<Double_t>& vs, const vector<UInt_t>& ts, const TGLBoxCut& box)
voidDrawMesh(const vector<Float_t>& vs, const vector<Float_t>& ns, const vector<UInt_t>& ts, const TGLBoxCut& box)
voidDrawMesh(const vector<Double_t>& vs, const vector<Double_t>& ns, const vector<UInt_t>& ts, const TGLBoxCut& box)
voidDrawPalette(const TGLPlotCamera* camera, const TGLLevelPalette& palette)
voidDrawPalette(const TGLPlotCamera* camera, const TGLLevelPalette& palette, const vector<Double_t>& levels)
voidDrawPaletteAxis(const TGLPlotCamera* camera, const Rgl::Range_t& minMax, Bool_t logZ)
voidDrawQuadFilled(const TGLVertex3& v0, const TGLVertex3& v1, const TGLVertex3& v2, const TGLVertex3& v3, const TGLVector3& normal)
voidDrawQuadFilled(const Double_t* v0, const Double_t* v1, const Double_t* v2, const Double_t* v3, const Double_t* normal)
voidDrawQuadOutline(const TGLVertex3& v1, const TGLVertex3& v2, const TGLVertex3& v3, const TGLVertex3& v4)
voidDrawQuadStripWithRadialGradientFill(unsigned int nPoints, const Double_t* inner, const Double_t* innerRGBA, const Double_t* outer, const Double_t* outerRGBA)
voidDrawSmoothFace(const TGLVertex3& v1, const TGLVertex3& v2, const TGLVertex3& v3, const TGLVector3& norm1, const TGLVector3& norm2, const TGLVector3& norm3)
voidDrawSphere(TGLQuadric* quadric, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
voidDrawTransparentBox(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax, Int_t fp)
voidDrawTrapezoid(const Double_t[][3] ver)
voidDrawTrapezoid(const Double_t[][2] ver, Double_t zMin, Double_t zMax, Bool_t color = kTRUE)
voidDrawTrapezoidTextured(const Double_t[][3] ver, Double_t texMin, Double_t texMax)
voidDrawTrapezoidTextured(const Double_t[][2] ver, Double_t zMin, Double_t zMax, Double_t tMin, Double_t tMax)
voidDrawTrapezoidTextured2(const Double_t[][2] ver, Double_t zMin, Double_t zMax, Double_t tMin, Double_t tMax)
voidGetColor(Float_t v, Float_t vmin, Float_t vmax, Int_t type, Float_t* rgba)
voidObjectIDToColor(Int_t objectID, Bool_t highColor)
voidSetZLevels(TAxis* zAxis, Double_t zMin, Double_t zMax, Double_t zScale, vector<Double_t>& zLevels)

Data Members

Class Charts

Function documentation

void DrawSphere(const TGLVertex3 & position, Double_t radius, const UChar_t rgba[4])
void ObjectIDToColor(Int_t objectID, Bool_t highColor)
Int_t ColorToObjectID(const UChar_t* color, Bool_t highColor)
void DrawQuadOutline(const TGLVertex3& v1, const TGLVertex3& v2, const TGLVertex3& v3, const TGLVertex3& v4)
void DrawQuadFilled(const Double_t* v0, const Double_t* v1, const Double_t* v2, const Double_t* v3, const Double_t* normal)
void DrawBoxFront(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax, Int_t fp)
void 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)
void DrawQuadStripWithRadialGradientFill(unsigned int nPoints, const Double_t* inner, const Double_t* innerRGBA, const Double_t* outer, const Double_t* outerRGBA)
void DrawTrapezoidTextured(const Double_t[][3] ver, Double_t texMin, Double_t texMax)
void DrawTrapezoidTextured2(const Double_t[][2] ver, Double_t zMin, Double_t zMax, Double_t tMin, Double_t tMax)
void DrawError(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
void DrawTrapezoid(const Double_t[][3] ver)
void DrawAxes(Int_t frontPoint, const Int_t* viewport, const TGLVertex3* box2D, const TGLPlotCoordinates* plotCoord, TAxis* xAxis, TAxis* yAxis, TAxis* zAxis)
void 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)
void GetColor(Float_t v, Float_t vmin, Float_t vmax, Int_t type, Float_t* rgba)