ROOT
6.06/09
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... | |
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) | |
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.
Referenced by operator-().
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.
|
virtual |
Destroy vertex object.
Definition at line 86 of file TGLUtil.cxx.
|
inline |
Definition at line 130 of file TGLUtil.h.
Referenced by TGLPShapeObjEditor::DoGeoButton(), TGLCamera::GetCenterVec(), TGLCamera::GetFixDefCenterVec(), TGLCameraOverlay::RenderAxis(), TGLCameraOverlay::RenderBar(), and TGLAxisPainter::RnrLines().
|
inline |
Definition at line 129 of file TGLUtil.h.
Referenced by TGLLine3::Draw(), TGLCamera::DrawDebugAids(), Rgl::DrawFaceTextured(), TGLUtil::DrawNumber(), Rgl::DrawQuadFilled(), Rgl::DrawQuadOutline(), TGLUtil::DrawSimpleAxes(), Rgl::DrawSmoothFace(), TGLParametricPlot::InitGeometry(), TEveLegoEventHandler::Rotate(), TGLPShapeObjEditor::SetModel(), TGLPerspectiveCamera::Setup(), and TGLSurfacePainter::WindowPointTo3DPoint().
TGLVertex3::ClassDef | ( | TGLVertex3 | , |
1 | |||
) |
void TGLVertex3::Dump | ( | ) | const |
Output vertex component values to std::cout.
Definition at line 131 of file TGLUtil.cxx.
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().
|
inline |
Definition at line 144 of file TGLUtil.h.
Referenced by TEveProjectionAxesGL::DirectDraw(), TGLCameraOverlay::RenderAxis(), and TGLCameraOverlay::RenderBar().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 213 of file TGLUtil.h.
Referenced by TEveProjectionAxesGL::DirectDraw(), TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), Fill(), TGLRotateManip::HandleButton(), operator=(), TGLViewer::PostSceneBuildSetup(), TEveRGBAPaletteOverlay::Render(), TEveCaloLegoOverlay::RenderPaletteScales(), TEveCaloLegoOverlay::RenderPlaneInterface(), TGLAxisPainterBox::SetAxis3DTitlePos(), TGLCamera::SetCenterVec(), TGLCamera::SetCenterVecWarp(), TGLCamera::SetFixDefCenterVec(), TGLViewer::SetGuideState(), TGLPlotBox::SetPlotBox(), TGLCamera::TGLCamera(), TGLMatrix::TGLMatrix(), and TGLVertex3().
|
inline |
void TGLVertex3::Shift | ( | TGLVector3 & | shift | ) |
Offset a vertex by vector 'shift'.
Definition at line 93 of file TGLUtil.cxx.
Referenced by TGLCamera::ViewportDeltaToWorld().
Offset a vertex by components (xDelta, yDelta, zDelta)
Definition at line 103 of file TGLUtil.cxx.
|
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().
|
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().
|
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().
|
protected |
Definition at line 91 of file TGLUtil.h.
Referenced by Arr(), CArr(), Dump(), TGLVector3::Mag(), Maximum(), Minimum(), Negate(), TGLVector3::Normalise(), operator*=(), operator+=(), operator-(), TGLVector3::operator-(), operator-=(), TGLVector3::operator/=(), TGLVector3::operator=(), operator==(), operator[](), Set(), and Shift().