DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Protected Attributes | List of all members
dd4hep::FrameControl Class Reference

class FrameControl FrameControl.h DDEve/FrameControl.h More...

#include <FrameControl.h>

Inheritance diagram for dd4hep::FrameControl:
TGMainFrame dd4hep::EventControl

Public Member Functions

 FrameControl (TGClient *client, const std::string &name, unsigned int width, unsigned int height)
 Standard constructor. More...
 
virtual ~FrameControl ()
 Default destructor. More...
 
TGClient & client () const
 Access to the windows client. More...
 
TGCompositeFrame * frame () const
 Access to the top level frame. More...
 
virtual void Build ()
 Build the control. More...
 
virtual void OnBuild ()
 User callback to add elements to the control. More...
 
virtual TGCompositeFrame * CreateFrame ()
 Create the frame for this control structure. Default: create horizontal frame. More...
 
virtual const TGPicture * LoadPicture (const std::string &path)
 Helper: Load picture using path name. More...
 

Protected Attributes

TGClient * m_client
 Reference to TEve manager. More...
 
TGCompositeFrame * m_frame
 Reference to control's frame. More...
 

Detailed Description

class FrameControl FrameControl.h DDEve/FrameControl.h

Definition at line 36 of file FrameControl.h.

Constructor & Destructor Documentation

◆ FrameControl()

dd4hep::FrameControl::FrameControl ( TGClient *  client,
const std::string &  name,
unsigned int  width,
unsigned int  height 
)

Standard constructor.

◆ ~FrameControl()

FrameControl::~FrameControl ( )
virtual

Default destructor.

Definition at line 38 of file FrameControl.cpp.

Member Function Documentation

◆ Build()

void FrameControl::Build ( )
virtual

Build the control.

Definition at line 46 of file FrameControl.cpp.

◆ client()

TGClient& dd4hep::FrameControl::client ( ) const
inline

Access to the windows client.

Definition at line 50 of file FrameControl.h.

◆ CreateFrame()

TGCompositeFrame * FrameControl::CreateFrame ( )
virtual

Create the frame for this control structure. Default: create horizontal frame.

Reimplemented in dd4hep::EventControl.

Definition at line 60 of file FrameControl.cpp.

◆ frame()

TGCompositeFrame* dd4hep::FrameControl::frame ( ) const
inline

Access to the top level frame.

Definition at line 52 of file FrameControl.h.

◆ LoadPicture()

const TGPicture * FrameControl::LoadPicture ( const std::string &  path)
virtual

Helper: Load picture using path name.

Helper functions to fill the graphics pane(s)

Definition at line 65 of file FrameControl.cpp.

◆ OnBuild()

void FrameControl::OnBuild ( )
virtual

User callback to add elements to the control.

Reimplemented in dd4hep::EventControl.

Definition at line 56 of file FrameControl.cpp.

Member Data Documentation

◆ m_client

TGClient* dd4hep::FrameControl::m_client
protected

Reference to TEve manager.

Definition at line 40 of file FrameControl.h.

◆ m_frame

TGCompositeFrame* dd4hep::FrameControl::m_frame
protected

Reference to control's frame.

Definition at line 42 of file FrameControl.h.


The documentation for this class was generated from the following files: