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 52 of file FWTextProjected.h.

Constructor & Destructor Documentation

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

Definition at line 60 of file FWTextProjected.h.

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

Definition at line 61 of file FWTextProjected.h.

61 {}

Member Function Documentation

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

Definition at line 64 of file FWTextProjected.h.

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

Definition at line 39 of file FWTextProjected.cc.

References FWEveText::m_offsetZ, pos, and trackerHitRTTI::proj.

Referenced by FWJetProxyBuilder::setTextPos().

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