library: libRGL #include "TGLUtil.h" |
TGLLine3
class description - source file - inheritance tree (.pdf)
public:
TGLLine3(const TGLVertex3& start, const TGLVertex3& end)
TGLLine3(const TGLVertex3& start, const TGLVector3& vector)
TGLLine3(const TGLLine3&)
virtual ~TGLLine3()
static TClass* Class()
void Draw() const
const TGLVertex3 End() const
virtual TClass* IsA() const
TGLLine3& operator=(const TGLLine3&)
void Set(const TGLVertex3& start, const TGLVertex3& end)
void Set(const TGLVertex3& start, const TGLVector3& vector)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
const TGLVertex3& Start() const
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
const TGLVector3& Vector() const
private:
TGLVertex3 fVertex ! Start vertex of line
TGLVector3 fVector ! Vector of line from fVertex
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) :
fVertex(start), fVector(end - start)
Construct 3D line running from 'start' to 'end'
TGLLine3(const TGLVertex3 & start, const TGLVector3 & vect) :
fVertex(start), fVector(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() const
Draw line in current basic GL color. Assume we are in the correct reference
frame
Inline Functions
const TGLVertex3& Start() const
const TGLVertex3 End() const
const TGLVector3& Vector() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGLLine3 TGLLine3(const TGLLine3&)
TGLLine3& operator=(const TGLLine3&)
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.