Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TCylinderSegMesh Class Reference

Definition at line 100 of file TGLCylinder.cxx.

Public Member Functions

 TCylinderSegMesh (UInt_t LOD, Double_t r1, Double_t r2, Double_t dz, Double_t phi1, Double_t phi2, const TGLVector3 &l=gLowNormalDefault, const TGLVector3 &h=gHighNormalDefault)
 One quad mesh and two fans.
 
void Draw () const
 Cylinder segment is drawn as one quad strip and two triangle fans.
 
- Public Member Functions inherited from TGLMesh
 TGLMesh (UInt_t LOD, Double_t r1, Double_t r2, Double_t r3, Double_t r4, Double_t dz, const TGLVector3 &l=gLowNormalDefault, const TGLVector3 &h=gHighNormalDefault)
 
virtual ~TGLMesh ()
 

Private Attributes

TGLVertex3 fMesh [(TGLRnrCtx::kLODHigh+1) *4+10]
 
TGLVector3 fNorm [(TGLRnrCtx::kLODHigh+1) *4+10]
 

Additional Inherited Members

- Protected Member Functions inherited from TGLMesh
void GetNormal (const TGLVertex3 &vertex, TGLVector3 &normal) const
 get normal
 
Double_t GetZcoord (Double_t x, Double_t y, Double_t z) const
 get Z coordinate
 
const TGLVertex3MakeVertex (Double_t x, Double_t y, Double_t z) const
 make vertex
 
- Protected Attributes inherited from TGLMesh
Double_t fDz
 
UInt_t fLOD
 
TGLVector3 fNhigh
 
TGLVector3 fNlow
 
Double_t fRmax1
 
Double_t fRmax2
 
Double_t fRmin1
 
Double_t fRmin2
 
Inheritance diagram for TCylinderSegMesh:
[legend]

Constructor & Destructor Documentation

◆ TCylinderSegMesh()

TCylinderSegMesh::TCylinderSegMesh ( UInt_t  LOD,
Double_t  r1,
Double_t  r2,
Double_t  dz,
Double_t  phi1,
Double_t  phi2,
const TGLVector3 l = gLowNormalDefault,
const TGLVector3 h = gHighNormalDefault 
)

One quad mesh and two fans.

Definition at line 408 of file TGLCylinder.cxx.

Member Function Documentation

◆ Draw()

void TCylinderSegMesh::Draw ( ) const
virtual

Cylinder segment is drawn as one quad strip and two triangle fans.

  1. enabling vertex arrays

Implements TGLMesh.

Definition at line 491 of file TGLCylinder.cxx.

Member Data Documentation

◆ fMesh

TGLVertex3 TCylinderSegMesh::fMesh[(TGLRnrCtx::kLODHigh+1) *4+10]
private

Definition at line 104 of file TGLCylinder.cxx.

◆ fNorm

TGLVector3 TCylinderSegMesh::fNorm[(TGLRnrCtx::kLODHigh+1) *4+10]
private

Definition at line 105 of file TGLCylinder.cxx.

  • graf3d/gl/src/TGLCylinder.cxx