Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLVertex3 Class Reference

3 component (x/y/z) vertex class.

This is part of collection of simple utility classes for GL only in TGLUtil.h/cxx. These provide const and non-const accessors Arr() & CArr() to a GL compatible internal field - so can be used directly with OpenGL C API calls - which TVector3 etc cannot (easily). They are not intended to be fully featured just provide minimum required.

Definition at line 83 of file TGLUtil.h.

Public Member Functions

 TGLVertex3 ()
 Construct a default (0.0, 0.0, 0.0) vertex.
 
 TGLVertex3 (const TGLVertex3 &other)
 Construct a vertex from 'other'.
 
 TGLVertex3 (Double_t *v)
 Construct a vertex with components (v[0], v[1], v[2])
 
 TGLVertex3 (Double_t x, Double_t y, Double_t z)
 Construct a vertex with components (x,y,z)
 
 ~TGLVertex3 ()
 Destroy vertex object.
 
Double_tArr ()
 
const Double_tCArr () const
 
 ClassDefNV (TGLVertex3, 1)
 
void Dump () const
 Output vertex component values to std::cout.
 
void Fill (Double_t val)
 
void Maximum (const TGLVertex3 &other)
 
void Minimum (const TGLVertex3 &other)
 
void Negate ()
 
TGLVertex3operator*= (Double_t f)
 
const TGLVertex3operator+= (const TGLVector3 &val)
 
TGLVertex3 operator- () const
 
const TGLVertex3operator-= (const TGLVector3 &val)
 
TGLVertex3operator= (const TGLVertex3 &rhs)
 
Bool_t operator== (const TGLVertex3 &rhs) const
 
Double_toperator[] (Int_t index)
 
const Double_toperator[] (Int_t index) const
 
void Set (const Double_t *xyz)
 
void Set (const TGLVertex3 &other)
 
void Set (Double_t x, Double_t y, Double_t z)
 
void Shift (Double_t xDelta, Double_t yDelta, Double_t zDelta)
 Offset a vertex by components (xDelta, yDelta, zDelta)
 
void Shift (TGLVector3 &shift)
 Offset a vertex by vector 'shift'.
 
Double_tX ()
 
Double_t X () const
 
Double_tY ()
 
Double_t Y () const
 
Double_tZ ()
 
Double_t Z () const
 

Protected Member Functions

Bool_t ValidIndex (UInt_t index) const
 

Protected Attributes

Double_t fVals [3]
 

#include <TGLUtil.h>

Inheritance diagram for TGLVertex3:
[legend]

Constructor & Destructor Documentation

◆ TGLVertex3() [1/4]

TGLVertex3::TGLVertex3 ( )

Construct a default (0.0, 0.0, 0.0) vertex.

Definition at line 53 of file TGLUtil.cxx.

◆ TGLVertex3() [2/4]

TGLVertex3::TGLVertex3 ( Double_t  x,
Double_t  y,
Double_t  z 
)

Construct a vertex with components (x,y,z)

Definition at line 61 of file TGLUtil.cxx.

◆ TGLVertex3() [3/4]

TGLVertex3::TGLVertex3 ( Double_t v)

Construct a vertex with components (v[0], v[1], v[2])

Definition at line 69 of file TGLUtil.cxx.

◆ TGLVertex3() [4/4]

TGLVertex3::TGLVertex3 ( const TGLVertex3 other)

Construct a vertex from 'other'.

Definition at line 77 of file TGLUtil.cxx.

◆ ~TGLVertex3()

TGLVertex3::~TGLVertex3 ( )

Destroy vertex object.

Definition at line 85 of file TGLUtil.cxx.

Member Function Documentation

◆ Arr()

Double_t * TGLVertex3::Arr ( )
inline

Definition at line 127 of file TGLUtil.h.

◆ CArr()

const Double_t * TGLVertex3::CArr ( ) const
inline

Definition at line 126 of file TGLUtil.h.

◆ ClassDefNV()

TGLVertex3::ClassDefNV ( TGLVertex3  ,
 
)

◆ Dump()

void TGLVertex3::Dump ( ) const

