Logo ROOT   6.21/01
Reference Guide
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 385 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...
 
 ~TGLLine3 ()=default
 
 ClassDefNV (TGLLine3, 0)
 
void Draw () const
 Draw line in current basic GL color. More...
 
const TGLVertex3 End () const
 
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 TGLVector3Vector () const
 

Private Attributes

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

#include <TGLUtil.h>

Constructor & Destructor Documentation

◆ TGLLine3() [1/2]

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

Vector of line from fVertex.

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

Definition at line 177 of file TGLUtil.cxx.

◆ TGLLine3() [2/2]

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

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

Definition at line 185 of file TGLUtil.cxx.

◆ ~TGLLine3()

TGLLine3::~TGLLine3 ( )
default

Member Function Documentation

◆ ClassDefNV()

TGLLine3::ClassDefNV ( TGLLine3  ,
 
)

◆ Draw()

void TGLLine3::Draw ( ) const

Draw line in current basic GL color.

Assume we are in the correct reference frame

Definition at line 212 of file TGLUtil.cxx.

◆ End()

const TGLVertex3 TGLLine3::End ( ) const
inline

Definition at line 404 of file TGLUtil.h.

◆ Set() [1/2]

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

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

Definition at line 193 of file TGLUtil.cxx.

◆ Set() [2/2]

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

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

Definition at line 202 of file TGLUtil.cxx.

◆ Start()

const TGLVertex3& TGLLine3::Start ( ) const
inline

Definition at line 403 of file TGLUtil.h.

◆ Vector()

const TGLVector3& TGLLine3::Vector ( ) const
inline

Definition at line 405 of file TGLUtil.h.

Member Data Documentation

◆ fVector

TGLVector3 TGLLine3::fVector
private

Start vertex of line.

Definition at line 390 of file TGLUtil.h.

◆ fVertex

TGLVertex3 TGLLine3::fVertex
private

Definition at line 389 of file TGLUtil.h.

Libraries for TGLLine3:
[legend]

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