TGLPlane Class Reference

#include <TGLUtil.h>

List of all members.

Public Member Functions

 TGLPlane ()
 TGLPlane (const TGLPlane &other)
 TGLPlane (Double_t a, Double_t b, Double_t c, Double_t d)
 TGLPlane (Double_t eq[4])
 TGLPlane (const TGLVector3 &norm, const TGLVertex3 &point)
 TGLPlane (const TGLVertex3 &p1, const TGLVertex3 &p2, const TGLVertex3 &p3)
virtual ~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[4])
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_tCArr () const
Double_tArr ()
void Dump () const
 ClassDef (TGLPlane, 0)
 TGLPlane ()
 TGLPlane (const TGLPlane &other)
 TGLPlane (Double_t a, Double_t b, Double_t c, Double_t d)
 TGLPlane (Double_t eq[4])
 TGLPlane (const TGLVector3 &norm, const TGLVertex3 &point)
 TGLPlane (const TGLVertex3 &p1, const TGLVertex3 &p2, const TGLVertex3 &p3)
virtual ~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[4])
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_tCArr () const
Double_tArr ()
void Dump () const
 ClassDef (TGLPlane, 0)

Private Member Functions

void Normalise ()
void Normalise ()

Private Attributes

Double_t fVals [4]


Detailed Description

Definition at line 546 of file TGLUtil.h.


Constructor & Destructor Documentation

TGLPlane::TGLPlane (  ) 

Definition at line 342 of file TGLUtil.cxx.

References Set().

TGLPlane::TGLPlane ( const TGLPlane other  ) 

Definition at line 349 of file TGLUtil.cxx.

References Set().

TGLPlane::TGLPlane ( Double_t  a,
Double_t  b,
Double_t  c,
Double_t  d 
)

Definition at line 356 of file TGLUtil.cxx.

References Set().

TGLPlane::TGLPlane ( Double_t  eq[4]  ) 

Definition at line 364 of file TGLUtil.cxx.

References Set().

TGLPlane::TGLPlane ( const TGLVector3 norm,
const TGLVertex3 point 
)

Definition at line 381 of file TGLUtil.cxx.

References p, and Set().

TGLPlane::TGLPlane ( const TGLVertex3 p1,
const TGLVertex3 p2,
const TGLVertex3 p3 
)

Definition at line 372 of file TGLUtil.cxx.

References p1(), p2(), p3(), and Set().

TGLPlane::~TGLPlane (  )  [virtual]

Definition at line 389 of file TGLUtil.cxx.

TGLPlane::TGLPlane (  ) 

TGLPlane::TGLPlane ( const TGLPlane other  ) 

TGLPlane::TGLPlane ( Double_t  a,
Double_t  b,
Double_t  c,
Double_t  d 
)

TGLPlane::TGLPlane ( Double_t  eq[4]  ) 

TGLPlane::TGLPlane ( const TGLVector3 norm,
const TGLVertex3 point 
)

TGLPlane::TGLPlane ( const TGLVertex3 p1,
const TGLVertex3 p2,
const TGLVertex3 p3 
)

virtual TGLPlane::~TGLPlane (  )  [virtual]


Member Function Documentation

void TGLPlane::Normalise (  )  [private]

Definition at line 395 of file TGLUtil.cxx.

References Error, fVals, and sqrt().

Referenced by Set().

void TGLPlane::Set ( const TGLPlane other  ) 

Definition at line 422 of file TGLUtil.cxx.

References fVals.

Referenced by TGLRotateManip::HandleButton(), Set(), TGLPlane(), and TGLCamera::UpdateCache().

void TGLPlane::Set ( Double_t  a,
Double_t  b,
Double_t  c,
Double_t  d 
)

Definition at line 433 of file TGLUtil.cxx.

References fVals, and Normalise().

void TGLPlane::Set ( Double_t  eq[4]  ) 

Definition at line 445 of file TGLUtil.cxx.

References fVals, and Normalise().

void TGLPlane::Set ( const TGLVector3 norm,
const TGLVertex3 point 
)

Definition at line 457 of file TGLUtil.cxx.

References fVals, norm(), and Normalise().

void TGLPlane::Set ( const TGLVertex3 p1,
const TGLVertex3 p2,
const TGLVertex3 p3 
)

Definition at line 469 of file TGLUtil.cxx.

References Cross(), norm(), p1(), p2(), p3(), and Set().