Output vertex component values to std::cout.

Definition at line 130 of file TGLUtil.cxx.

◆ Fill()

void TGLVertex3::Fill ( Double_t  val)
inline

Definition at line 204 of file TGLUtil.h.

◆ Maximum()

void TGLVertex3::Maximum ( const TGLVertex3 other)

Definition at line 120 of file TGLUtil.cxx.

◆ Minimum()

void TGLVertex3::Minimum ( const TGLVertex3 other)

Definition at line 111 of file TGLUtil.cxx.

◆ Negate()

void TGLVertex3::Negate ( )
inline

Definition at line 141 of file TGLUtil.h.

◆ operator*=()

TGLVertex3 & TGLVertex3::operator*= ( Double_t  f)
inline

Definition at line 173 of file TGLUtil.h.

◆ operator+=()

const TGLVertex3 & TGLVertex3::operator+= ( const TGLVector3 val)
inline

Definition at line 276 of file TGLUtil.h.

◆ operator-()

TGLVertex3 TGLVertex3::operator- ( ) const
inline

Definition at line 167 of file TGLUtil.h.

◆ operator-=()

const TGLVertex3 & TGLVertex3::operator-= ( const TGLVector3 val)
inline

Definition at line 268 of file TGLUtil.h.

◆ operator=()

TGLVertex3 & TGLVertex3::operator= ( const TGLVertex3 rhs)
inline

Definition at line 155 of file TGLUtil.h.

◆ operator==()

Bool_t TGLVertex3::operator== ( const TGLVertex3 rhs) const
inline

Definition at line 149 of file TGLUtil.h.

◆ operator[]() [1/2]

Double_t & TGLVertex3::operator[] ( Int_t  index)
inline

Definition at line 182 of file TGLUtil.h.

◆ operator[]() [2/2]

const Double_t & TGLVertex3::operator[] ( Int_t  index) const
inline

Definition at line 193 of file TGLUtil.h.

◆ Set() [1/3]

void TGLVertex3::Set ( const Double_t xyz)
inline

Definition at line 218 of file TGLUtil.h.

◆ Set() [2/3]

void TGLVertex3::Set ( const TGLVertex3 other)
inline

Definition at line 226 of file TGLUtil.h.

◆ Set() [3/3]

void TGLVertex3::Set ( Double_t  x,
Double_t  y,
Double_t  z 
)
inline

Definition at line 210 of file TGLUtil.h.

◆ Shift() [1/2]

void TGLVertex3::Shift ( Double_t  xDelta,
Double_t  yDelta,
Double_t  zDelta 
)

Offset a vertex by components (xDelta, yDelta, zDelta)

Definition at line 102 of file TGLUtil.cxx.

◆ Shift() [2/2]

void TGLVertex3::Shift ( TGLVector3 shift)

Offset a vertex by vector 'shift'.

Definition at line 92 of file TGLUtil.cxx.

◆ ValidIndex()

Bool_t TGLVertex3::ValidIndex ( UInt_t  index) const
inlineprotected

Definition at line 87 of file TGLUtil.h.

◆ X() [1/2]

Double_t & TGLVertex3::X ( )
inline

Definition at line 120 of file TGLUtil.h.

◆ X() [2/2]

Double_t TGLVertex3::X ( ) const
inline

Definition at line 119 of file TGLUtil.h.

◆ Y() [1/2]

Double_t & TGLVertex3::Y ( )
inline

Definition at line 122 of file TGLUtil.h.

◆ Y() [2/2]

Double_t TGLVertex3::Y ( ) const
inline

Definition at line 121 of file TGLUtil.h.

◆ Z() [1/2]

Double_t & TGLVertex3::Z ( )
inline

Definition at line 124 of file TGLUtil.h.

◆ Z() [2/2]

Double_t TGLVertex3::Z ( ) const
inline

Definition at line 123 of file TGLUtil.h.

Member Data Documentation

◆ fVals

Double_t TGLVertex3::fVals[3]
protected

Definition at line 88 of file TGLUtil.h.

Libraries for TGLVertex3:

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