ROOT 6.16/01 Reference Guide |
3D space, fixed length, line class, with direction / length 'vector', passing through point 'vertex'.
Just wraps a TGLVector3 / TGLVertex3 pair.
Public Member Functions | |
TGLLine3 (const TGLVertex3 &start, const TGLVector3 &vector) | |
Construct 3D line running from 'start', magnitude 'vect'. More... | |
TGLLine3 (const TGLVertex3 &start, const TGLVertex3 &end) | |
Vector of line from fVertex. More... | |
virtual | ~TGLLine3 () |
Destroy 3D line object. More... | |
void | Draw () const |
Draw line in current basic GL color. More... | |
const TGLVertex3 | End () const |
void | Set (const TGLVertex3 &start, const TGLVector3 &vector) |
Set 3D line running from start, magnitude 'vect'. More... | |
void | Set (const TGLVertex3 &start, const TGLVertex3 &end) |
Set 3D line running from 'start' to 'end'. More... | |
const TGLVertex3 & | Start () const |
const TGLVector3 & | Vector () const |
Private Attributes | |
TGLVector3 | fVector |
Start vertex of line. More... | |
TGLVertex3 | fVertex |
#include <TGLUtil.h>
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.
|
virtual |
Destroy 3D line object.
Definition at line 215 of file TGLUtil.cxx.
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.
|
inline |
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.
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.
|
inline |
|
inline |
|
private |
|
private |