test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions | Friends
TEveEllipsoid Class Reference

#include <TEveEllipsoid.h>

Inheritance diagram for TEveEllipsoid:

Public Member Functions

 ClassDef (TEveEllipsoid, 0)
 
virtual void ComputeBBox ()
 
virtual TClass * ProjectedClass (const TEveProjection *p) const
 
TEveTrans & RefEMtx ()
 
TEveVector & RefExtent3D ()
 
TEveVector & RefPos ()
 
void SetScale (float x)
 
 TEveEllipsoid (const Text_t *n="TEveEllipsoid", const Text_t *t="")
 
virtual ~TEveEllipsoid ()
 

Protected Attributes

TEveTrans fEMtx
 
float fEScale
 
TEveVector fExtent3D
 
TEveVector fPos
 

Private Member Functions

TEveEllipsoidoperator= (const TEveEllipsoid &)
 
 TEveEllipsoid (const TEveEllipsoid &)
 

Friends

class TEveEllipsoidGL
 
class TEveEllipsoidProjected
 
class TEveEllipsoidProjectedGL
 

Detailed Description

Definition at line 14 of file TEveEllipsoid.h.

Constructor & Destructor Documentation

TEveEllipsoid::TEveEllipsoid ( const TEveEllipsoid )
private
TEveEllipsoid::TEveEllipsoid ( const Text_t *  n = "TEveEllipsoid",
const Text_t *  t = "" 
)

Definition at line 7 of file TEveEllipsoid.cc.

7  :
8  TEveShape(n, t)
9 {
10  // Constructor.
11 }
virtual TEveEllipsoid::~TEveEllipsoid ( )
inlinevirtual

Definition at line 33 of file TEveEllipsoid.h.

33 {}

Member Function Documentation

TEveEllipsoid::ClassDef ( TEveEllipsoid  ,
 
)
void TEveEllipsoid::ComputeBBox ( )
virtual

Definition at line 14 of file TEveEllipsoid.cc.

References a, Abs(), fExtent3D, fPos, and Max().

15 {
16  // Compute bounding-box of the data.
17 
18  BBoxInit();
19 
21 
22  fBBox[0] = -a +fPos[0];
23  fBBox[1] = a +fPos[0];
24 
25  fBBox[2] = -a +fPos[1];
26  fBBox[3] = a +fPos[1];
27 
28  fBBox[4] = -a +fPos[2];
29  fBBox[5] = a +fPos[2];
30 }
TEveVector fExtent3D
Definition: TEveEllipsoid.h:26
TEveVector fPos
Definition: TEveEllipsoid.h:25
T Abs(T a)
Definition: MathUtil.h:49
T Max(T a, T b)
Definition: MathUtil.h:44
double a
Definition: hdecay.h:121
TEveEllipsoid& TEveEllipsoid::operator= ( const TEveEllipsoid )
private
TClass * TEveEllipsoid::ProjectedClass ( const TEveProjection *  p) const
virtual

Definition at line 33 of file TEveEllipsoid.cc.

34 {
35  // Virtual from TEveProjectable, returns TEveEllipsoidProjected class.
36 
37  return TEveEllipsoidProjected::Class();
38 }
TEveTrans& TEveEllipsoid::RefEMtx ( )
inline
TEveVector& TEveEllipsoid::RefExtent3D ( )
inline

Definition at line 39 of file TEveEllipsoid.h.

References fExtent3D.

Referenced by FWVertexProxyBuilder::build(), TEveEllipsoidProjected::ComputeBBox(), and TEveEllipsoidGL::DirectDraw().

39 { return fExtent3D ;} // cached member for bbox and 3D rendering
TEveVector fExtent3D
Definition: TEveEllipsoid.h:26
TEveVector& TEveEllipsoid::RefPos ( )
inline
void TEveEllipsoid::SetScale ( float  x)
inline

Definition at line 42 of file TEveEllipsoid.h.

References fEScale, and x.

Referenced by FWVertexProxyBuilder::build().

42 {fEScale = x; }
Definition: DDAxes.h:10

Friends And Related Function Documentation

friend class TEveEllipsoidGL
friend

Definition at line 17 of file TEveEllipsoid.h.

friend class TEveEllipsoidProjected
friend

Definition at line 16 of file TEveEllipsoid.h.

friend class TEveEllipsoidProjectedGL
friend

Definition at line 18 of file TEveEllipsoid.h.

Member Data Documentation

TEveTrans TEveEllipsoid::fEMtx
protected

Definition at line 27 of file TEveEllipsoid.h.

Referenced by RefEMtx().

float TEveEllipsoid::fEScale
protected
TEveVector TEveEllipsoid::fExtent3D
protected

Definition at line 26 of file TEveEllipsoid.h.

Referenced by ComputeBBox(), and RefExtent3D().

TEveVector TEveEllipsoid::fPos
protected

Definition at line 25 of file TEveEllipsoid.h.

Referenced by ComputeBBox(), and RefPos().