library: libRGL
#include "TGLUtil.h"

TGLLine3


class description - header file - source file
viewCVS header - viewCVS source

class TGLLine3

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGLLine3(const TGLLine3&)
TGLLine3(const TGLVertex3& start, const TGLVertex3& end)
TGLLine3(const TGLVertex3& start, const TGLVector3& vector)
virtual~TGLLine3()
static TClass*Class()
voidDraw() const
const TGLVertex3End() const
virtual TClass*IsA() const
TGLLine3&operator=(const TGLLine3&)
voidSet(const TGLVertex3& start, const TGLVertex3& end)
voidSet(const TGLVertex3& start, const TGLVector3& vector)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
const TGLVertex3&Start() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
const TGLVector3&Vector() const

Data Members

private:
TGLVertex3fVertex! Start vertex of line
TGLVector3fVector! Vector of line from fVertex

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.                                                            

TGLLine3(const TGLVertex3 & start, const TGLVertex3 & end)
 Construct 3D line running from 'start' to 'end'
TGLLine3(const TGLVertex3 & start, const TGLVector3 & vect)
 Construct 3D line running from 'start', magnitude 'vect'
~TGLLine3()
 Destroy 3D line object
void Set(const TGLVertex3 & start, const TGLVertex3 & end)
 Set 3D line running from 'start' to 'end'
void Set(const TGLVertex3 & start, const TGLVector3 & vect)
 Set 3D line running from start, magnitude 'vect'
void Draw()
 Draw line in current basic GL color. Assume we are in the correct reference
 frame
TGLLine3(const TGLVertex3 & start, const TGLVertex3 & end)
const TGLVertex3 & Start()
 Accessors
{ return fVertex; }
const TGLVertex3 End()
{ return fVertex + fVector; }
const TGLVector3 & Vector()
{ return fVector; }
TGLUtil& operator=(const TGLUtil& glu)

Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLUtil.cxx,v 1.33 2006/12/13 09:33:29 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.