TGLUtil.cxx File Reference

#include <algorithm>
#include <string>
#include <map>
#include "THLimitsFinder.h"
#include "TVirtualPad.h"
#include "TVirtualX.h"
#include "Riostream.h"
#include "TStyle.h"
#include "TGaxis.h"
#include "TColor.h"
#include "TError.h"
#include "TH1.h"
#include "TMath.h"
#include "TROOT.h"
#include "TClass.h"
#include "TGLBoundingBox.h"
#include "TGLCamera.h"
#include "TGLPlotPainter.h"
#include "TGLIncludes.h"
#include "TGLQuadric.h"
#include "TGLUtil.h"

Go to the source code of this file.

Namespaces

namespace  Rgl

Typedefs

typedef std::map< Int_t, RGB_t > Rgl::ColorLookupTable_t
typedef ColorLookupTable_t::const_iterator Rgl::CLTCI_t
typedef std::map< RGB_t, Int_tRgl::ObjectLookupTable_t
typedef ObjectLookupTable_t::const_iterator Rgl::OLTCI_t

Functions

 ClassImp (TGLVertex3)
 ClassImp (TGLVector3)
 ClassImp (TGLLine3)
 ClassImp (TGLRect)
 ClassImp (TGLPlane)
std::pair< Bool_t, TGLLine3Intersection (const TGLPlane &p1, const TGLPlane &p2)
std::pair< Bool_t, TGLVertex3Intersection (const TGLPlane &p1, const TGLPlane &p2, const TGLPlane &p3)
std::pair< Bool_t, TGLVertex3Intersection (const TGLPlane &plane, const TGLLine3 &line, Bool_t extend)
 ClassImp (TGLMatrix)
 ClassImp (TGLColor)
 ClassImp (TGLColorSet)
 ClassImp (TGLUtil)
 ClassImp (TGLSelectionBuffer)
Bool_t Rgl::operator< (const RGB_t &lhs, const RGB_t &rhs)
void Rgl::ObjectIDToColor (Int_t objectID, Bool_t highColor)
Int_t Rgl::ColorToObjectID (const UChar_t *color, Bool_t highColor)
void Rgl::DrawQuadOutline (const TGLVertex3 &v1, const TGLVertex3 &v2, const TGLVertex3 &v3, const TGLVertex3 &v4)
void Rgl::DrawQuadFilled (const TGLVertex3 &v0, const TGLVertex3 &v1, const TGLVertex3 &v2, const TGLVertex3 &v3, const TGLVector3 &normal)
void Rgl::DrawQuadFilled (const Double_t *v0, const Double_t *v1, const Double_t *v2, const Double_t *v3, const Double_t *normal)
void Rgl::DrawSmoothFace (const TGLVertex3 &v1, const TGLVertex3 &v2, const TGLVertex3 &v3, const TGLVector3 &norm1, const TGLVector3 &norm2, const TGLVector3 &norm3)
void Rgl::DrawBoxFront (Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax, Int_t fp)
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)
void Rgl::DrawCylinder (TGLQuadric *quadric, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
void Rgl::DrawSphere (TGLQuadric *quadric, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
void Rgl::DrawError (Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
void Rgl::CylindricalNormal (const Double_t *v, Double_t *normal)
void Rgl::CylindricalNormalInv (const Double_t *v, Double_t *normal)
void Rgl::DrawTrapezoid (const Double_t ver[][2], Double_t zMin, Double_t zMax, Bool_t color=kTRUE)
void Rgl::DrawTrapezoidTextured (const Double_t ver[][2], Double_t zMin, Double_t zMax, Double_t tMin, Double_t tMax)
void Rgl::DrawTrapezoidTextured2 (const Double_t ver[][2], Double_t zMin, Double_t zMax, Double_t tMin, Double_t tMax)
void Rgl::SphericalNormal (const Double_t *v, Double_t *normal)
void Rgl::SphericalNormalInv (const Double_t *v, Double_t *normal)
void Rgl::DrawTrapezoid (const Double_t ver[][3])
void Rgl::DrawTrapezoidTextured (const Double_t ver[][3], Double_t texMin, Double_t texMax)
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)
void Rgl::DrawAxes (Int_t frontPoint, const Int_t *viewport, const TGLVertex3 *box2D, const TGLPlotCoordinates *plotCoord, TAxis *xAxis, TAxis *yAxis, TAxis *zAxis)
void Rgl::SetZLevels (TAxis *zAxis, Double_t zMin, Double_t zMax, Double_t zScale, std::vector< Double_t > &zLevels)
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)
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)
void Rgl::GetColor (Float_t v, Float_t vmin, Float_t vmax, Int_t type, Float_t *rgba)

