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

Constructor & Destructor Documentation

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

Definition at line 53 of file FWTextProjected.h.

53 {}
FWEveTextProjected::~FWEveTextProjected ( )
inlineoverride

Definition at line 54 of file FWTextProjected.h.

54 {}

Member Function Documentation

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

Definition at line 57 of file FWTextProjected.h.

References FWEveText::ClassDefOverride().

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

Definition at line 36 of file FWTextProjected.cc.

References FWEveText::m_offsetZ, and amptDefault_cfi::proj.

Referenced by FWJetProxyBuilder::setTextPos().

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