ROOT  6.06/09
Reference Guide
Public Member Functions | Private Attributes | List of all members
TGLLine3 Class Reference

3D space, fixed length, line class, with direction / length 'vector', passing through point 'vertex'.

Just wraps a TGLVector3 / TGLVertex3 pair.

Definition at line 391 of file TGLUtil.h.

Public Member Functions

 TGLLine3 (const TGLVertex3 &start, const TGLVertex3 &end)
 Vector of line from fVertex. More...
 
 TGLLine3 (const TGLVertex3 &start, const TGLVector3 &vector)
 Construct 3D line running from 'start', magnitude 'vect'. More...
 
virtual ~TGLLine3 ()
 Destroy 3D line object. More...
 
void Set (const TGLVertex3 &start, const TGLVertex3 &end)
 Set 3D line running from 'start' to 'end'. More...
 
void Set (const TGLVertex3 &start, const TGLVector3 &vector)
 Set 3D line running from start, magnitude 'vect'. More...
 
const TGLVertex3Start () const
 
const TGLVertex3 End () const
 
const TGLVector3Vector () const
 
void Draw () const
 Draw line in current basic GL color. More...
 
 ClassDef (TGLLine3, 0)
 

Private Attributes

TGLVertex3 fVertex
 
TGLVector3 fVector
 Start vertex of line. More...
 

#include <TGLUtil.h>

+ Collaboration diagram for TGLLine3:

Constructor & Destructor Documentation

TGLLine3::TGLLine3 ( const TGLVertex3 start,
const TGLVertex3 end 
)

Vector of line from fVertex.

Construct 3D line running from 'start' to 'end'.

Definition at line 199 of file TGLUtil.cxx.

TGLLine3::TGLLine3 ( const TGLVertex3 start,
const TGLVector3 vector 
)

Construct 3D line running from 'start', magnitude 'vect'.

Definition at line 207 of file TGLUtil.cxx.

TGLLine3::~TGLLine3 ( )
virtual

Destroy 3D line object.

Definition at line 215 of file TGLUtil.cxx.

Member Function Documentation

TGLLine3::ClassDef ( TGLLine3  ,
 
)
void TGLLine3::Draw ( ) const

Draw line in current basic GL color.

Assume we are in the correct reference frame

Definition at line 241 of file TGLUtil.cxx.

const TGLVertex3 TGLLine3::End ( ) const
inline

Definition at line 410 of file TGLUtil.h.

Referenced by Draw().

void TGLLine3::Set ( const TGLVertex3 start,
const TGLVertex3 end 
)

Set 3D line running from 'start' to 'end'.

Definition at line 222 of file TGLUtil.cxx.

void TGLLine3::Set ( const TGLVertex3 start,
const TGLVector3 vector 
)

Set 3D line running from start, magnitude 'vect'.

Definition at line 231 of file TGLUtil.cxx.

const TGLVertex3& TGLLine3::Start ( ) const
inline
const TGLVector3& TGLLine3::Vector ( ) const
inline

Member Data Documentation

TGLVector3 TGLLine3::fVector
private

Start vertex of line.

Definition at line 396 of file TGLUtil.h.

Referenced by End(), Set(), and Vector().

TGLVertex3 TGLLine3::fVertex
private

Definition at line 395 of file TGLUtil.h.

Referenced by Draw(), Set(), and Start().


The documentation for this class was generated from the following files: