CMS 3D CMS Logo

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

#include <FWTextProjected.h>

Inheritance diagram for FWEveTextProjected:
FWEveText

Public Member Functions

 ClassDef (FWEveTextProjected, 0)
 
 FWEveTextProjected ()
 
virtual TEveElement * GetProjectedAsElement ()
 
virtual void UpdateProjection ()
 
virtual ~FWEveTextProjected ()
 
- Public Member Functions inherited from FWEveText
 ClassDef (FWEveText, 0)
 
 FWEveText (const char *txt="")
 
virtual TClass * ProjectedClass (const TEveProjection *p) const
 
virtual ~FWEveText ()
 

Private Member Functions

 FWEveTextProjected (const FWEveTextProjected &)
 
FWEveTextProjectedoperator= (const FWEveTextProjected &)
 

Additional Inherited Members

- Public Attributes inherited from FWEveText
float m_offsetZ
 
float m_textPad
 

Detailed Description

Definition at line 51 of file FWTextProjected.h.

Constructor & Destructor Documentation

FWEveTextProjected::FWEveTextProjected ( const FWEveTextProjected )
private
FWEveTextProjected::FWEveTextProjected ( )
inline

Definition at line 59 of file FWTextProjected.h.

59 {}
virtual FWEveTextProjected::~FWEveTextProjected ( )
inlinevirtual

Definition at line 60 of file FWTextProjected.h.

60 {}

Member Function Documentation

FWEveTextProjected::ClassDef ( FWEveTextProjected  ,
 
)
virtual TEveElement* FWEveTextProjected::GetProjectedAsElement ( )
inlinevirtual

Definition at line 63 of file FWTextProjected.h.

63 { return this; }
FWEveTextProjected& FWEveTextProjected::operator= ( const FWEveTextProjected )
private
void FWEveTextProjected::UpdateProjection ( )
virtual

Definition at line 38 of file FWTextProjected.cc.

References FWEveText::m_offsetZ.

39 {
40  // printf("update projection \n");
41 
42  FWEveText & als = * dynamic_cast<FWEveText*>(fProjectable);
43  TEveTrans *tr = als.PtrMainTrans(kFALSE);
44 
45  fText = als.GetText();
46  *fMainColorPtr = als.GetMainColor();
47  float pos[3];
48  tr->GetPos(pos);
49 
50  TEveProjection& proj = * fManager->GetProjection();
51  proj.ProjectPoint(pos[0],pos[1], pos[2], fDepth);
52 
53  RefMainTrans().SetPos(pos[0], pos[1], pos[2] + als.m_offsetZ);
54 }
float m_offsetZ