Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 386 of file TGLUtil.h.

Public Member Functions

 TGLLine3 (const TGLVertex3 &start, const TGLVector3 &vector)
 Construct 3D line running from 'start', magnitude 'vect'.
 
 TGLLine3 (const TGLVertex3 &start, const TGLVertex3 &end)
 Vector of line from fVertex.
 
 ~TGLLine3 ()=default
 
void Draw () const
 Draw line in current basic GL color.
 
const TGLVertex3 End () const
 
TClassIsA () const
 
void Set (const TGLVertex3 &start, const TGLVector3 &vector)
 Set 3D line running from start, magnitude 'vect'.
 
void Set (const TGLVertex3 &start, const TGLVertex3 &end)
 Set 3D line running from 'start' to 'end'.
 
const TGLVertex3Start () const
 
void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
const TGLVector3Vector () const
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Attributes

TGLVector3 fVector
 Start vertex of line.
 
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 176 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 184 of file TGLUtil.cxx.

◆ ~TGLLine3()

TGLLine3::~TGLLine3 ( )
default

Member Function Documentation

◆ Class()

static TClass * TGLLine3::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLLine3::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLLine3::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 411 of file TGLUtil.h.

◆ DeclFileName()

static const char * TGLLine3::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 411 of file TGLUtil.h.

◆ Draw()

void TGLLine3::Draw ( ) const

Draw line in current basic GL color.

Assume we are in the correct reference frame

Definition at line 211 of file TGLUtil.cxx.

◆ End()

const TGLVertex3 TGLLine3::End ( ) const
inline

Definition at line 405 of file TGLUtil.h.

◆ IsA()

TClass * TGLLine3::IsA ( ) const
inline
Returns
TClass describing current object

Definition at line 411 of file TGLUtil.h.

◆ Set() [1/2]

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

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

Definition at line 201 of file TGLUtil.cxx.

◆ Set() [2/2]

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

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

Definition at line 192 of file TGLUtil.cxx.

◆ Start()

const TGLVertex3 & TGLLine3::Start ( ) const
inline

Definition at line 404 of file TGLUtil.h.

◆ Streamer()

void TGLLine3::Streamer ( TBuffer )

◆ StreamerNVirtual()

void TGLLine3::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 411 of file TGLUtil.h.

◆ Vector()

const TGLVector3 & TGLLine3::Vector ( ) const
inline

Definition at line 406 of file TGLUtil.h.

Member Data Documentation

◆ fVector

TGLVector3 TGLLine3::fVector
private

Start vertex of line.

Definition at line 391 of file TGLUtil.h.

◆ fVertex

TGLVertex3 TGLLine3::fVertex
private

Definition at line 390 of file TGLUtil.h.

Libraries for TGLLine3:

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