void TGLPlane::Negate (  ) 

Definition at line 478 of file TGLUtil.cxx.

References fVals.

Referenced by TGLClipPlane::PlaneSet().

Double_t TGLPlane::A (  )  const [inline]

Definition at line 573 of file TGLUtil.h.

References fVals.

Referenced by Intersection().

Double_t TGLPlane::B (  )  const [inline]

Definition at line 574 of file TGLUtil.h.

References fVals.

Referenced by Intersection().

Double_t TGLPlane::C (  )  const [inline]

Definition at line 575 of file TGLUtil.h.

References fVals.

Referenced by Intersection().

Double_t TGLPlane::D (  )  const [inline]

Definition at line 576 of file TGLUtil.h.

References fVals.

Referenced by TEveCaloLegoGL::DrawAxis2D(), Intersection(), NearestOn(), TEveLegoEventHandler::Rotate(), and TGLCameraOverlay::SetFrustum().

TGLVector3 TGLPlane::Norm (  )  const [inline]

Definition at line 578 of file TGLUtil.h.

References fVals.

Referenced by TGLRotateManip::CalculateAngleDelta(), TGLRotateManip::Draw(), TGLCamera::EyeDirection(), TGLRotateManip::HandleButton(), TGLRotateManip::HandleMotion(), NearestOn(), TGLClipPlane::Set(), and TGLClipPlane::Setup().

Double_t TGLPlane::DistanceTo ( const TGLVertex3 vertex  )  const

Definition at line 489 of file TGLUtil.cxx.

References fVals.

Referenced by TGLPerspectiveCamera::Apply(), and TGLBoundingBox::Overlap().

TGLVertex3 TGLPlane::NearestOn ( const TGLVertex3 point  )  const

Definition at line 497 of file TGLUtil.cxx.

References D(), Dot(), Norm(), and o.

Referenced by TGLRotateManip::Draw(), TGLCamera::Frustum(), and TGLClipPlane::Set().

const Double_t* TGLPlane::CArr (  )  const [inline]

Definition at line 583 of file TGLUtil.h.

References fVals.

Double_t* TGLPlane::Arr (  )  [inline]

Definition at line 584 of file TGLUtil.h.

References fVals.

void TGLPlane::Dump (  )  const

Definition at line 413 of file TGLUtil.cxx.

References fVals.

TGLPlane::ClassDef ( TGLPlane  ,
 
)

void TGLPlane::Normalise (  )  [private]

void TGLPlane::Set ( const TGLPlane other  ) 

void TGLPlane::Set ( Double_t  a,
Double_t  b,
Double_t  c,
Double_t  d 
)

void TGLPlane::Set ( Double_t  eq[4]  ) 

void TGLPlane::Set ( const TGLVector3 norm,
const TGLVertex3 point 
)

void TGLPlane::Set ( const TGLVertex3 p1,
const TGLVertex3 p2,
const TGLVertex3 p3 
)

void TGLPlane::Negate (  ) 

Double_t TGLPlane::A (  )  const [inline]

Definition at line 573 of file TGLUtil.h.

References fVals.

Double_t TGLPlane::B (  )  const [inline]

Definition at line 574 of file TGLUtil.h.

References fVals.

Double_t TGLPlane::C (  )  const [inline]

Definition at line 575 of file TGLUtil.h.

References fVals.

Double_t TGLPlane::D (  )  const [inline]

Definition at line 576 of file TGLUtil.h.

References fVals.

TGLVector3 TGLPlane::Norm (  )  const [inline]

Definition at line 578 of file TGLUtil.h.

References fVals.

Double_t TGLPlane::DistanceTo ( const TGLVertex3 vertex  )  const

TGLVertex3 TGLPlane::NearestOn ( const TGLVertex3 point  )  const

const Double_t* TGLPlane::CArr (  )  const [inline]

Definition at line 583 of file TGLUtil.h.

References fVals.

Double_t* TGLPlane::Arr (  )  [inline]

Definition at line 584 of file TGLUtil.h.

References fVals.

void TGLPlane::Dump (  )  const

TGLPlane::ClassDef ( TGLPlane  ,
 
)


Member Data Documentation

Double_t TGLPlane::fVals [private]

Definition at line 550 of file TGLUtil.h.

Referenced by A(), Arr(), B(), C(), CArr(), D(), DistanceTo(), Dump(), Negate(), Norm(), Normalise(), and Set().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1