CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FWEveTextProjected Class Reference

#include <FWTextProjected.h>

Inheritance diagram for FWEveTextProjected:
FWEveText

List of all members.

Public Member Functions

 ClassDef (FWEveTextProjected, 0)
 FWEveTextProjected ()
virtual TEveElement * GetProjectedAsElement ()
virtual void UpdateProjection ()
virtual ~FWEveTextProjected ()

Private Member Functions

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

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.

{}
virtual FWEveTextProjected::~FWEveTextProjected ( ) [inline, virtual]

Definition at line 61 of file FWTextProjected.h.

{}

Member Function Documentation

FWEveTextProjected::ClassDef ( FWEveTextProjected  ,
 
)
virtual TEveElement* FWEveTextProjected::GetProjectedAsElement ( ) [inline, virtual]

Definition at line 64 of file FWTextProjected.h.

{ 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().

{
   //   printf("update projection \n");

   FWEveText      & als  = * dynamic_cast<FWEveText*>(fProjectable);
   TEveTrans      *tr   =   als.PtrMainTrans(kFALSE);

   fText = als.GetText();
   *fMainColorPtr = als.GetMainColor();
   float pos[3];
   tr->GetPos(pos);

   TEveProjection& proj = * fManager->GetProjection();
   proj.ProjectPoint(pos[0],pos[1], pos[2], fDepth);

   RefMainTrans().SetPos(pos[0], pos[1], pos[2] + als.m_offsetZ);
}