ROOT  6.06/09
Reference Guide
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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 86 of file TGLUtil.h.

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...
 
virtual ~TGLVertex3 ()
 Destroy vertex object. More...
 
Bool_t operator== (const TGLVertex3 &rhs) const
 
TGLVertex3operator= (const TGLVertex3 &rhs)
 
TGLVertex3operator*= (Double_t f)
 
TGLVertex3 operator- () const
 
const TGLVertex3operator-= (const TGLVector3 &val)
 
const TGLVertex3operator+= (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_toperator[] (Int_t index)
 
const Double_toperator[] (Int_t index) const
 
Double_t X () const
 
Double_tX ()
 
Double_t Y () const
 
Double_tY ()
 
Double_t Z () const
 
Double_tZ ()
 
const Double_tCArr () const
 
Double_tArr ()
 
void Dump () const
 Output vertex component values to std::cout. More...
 
 ClassDef (TGLVertex3, 1)
 

Protected Member Functions

Bool_t ValidIndex (UInt_t index) const
 

Protected Attributes

Double_t fVals [3]
 

#include <TGLUtil.h>

+ Inheritance diagram for TGLVertex3:

Constructor & Destructor Documentation

TGLVertex3::TGLVertex3 ( )

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

Definition at line 54 of file TGLUtil.cxx.

Referenced by operator-().

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

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 ( )
virtual

Destroy vertex object.

Definition at line 86 of file TGLUtil.cxx.

Member Function Documentation

Double_t* TGLVertex3::Arr ( )
inline
const Double_t* TGLVertex3::CArr ( ) const
inline
TGLVertex3::ClassDef ( TGLVertex3  ,
 
)
void TGLVertex3::Dump ( ) const

Output vertex component values to std::cout.

Definition at line 131 of file TGLUtil.cxx.

void TGLVertex3::Fill ( Double_t  val)
inline

Definition at line 207 of file TGLUtil.h.

Referenced by TGLVertex3().

void TGLVertex3::Maximum ( const TGLVertex3 other)

Definition at line 121 of file TGLUtil.cxx.

Referenced by TGLBoundingBox::ExpandAligned().

void TGLVertex3::Minimum ( const TGLVertex3 other)

Definition at line 112 of file TGLUtil.cxx.

Referenced by TGLBoundingBox::ExpandAligned(), and TGLBoundingBox::MergeAligned().

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

Definition at line 176 of file TGLUtil.h.

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

Definition at line 281 of file TGLUtil.h.

TGLVertex3 TGLVertex3::operator- ( ) const
inline

Definition at line 170 of file TGLUtil.h.

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

Definition at line 273 of file TGLUtil.h.

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

Definition at line 158 of file TGLUtil.h.

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

Definition at line 152 of file TGLUtil.h.

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

Definition at line 185 of file TGLUtil.h.

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

Definition at line 196 of file TGLUtil.h.

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

Definition at line 221 of file TGLUtil.h.

void TGLVertex3::Set ( const TGLVertex3 other)
inline

Definition at line 229 of file TGLUtil.h.

void TGLVertex3::Shift ( TGLVector3 shift)

Offset a vertex by vector 'shift'.

Definition at line 93 of file TGLUtil.cxx.

Referenced by TGLCamera::ViewportDeltaToWorld().

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

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

Definition at line 103 of file TGLUtil.cxx.

Bool_t TGLVertex3::ValidIndex ( UInt_t  index) const
inlineprotected

Definition at line 90 of file TGLUtil.h.

Double_t TGLVertex3::X ( ) const
inline

Definition at line 122 of file TGLUtil.h.

Referenced by TGLBoxCut::AdjustBox(), Rgl::DrawAxes(), TEveCaloLegoGL::DrawAxis3D(), TGLPlotBox::DrawBackPlane(), TGLBoxPainter::DrawCloud(), Rgl::DrawFaceTextured(), TGLLegoPainter::DrawLegoCartesian(), TGLSurfacePainter::DrawProjections(), TGLPlotPainter::DrawSections(), TGLUtil::DrawSimpleAxes(), TGLUtil::DrawSphere(), TGLParametricEquation::EvalVertex(), TGLPlotBox::FindFrontPoint(), TGLClipSet::GetClipState(), TGLViewer::GetGuideState(), TGLTF3Painter::HasSections(), TGLBoxPainter::HasSections(), TGLSurfacePainter::HasSections(), TGLIsoPainter::HasSections(), TGLVoxelPainter::InitGeometry(), TGLTF3Painter::InitGeometry(), TGLBoxPainter::InitGeometry(), TGLIsoPainter::InitGeometry(), TGLParametricPlot::InitGeometry(), TGLLegoPainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCylindrical(), TGLSurfacePainter::InitGeometryPolar(), TGLSurfacePainter::InitGeometrySpherical(), Intersection(), TGLPlotPainter::MoveSection(), TGLMatrix::Multiply(), TGLMatrix::MultiplyIP(), operator*(), TGLAxisPainter::PaintAxis(), TGLPlotCamera::Pan(), Rgl::PlotTranslation::PlotTranslation(), TGLTF3Painter::ProcessEvent(), TGLLegoPainter::ProcessEvent(), TGLBoxPainter::ProcessEvent(), TGLSurfacePainter::ProcessEvent(), TGLIsoPainter::ProcessEvent(), TEveCaloLegoOverlay::Render(), TGLCameraOverlay::RenderAxis(), TGLCameraOverlay::RenderBar(), TGLOrthoCamera::Reset(), TGLBoxCut::ResetBoxGeometry(), TGLAxisPainter::RnrLabels(), TGLAxisPainter::RnrText(), TEveLegoEventHandler::Rotate(), TGLMatrix::Rotate(), TGLMatrix::RotateIP(), TGLMatrix::Set(), TGLBoundingBox::SetAligned(), TGLClipSet::SetClipState(), TGLSurfacePainter::SetNormals(), TGLPerspectiveCamera::Setup(), TGLOrthoCamera::Setup(), TGLLightSet::StdSetupLights(), TGLMatrix::TGLMatrix(), TGLBoundingBox::UpdateCache(), TGLCamera::ViewportRect(), and TGLSurfacePainter::WindowPointTo3DPoint().

Double_t& TGLVertex3::X ( )
inline

Definition at line 123 of file TGLUtil.h.

Double_t TGLVertex3::Y ( ) const
inline

Definition at line 124 of file TGLUtil.h.

Referenced by TGLBoxCut::AdjustBox(), TEveCaloLegoGL::DrawAxis3D(), TGLPlotBox::DrawBackPlane(), TGLBoxPainter::DrawCloud(), Rgl::DrawFaceTextured(), TGLLegoPainter::DrawLegoCartesian(), TGLVoxelPainter::DrawPlot(), TGLBoxPainter::DrawPlot(), TGLTH3CompositionPainter::DrawPlot(), TGLSurfacePainter::DrawProjections(), TGLPlotPainter::DrawSections(), TGLUtil::DrawSimpleAxes(), TGLTH3Slice::DrawSliceFrame(), TGLUtil::DrawSphere(), TGLParametricEquation::EvalVertex(), TGLPlotBox::FindFrontPoint(), TGLClipSet::GetClipState(), TGLViewer::GetGuideState(), TGLTF3Painter::HasSections(), TGLBoxPainter::HasSections(), TGLSurfacePainter::HasSections(), TGLIsoPainter::HasSections(), TGLVoxelPainter::InitGeometry(), TGLTF3Painter::InitGeometry(), TGLBoxPainter::InitGeometry(), TGLIsoPainter::InitGeometry(), TGLParametricPlot::InitGeometry(), TGLLegoPainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCylindrical(), TGLSurfacePainter::InitGeometryPolar(), TGLSurfacePainter::InitGeometrySpherical(), Intersection(), TGLPlotPainter::MoveSection(), TGLMatrix::Multiply(), TGLMatrix::MultiplyIP(), operator*(), TGLAxisPainter::PaintAxis(), TGLPlotCamera::Pan(), Rgl::PlotTranslation::PlotTranslation(), TGLTF3Painter::ProcessEvent(), TGLLegoPainter::ProcessEvent(), TGLBoxPainter::ProcessEvent(), TGLSurfacePainter::ProcessEvent(), TGLIsoPainter::ProcessEvent(), TEveCaloLegoOverlay::Render(), TGLCameraOverlay::RenderAxis(), TGLCameraOverlay::RenderBar(), TGLOrthoCamera::Reset(), TGLBoxCut::ResetBoxGeometry(), TGLAxisPainter::RnrLabels(), TGLAxisPainter::RnrText(), TEveLegoEventHandler::Rotate(), TGLMatrix::Rotate(), TGLMatrix::RotateIP(), TGLMatrix::Set(), TGLBoundingBox::SetAligned(), TGLClipSet::SetClipState(), TGLSurfacePainter::SetNormals(), TGLPerspectiveCamera::Setup(), TGLOrthoCamera::Setup(), TGLLightSet::StdSetupLights(), TGLMatrix::TGLMatrix(), TGLBoundingBox::UpdateCache(), TGLCamera::ViewportRect(), TGLSurfacePainter::WindowPointTo3DPoint(), and TGLCamera::WindowToViewport().

Double_t& TGLVertex3::Y ( )
inline

Definition at line 125 of file TGLUtil.h.

Double_t TGLVertex3::Z ( ) const
inline

Definition at line 126 of file TGLUtil.h.

Referenced by TGLBoxCut::AdjustBox(), TGLH2PolyPainter::ClampZ(), TGLLegoPainter::ClampZ(), TGLSurfacePainter::ClampZ(), TEveCaloLegoGL::DirectDraw(), TEveCaloLegoGL::DrawAxis3D(), TGLBoxPainter::DrawCloud(), TGLSurfacePainter::DrawContoursProjection(), TGLSurfacePainter::DrawProjections(), TGLPlotPainter::DrawSections(), TGLSurfacePainter::DrawSectionXOY(), TGLTH3Slice::DrawSliceFrame(), TGLUtil::DrawSphere(), TGLParametricEquation::EvalVertex(), TGLPlotBox::FindFrontPoint(), TGLClipSet::GetClipState(), TGLViewer::GetGuideState(), TGLTF3Painter::HasSections(), TGLBoxPainter::HasSections(), TGLSurfacePainter::HasSections(), TGLIsoPainter::HasSections(), TGLH2PolyPainter::InitGeometry(), TGLVoxelPainter::InitGeometry(), TGLTF3Painter::InitGeometry(), TGLBoxPainter::InitGeometry(), TGLIsoPainter::InitGeometry(), TGLParametricPlot::InitGeometry(), TGLLegoPainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCartesian(), TGLSurfacePainter::InitGeometryCylindrical(), TGLLegoPainter::InitGeometryPolar(), TGLSurfacePainter::InitGeometryPolar(), TGLSurfacePainter::InitGeometrySpherical(), Intersection(), TGLPlotPainter::MoveSection(), TGLMatrix::Multiply(), TGLMatrix::MultiplyIP(), operator*(), TGLAxisPainter::PaintAxis(), TGLPlotCamera::Pan(), Rgl::PlotTranslation::PlotTranslation(), TGLTF3Painter::ProcessEvent(), TGLBoxPainter::ProcessEvent(), TGLSurfacePainter::ProcessEvent(), TGLIsoPainter::ProcessEvent(), TGLCameraOverlay::RenderAxis(), TGLCameraOverlay::RenderBar(), TGLOrthoCamera::Reset(), TGLBoxCut::ResetBoxGeometry(), TGLAxisPainter::RnrLabels(), TGLAxisPainter::RnrText(), TGLMatrix::Rotate(), TGLMatrix::RotateIP(), TGLMatrix::Set(), TGLBoundingBox::SetAligned(), TGLClipSet::SetClipState(), TGLSurfacePainter::SetNormals(), TGLPerspectiveCamera::Setup(), TGLOrthoCamera::Setup(), TGLLightSet::StdSetupLights(), TGLMatrix::TGLMatrix(), TGLBoundingBox::UpdateCache(), TGLCamera::ViewportRect(), and TGLSurfacePainter::WindowPointTo3DPoint().

Double_t& TGLVertex3::Z ( )
inline

Definition at line 127 of file TGLUtil.h.

Member Data Documentation

Double_t TGLVertex3::fVals[3]
protected

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