ROOT » GRAF3D » GL » TGLLine3

class TGLLine3


TGLLine3

 3D space, fixed length, line class, with direction / length 'vector',
passing through point 'vertex'. Just wraps a TGLVector3 / TGLVertex3
pair.

Function Members (Methods)

public:
virtual~TGLLine3()
static TClass*Class()
voidDraw() const
const TGLVertex3End() const
virtual TClass*IsA() const
TGLLine3&operator=(const TGLLine3&)
voidSet(const TGLVertex3& start, const TGLVertex3& end)
voidSet(const TGLVertex3& start, const TGLVector3& vector)
virtual voidShowMembers(TMemberInspector& insp) const
const TGLVertex3&Start() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLLine3(const TGLLine3&)
TGLLine3(const TGLVertex3& start, const TGLVertex3& end)
TGLLine3(const TGLVertex3& start, const TGLVector3& vector)
const TGLVector3&Vector() const

Data Members

private:
TGLVector3fVector! Vector of line from fVertex
TGLVertex3fVertex! Start vertex of line

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLLine3(const TGLVertex3& start, const TGLVertex3& end)
 Construct 3D line running from 'start' to 'end'
TGLLine3(const TGLVertex3& start, const TGLVector3& vector)
 Construct 3D line running from 'start', magnitude 'vect'
~TGLLine3()
 Destroy 3D line object
void Set(const TGLVertex3& start, const TGLVertex3& end)
 Set 3D line running from 'start' to 'end'
void Set(const TGLVertex3& start, const TGLVector3& vector)
 Set 3D line running from start, magnitude 'vect'
void Draw() const
 Draw line in current basic GL color. Assume we are in the correct reference
 frame
TGLLine3(const TGLVertex3& start, const TGLVertex3& end)
const TGLVertex3 & Start() const
 Bitwise copy constructor and = operator are fine
 Accessors
{ return fVertex; }
const TGLVertex3 End() const
{ return fVertex + fVector; }
TGLColor& operator=(const TGLLine3& )