Variables

const Float_t Rgl::gRedEmission [] = {1.f, 0.f, 0.f, 1.f}
const Float_t Rgl::gGreenEmission [] = {0.f, 1.f, 0.f, 1.f}
const Float_t Rgl::gBlueEmission [] = {0.f, 0.f, 1.f, 1.f}
const Float_t Rgl::gOrangeEmission [] = {1.f, 0.4f, 0.f, 1.f}
const Float_t Rgl::gWhiteEmission [] = {1.f, 1.f, 1.f, 1.f}
const Float_t Rgl::gGrayEmission [] = {0.3f,0.3f, 0.3f,1.f}
const Float_t Rgl::gNullEmission [] = {0.f, 0.f, 0.f, 1.f}
RGB_t Rgl::gColorTriplets []
ColorLookupTable_t Rgl::gObjectIDToColor
ObjectLookupTable_t Rgl::gColorToObjectID
const Int_t Rgl::gBoxFrontQuads [][4] = {{0, 1, 2, 3}, {4, 0, 3, 5}, {4, 5, 6, 7}, {7, 6, 2, 1}}
const Double_t Rgl::gBoxFrontNormals [][3] = {{-1., 0., 0.}, {0., -1., 0.}, {1., 0., 0.}, {0., 1., 0.}}
const Int_t Rgl::gBoxFrontPlanes [][2] = {{0, 1}, {1, 2}, {2, 3}, {3, 0}}
const Int_t Rgl::gFramePoints [][2] = {{3, 1}, {0, 2}, {1, 3}, {2, 0}}
const Int_t Rgl::gAxisType [][2] = {{1, 0}, {0, 1}, {1, 0}, {0, 1}}


Function Documentation

ClassImp ( TGLSelectionBuffer   ) 

ClassImp ( TGLUtil   ) 

ClassImp ( TGLColorSet   ) 

ClassImp ( TGLColor   ) 

ClassImp ( TGLMatrix   ) 

ClassImp ( TGLPlane   ) 

ClassImp ( TGLRect   ) 

ClassImp ( TGLLine3   ) 

ClassImp ( TGLVector3   ) 

ClassImp ( TGLVertex3   ) 

std::pair<Bool_t, TGLVertex3> Intersection ( const TGLPlane plane,
const TGLLine3 line,
Bool_t  extend 
)

Definition at line 542 of file TGLUtil.cxx.

References TGLPlane::A(), TGLPlane::B(), TGLPlane::C(), TGLPlane::D(), kFALSE, kTRUE, line, and num.

std::pair<Bool_t, TGLVertex3> Intersection ( const TGLPlane p1,
const TGLPlane p2,
const TGLPlane p3 
)

Definition at line 528 of file TGLUtil.cxx.

std::pair<Bool_t, TGLLine3> Intersection ( const TGLPlane p1,
const TGLPlane p2 
)

Definition at line 509 of file TGLUtil.cxx.


Variable Documentation

Int_t fRGB[3]

Definition at line 2539 of file TGLUtil.cxx.

GLUtesselator* fTess

Definition at line 1416 of file TGLUtil.cxx.


Generated on Tue Jul 5 15:59:44 2011 for ROOT_528-00b_version by  doxygen 1.5.1