![]() |
ROOT 6.14/05 Reference Guide |
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.
Public Member Functions | |
TGLVertex3 () | |
Construct a default (0.0, 0.0, 0.0) vertex. More... | |
TGLVertex3 (Double_t x, Double_t y, Double_t z) | |
Construct a vertex with components (x,y,z) More... | |
TGLVertex3 (Double_t *v) | |
Construct a vertex with components (v[0], v[1], v[2]) More... | |
TGLVertex3 (const TGLVertex3 &other) | |
Construct a vertex from 'other'. More... | |
~TGLVertex3 () | |
Destroy vertex object. More... | |
Double_t * | Arr () |
const Double_t * | CArr () const |
ClassDefNV (TGLVertex3, 1) | |
void | Dump () const |
Output vertex component values to std::cout. More... | |
void | Fill (Double_t val) |
void | Maximum (const TGLVertex3 &other) |
void | Minimum (const TGLVertex3 &other) |
void | Negate () |
TGLVertex3 & | operator*= (Double_t f) |
const TGLVertex3 & | operator+= (const TGLVector3 &val) |
TGLVertex3 | operator- () const |
const TGLVertex3 & | operator-= (const TGLVector3 &val) |
TGLVertex3 & | operator= (const TGLVertex3 &rhs) |
Bool_t | operator== (const TGLVertex3 &rhs) const |
Double_t & | operator[] (Int_t index) |
const Double_t & | operator[] (Int_t index) const |
void | Set (Double_t x, Double_t y, Double_t z) |
void | Set (const Double_t *xyz) |
void | Set (const TGLVertex3 &other) |
void | Shift (TGLVector3 &shift) |
Offset a vertex by vector 'shift'. More... | |
void | Shift (Double_t xDelta, Double_t yDelta, Double_t zDelta) |
Offset a vertex by components (xDelta, yDelta, zDelta) More... | |
Double_t | X () const |
Double_t & | X () |
Double_t | Y () const |
Double_t & | Y () |
Double_t | Z () const |
Double_t & | Z () |
Protected Member Functions | |
Bool_t | ValidIndex (UInt_t index) const |
Protected Attributes | |
Double_t | fVals [3] |
#include <TGLUtil.h>
TGLVertex3::TGLVertex3 | ( | ) |
Construct a default (0.0, 0.0, 0.0) vertex.
Definition at line 54 of file TGLUtil.cxx.
Construct a vertex with components (x,y,z)
Definition at line 62 of file TGLUtil.cxx.
TGLVertex3::TGLVertex3 | ( | Double_t * | v | ) |
Construct a vertex with components (v[0], v[1], v[2])
Definition at line 70 of file TGLUtil.cxx.
TGLVertex3::TGLVertex3 | ( | const TGLVertex3 & | other | ) |
Construct a vertex from 'other'.
Definition at line 78 of file TGLUtil.cxx.
TGLVertex3::~TGLVertex3 | ( | ) |
Destroy vertex object.
Definition at line 86 of file TGLUtil.cxx.
TGLVertex3::ClassDefNV | ( | TGLVertex3 | , |
1 | |||
) |
void TGLVertex3::Dump | ( | ) | const |
Output vertex component values to std::cout.
Definition at line 131 of file TGLUtil.cxx.
void TGLVertex3::Maximum | ( | const TGLVertex3 & | other | ) |
Definition at line 121 of file TGLUtil.cxx.
void TGLVertex3::Minimum | ( | const TGLVertex3 & | other | ) |
Definition at line 112 of file TGLUtil.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void TGLVertex3::Shift | ( | TGLVector3 & | shift | ) |
Offset a vertex by vector 'shift'.
Definition at line 93 of file TGLUtil.cxx.
Offset a vertex by components (xDelta, yDelta, zDelta)
Definition at line 103 of file TGLUtil.cxx.