library: libRGL
#include "TGLUtil.h"

TGLLine3


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

class TGLLine3

Inheritance Chart:
TGLLine3

    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

Data Members

    private:
TGLVertex3 fVertex ! Start vertex of line TGLVector3 fVector ! 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
const TGLVertex3 End()
const TGLVector3 & Vector()

Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLUtil.cxx,v 1.27 2006/06/13 15:43:39 couet 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.