CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
FWEveTextProjected Class Reference

#include <FWTextProjected.h>

Inheritance diagram for FWEveTextProjected:
FWEveText

Public Member Functions

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

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 {}
FWEveTextProjected::~FWEveTextProjected ( )
inlineoverride

Definition at line 60 of file FWTextProjected.h.

60 {}

Member Function Documentation

FWEveTextProjected::ClassDefOverride ( FWEveTextProjected  ,
 
)
TEveElement* FWEveTextProjected::GetProjectedAsElement ( )
inlineoverride

Definition at line 63 of file FWTextProjected.h.

References FWEveText::ClassDefOverride().

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

Definition at line 38 of file FWTextProjected.cc.

References FWEveText::m_offsetZ.

Referenced by FWJetProxyBuilder::setTextPos().

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