library: libRGL #include "TGLUtil.h" |
TGLPlane
class description - source file - inheritance tree (.pdf)
private:
void Normalise()
public:
Double_t A() const
TGLPlane()
TGLPlane(const TGLPlane& other)
TGLPlane(Double_t a, Double_t b, Double_t c, Double_t d)
TGLPlane(Double_t* eq)
TGLPlane(const TGLVector3& norm, const TGLVertex3& point)
TGLPlane(const TGLVertex3& p1, const TGLVertex3& p2, const TGLVertex3& p3)
virtual ~TGLPlane()
Double_t* Arr()
Double_t B() const
Double_t C() const
const Double_t* CArr() const
static TClass* Class()
Double_t D() const
Double_t DistanceTo(const TGLVertex3& vertex) const
void Dump() const
virtual TClass* IsA() const
TGLVertex3 NearestOn(const TGLVertex3& point) const
void Negate()
TGLVector3 Norm() const
TGLPlane& operator=(const TGLPlane&)
void Set(const TGLPlane& other)
void Set(Double_t a, Double_t b, Double_t c, Double_t d)
void Set(Double_t* eq)
void Set(const TGLVector3& norm, const TGLVertex3& point)
void Set(const TGLVertex3& p1, const TGLVertex3& p2, const TGLVertex3& p3)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
Double_t fVals[4]
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.
TGLPlane()
Construct a default plane of x + y + z = 0
TGLPlane(const TGLPlane & other)
Construct plane from 'other'
TGLPlane(Double_t a, Double_t b, Double_t c, Double_t d)
Construct plane with equation a.x + b.y + c.z + d = 0
with optional normalisation
TGLPlane(Double_t eq[4])
Construct plane with equation eq[0].x + eq[1].y + eq[2].z + eq[3] = 0
with optional normalisation
TGLPlane(const TGLVertex3 & p1, const TGLVertex3 & p2,
const TGLVertex3 & p3)
Construct plane passing through 3 supplied points
with optional normalisation
TGLPlane(const TGLVector3 & v, const TGLVertex3 & p)
Construct plane with supplied normal vector, passing through point
with optional normalisation
~TGLPlane()
Destroy plane object
void Dump() const
Output plane equation to std::out
Inline Functions
void Normalise()
void Set(const TGLPlane& other)
void Set(Double_t a, Double_t b, Double_t c, Double_t d)
void Set(Double_t* eq)
void Set(const TGLVector3& norm, const TGLVertex3& point)
void Set(const TGLVertex3& p1, const TGLVertex3& p2, const TGLVertex3& p3)
void Negate()
Double_t A() const
Double_t B() const
Double_t C() const
Double_t D() const
TGLVector3 Norm() const
Double_t DistanceTo(const TGLVertex3& vertex) const
TGLVertex3 NearestOn(const TGLVertex3& point) const
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)
TGLPlane& operator=(const TGLPlane&)
Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLUtil.cxx,v 1.21 2005/12/05 17:34:45 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.