ROOT
6.06/09
Reference Guide
|
3 component (x/y/z) vector class.
This is part of collection of utility classes for GL 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. They are not intended to be fully featured just provide minimum required.
Public Member Functions | |
TGLVector3 () | |
Construct a default (0.0, 0.0, 0.0) vector. More... | |
TGLVector3 (Double_t x, Double_t y, Double_t z) | |
Construct a vector with components (x,y,z) More... | |
TGLVector3 (const Double_t *src) | |
Construct a vector with components (src[0], src[1], src[2]) More... | |
TGLVector3 (const TGLVector3 &other) | |
Construct a vector from components of 'other'. More... | |
virtual | ~TGLVector3 () |
Destroy vector object. More... | |
TGLVector3 & | operator= (const TGLVertex3 &v) |
TGLVector3 & | operator/= (Double_t val) |
TGLVector3 | operator- () const |
Double_t | Mag () const |
void | Normalise () |
ClassDef (TGLVector3, 1) | |
Public Member Functions inherited from TGLVertex3 | |
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... | |
virtual | ~TGLVertex3 () |
Destroy vertex object. More... | |
Bool_t | operator== (const TGLVertex3 &rhs) const |
TGLVertex3 & | operator= (const TGLVertex3 &rhs) |
TGLVertex3 & | operator*= (Double_t f) |
TGLVertex3 | operator- () const |
const TGLVertex3 & | operator-= (const TGLVector3 &val) |
const TGLVertex3 & | operator+= (const TGLVector3 &val) |
void | Fill (Double_t val) |
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... | |
void | Negate () |
void | Minimum (const TGLVertex3 &other) |
void | Maximum (const TGLVertex3 &other) |
Double_t & | operator[] (Int_t index) |
const Double_t & | operator[] (Int_t index) const |
Double_t | X () const |
Double_t & | X () |
Double_t | Y () const |
Double_t & | Y () |
Double_t | Z () const |
Double_t & | Z () |
const Double_t * | CArr () const |
Double_t * | Arr () |
void | Dump () const |
Output vertex component values to std::cout. More... | |
ClassDef (TGLVertex3, 1) | |
Additional Inherited Members | |
Protected Member Functions inherited from TGLVertex3 | |
Bool_t | ValidIndex (UInt_t index) const |
Protected Attributes inherited from TGLVertex3 | |
Double_t | fVals [3] |
#include <TGLUtil.h>
TGLVector3::TGLVector3 | ( | ) |
Construct a default (0.0, 0.0, 0.0) vector.
Definition at line 152 of file TGLUtil.cxx.
Referenced by operator-().
Construct a vector with components (x,y,z)
Definition at line 160 of file TGLUtil.cxx.
TGLVector3::TGLVector3 | ( | const Double_t * | src | ) |
Construct a vector with components (src[0], src[1], src[2])
Definition at line 176 of file TGLUtil.cxx.
TGLVector3::TGLVector3 | ( | const TGLVector3 & | other | ) |
Construct a vector from components of 'other'.
Definition at line 168 of file TGLUtil.cxx.
|
virtual |
Destroy vector object.
Definition at line 184 of file TGLUtil.cxx.
TGLVector3::ClassDef | ( | TGLVector3 | , |
1 | |||
) |
|
inline |
Definition at line 303 of file TGLUtil.h.
Referenced by TGLRotateManip::Angle(), TGLManip::CalcDrawScale(), TGLViewer::DrawDebugInfo(), TGLViewer::DrawGuides(), TGLUtil::DrawLine(), TGLUtil::DrawReferenceMarker(), TGLUtil::DrawSimpleAxes(), TGLMatrix::GetScale(), TGLScaleManip::HandleMotion(), Intersection(), Normalise(), TGLBoundingBox::Overlap(), TGLOrthoCamera::Reset(), TGLClipPlane::Setup(), TGLAutoRotator::Start(), TGLLightSet::StdSetupLights(), TGLBoundingBox::UpdateCache(), and TGLCamera::UpdateInterest().
|
inline |
Definition at line 309 of file TGLUtil.h.
Referenced by TGLRotateManip::CalculateAngleDelta(), TGLRotateManip::Draw(), TGLCameraOverlay::RenderAxis(), TGLCameraOverlay::RenderBar(), TGLMatrix::Rotate(), TGLMatrix::Set(), TGLSurfacePainter::SetNormals(), and TGLMatrix::TGLMatrix().
|
inline |
|
inline |
|
inline |