class TGLLine3


TGLLine3

 3D space, fixed length, line class, with direction / length 'vector',
passing through point 'vertex'. Just wraps a TGLVector3 / TGLVertex3
pair.

Function Members (Methods)

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:
TGLVector3fVector! Vector of line from fVertex
TGLVertex3fVertex! Start vertex of line

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

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()
 Bitwise copy constructor and = operator are fine
 Accessors
{ return fVertex; }
const TGLVertex3 End()
{ return fVertex + fVector; }
TGLUtil& operator=(const TGLLine3& )

Author: Richard Maunder 25/05/2005
Last change: root/gl:$Id: TGLUtil.h 26148 2008-11-11 19:58:19Z matevz $
Last generated: 2008-11-14 16:34
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *

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.