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() [1/2]

FWEveTextProjected::FWEveTextProjected ( const FWEveTextProjected )
private

◆ FWEveTextProjected() [2/2]

FWEveTextProjected::FWEveTextProjected ( )
inline

Definition at line 53 of file FWTextProjected.h.

53 {}

◆ ~FWEveTextProjected()

FWEveTextProjected::~FWEveTextProjected ( )
inlineoverride

Definition at line 54 of file FWTextProjected.h.

54 {}

Member Function Documentation

◆ ClassDefOverride()

FWEveTextProjected::ClassDefOverride ( FWEveTextProjected  ,
 
)

◆ GetProjectedAsElement()

TEveElement* FWEveTextProjected::GetProjectedAsElement ( )
inlineoverride

Definition at line 57 of file FWTextProjected.h.

57 { return this; }

◆ operator=()

FWEveTextProjected& FWEveTextProjected::operator= ( const FWEveTextProjected )
private

◆ UpdateProjection()

void FWEveTextProjected::UpdateProjection ( )
override

Definition at line 36 of file FWTextProjected.cc.

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 }

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

Referenced by FWJetProxyBuilder::setTextPos().

pos
Definition: PixelAliasList.h:18
amptDefault_cfi.proj
proj
Definition: amptDefault_cfi.py:13
FWEveText::m_offsetZ
float m_offsetZ
Definition: FWTextProjected.h:35
FWEveText
Definition: FWTextProjected.h:29