library: libRGL
#include "TGLUtil.h"

TGLVertex3


class description - source file - inheritance tree (.pdf)

class TGLVertex3

Inheritance Chart:
TGLVertex3
<-
TGLVector3

    protected:
Bool_t ValidIndex(UInt_t index) const public:
TGLVertex3() TGLVertex3(Double_t x, Double_t y, Double_t z) TGLVertex3(const TGLVertex3& other) TGLVertex3 operator-() const virtual ~TGLVertex3() Double_t* Arr() const Double_t* CArr() const static TClass* Class() void Dump() const void Fill(Double_t val) virtual TClass* IsA() const void Negate() const TGLVertex3& operator+=(const TGLVector3& vec) const const TGLVertex3& operator-=(const TGLVector3& vec) const 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 TGLVertex3& other) void Shift(TGLVector3& shift) void Shift(Double_t xDelta, Double_t yDelta, Double_t zDelta) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Double_t X() const Double_t& X() Double_t Y() const Double_t& Y() Double_t Z() const Double_t& Z()

Data Members


    protected:
Double_t fVals[3]

Class Description

                                                                      
 TGLVertex3                                                           
                                                                      
 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.                                                            


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

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

TGLVertex3(const TGLVertex3 & other)
 Construct a vertex from 'other'

~TGLVertex3()
 Destroy vertex object

void Shift(TGLVector3 & shift)
 Offset a vertex by vector 'shift'

void Shift(Double_t xDelta, Double_t yDelta, Double_t zDelta)
 Offset a vertex by components (xDelta, yDelta, zDelta)

void Dump() const
 Output vertex component values to std::cout



Inline Functions


                   Bool_t ValidIndex(UInt_t index) const
                   Bool_t operator==(const TGLVertex3& rhs) const
              TGLVertex3& operator=(const TGLVertex3& rhs)
        const TGLVertex3& operator-=(const TGLVector3& vec) const
        const TGLVertex3& operator+=(const TGLVector3& vec) const
               TGLVertex3 operator-() const
                     void Fill(Double_t val)
                     void Set(Double_t x, Double_t y, Double_t z)
                     void Set(const TGLVertex3& other)
                     void Negate()
                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()
                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)


Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLUtil.cxx,v 1.26 2006/02/23 16:44:52 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.