GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Private Attributes | List of all members
TGo4PolyCondView Class Reference

#include <TGo4PolyCondView.h>

+ Inheritance diagram for TGo4PolyCondView:

Public Member Functions

 TGo4PolyCondView (TCutG *source)
 
 TGo4PolyCondView ()
 
virtual ~TGo4PolyCondView ()
 
void Paint (Option_t *opt) override
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 
Bool_t IsCutChanged () const
 
virtual void UpdateCondition ()
 
void SetCondition (TGo4PolyCond *condition)
 
TGo4PolyCondGetCondition ()
 
void SetCut (TCutG *source)
 
TCutG * CreateCut ()
 
const char * GetName () const override
 
void SetName (const char *nam) override
 
void DeleteRegion ()
 
void SetLabelDraw (Bool_t on)
 
void SetLimitsDraw (Bool_t on)
 
void SetIntDraw (Bool_t on)
 
void SetXMeanDraw (Bool_t on)
 
void SetXRMSDraw (Bool_t on)
 
void SetYMeanDraw (Bool_t on)
 
void SetYRMSDraw (Bool_t on)
 
void SetXMaxDraw (Bool_t on)
 
void SetYMaxDraw (Bool_t on)
 
void SetCMaxDraw (Bool_t on)
 
Bool_t IsLabelDraw ()
 
Bool_t IsLimitsDraw ()
 
Bool_t IsIntDraw ()
 
Bool_t IsXMeanDraw ()
 
Bool_t IsXRMSDraw ()
 
Bool_t IsYMeanDraw ()
 
Bool_t IsYRMSDraw ()
 
Bool_t IsXMaxDraw ()
 
Bool_t IsYMaxDraw ()
 
Bool_t IsCMaxDraw ()
 
void SaveLabelStyle ()
 
void ResetLabel ()
 
Int_t InsertPoint () override
 
Int_t RemovePoint () override
 
Bool_t IsAtExecuteMouseEvent () const
 
Bool_t IsAtExecuteMouseMenu () const
 

Private Attributes

Bool_t fbExecutesMouseEvent {kFALSE}
 
Bool_t fbExecutesMouseMenu {kFALSE}
 
TGo4PolyCondfxPolyCondition {nullptr}
 

Detailed Description

Definition at line 20 of file TGo4PolyCondView.h.

Constructor & Destructor Documentation

◆ TGo4PolyCondView() [1/2]

TGo4PolyCondView::TGo4PolyCondView ( TCutG *  source)

JAM2016: like for polygon condition we may suppress intermediate streaming when updating the condition from view by disabling the following define:

Definition at line 23 of file TGo4PolyCondView.cxx.

References TGo4PolyCond::CleanupSpecials(), and SetCut().

◆ TGo4PolyCondView() [2/2]

TGo4PolyCondView::TGo4PolyCondView ( )

Definition at line 32 of file TGo4PolyCondView.cxx.

References TGo4PolyCond::CleanupSpecials().

◆ ~TGo4PolyCondView()

TGo4PolyCondView::~TGo4PolyCondView ( )
virtual

Definition at line 41 of file TGo4PolyCondView.cxx.

Member Function Documentation

◆ CreateCut()

TCutG * TGo4PolyCondView::CreateCut ( )

create plain cutg from this view.

Definition at line 181 of file TGo4PolyCondView.cxx.

References TGo4PolyCond::CleanupSpecials().

Referenced by GetCondition(), and UpdateCondition().

◆ DeleteRegion()

void TGo4PolyCondView::DeleteRegion ( )

Delete condition instead of view:

Definition at line 216 of file TGo4PolyCondView.cxx.

References fxPolyCondition, and TGo4Condition::IsOwnedByEditor().

Referenced by GetCondition().

◆ ExecuteEvent()

void TGo4PolyCondView::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
override

◆ GetCondition()

TGo4PolyCond* TGo4PolyCondView::GetCondition ( )
inline

Definition at line 38 of file TGo4PolyCondView.h.

References CreateCut(), DeleteRegion(), fxPolyCondition, GetName(), SetCut(), and SetName().

◆ GetName()

const char * TGo4PolyCondView::GetName ( ) const
override

Definition at line 202 of file TGo4PolyCondView.cxx.

References fxPolyCondition.

Referenced by GetCondition().

◆ InsertPoint()

Int_t TGo4PolyCondView::InsertPoint ( )
override

Definition at line 55 of file TGo4PolyCondView.cxx.

References fbExecutesMouseMenu, and UpdateCondition().

Referenced by IsCMaxDraw().

◆ IsAtExecuteMouseEvent()

Bool_t TGo4PolyCondView::IsAtExecuteMouseEvent ( ) const
inline

Definition at line 82 of file TGo4PolyCondView.h.

References fbExecutesMouseEvent.

Referenced by TGo4PolyCondPainter::PaintCondition().

◆ IsAtExecuteMouseMenu()

Bool_t TGo4PolyCondView::IsAtExecuteMouseMenu ( ) const
inline

Definition at line 83 of file TGo4PolyCondView.h.

References fbExecutesMouseMenu.

Referenced by TGo4PolyCondPainter::PaintCondition().

◆ IsCMaxDraw()

Bool_t TGo4PolyCondView::IsCMaxDraw ( )
inline

◆ IsCutChanged()

Bool_t TGo4PolyCondView::IsCutChanged ( ) const

Check if cut on pad is changed compared with condition

Definition at line 115 of file TGo4PolyCondView.cxx.

References fxPolyCondition, TGo4PolyCond::GetCut(), and TGo4Condition::GetUpdateEpsilon().

Referenced by ExecuteEvent().

◆ IsIntDraw()

Bool_t TGo4PolyCondView::IsIntDraw ( )
inline

Definition at line 64 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::IsIntDraw().

◆ IsLabelDraw()

Bool_t TGo4PolyCondView::IsLabelDraw ( )
inline

Definition at line 62 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::IsLabelDraw().

◆ IsLimitsDraw()

Bool_t TGo4PolyCondView::IsLimitsDraw ( )
inline

Definition at line 63 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::IsLimitsDraw().

◆ IsXMaxDraw()

Bool_t TGo4PolyCondView::IsXMaxDraw ( )
inline

Definition at line 69 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::IsXMaxDraw().

◆ IsXMeanDraw()

Bool_t TGo4PolyCondView::IsXMeanDraw ( )
inline

Definition at line 65 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::IsXMeanDraw().

◆ IsXRMSDraw()

Bool_t TGo4PolyCondView::IsXRMSDraw ( )
inline

Definition at line 66 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::IsXRMSDraw().

◆ IsYMaxDraw()

Bool_t TGo4PolyCondView::IsYMaxDraw ( )
inline

Definition at line 70 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::IsYMaxDraw().

◆ IsYMeanDraw()

Bool_t TGo4PolyCondView::IsYMeanDraw ( )
inline

Definition at line 67 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::IsYMeanDraw().

◆ IsYRMSDraw()

Bool_t TGo4PolyCondView::IsYRMSDraw ( )
inline

Definition at line 68 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::IsYRMSDraw().

◆ Paint()

void TGo4PolyCondView::Paint ( Option_t *  opt)
override

Definition at line 45 of file TGo4PolyCondView.cxx.

References fxPolyCondition.

◆ RemovePoint()

Int_t TGo4PolyCondView::RemovePoint ( )
override

Definition at line 64 of file TGo4PolyCondView.cxx.

References fbExecutesMouseMenu, and UpdateCondition().

Referenced by IsCMaxDraw().

◆ ResetLabel()

void TGo4PolyCondView::ResetLabel ( )

Will reset label position to defaults

Definition at line 226 of file TGo4PolyCondView.cxx.

References fxPolyCondition, and TGo4Condition::ResetLabel().

Referenced by IsCMaxDraw().

◆ SaveLabelStyle()

void TGo4PolyCondView::SaveLabelStyle ( )

This will save draw flags into static default setup

Definition at line 221 of file TGo4PolyCondView.cxx.

References fxPolyCondition, and TGo4Condition::SaveLabelStyle().

Referenced by IsCMaxDraw().

◆ SetCMaxDraw()

void TGo4PolyCondView::SetCMaxDraw ( Bool_t  on)
inline

Definition at line 60 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetCMaxDraw().

◆ SetCondition()

void TGo4PolyCondView::SetCondition ( TGo4PolyCond condition)
inline

◆ SetCut()

void TGo4PolyCondView::SetCut ( TCutG *  source)

Set this view to values of cut source

Definition at line 164 of file TGo4PolyCondView.cxx.

Referenced by GetCondition(), TGo4PolyCondPainter::PaintCondition(), and TGo4PolyCondView().

◆ SetIntDraw()

void TGo4PolyCondView::SetIntDraw ( Bool_t  on)
inline

Definition at line 53 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetIntDraw().

◆ SetLabelDraw()

void TGo4PolyCondView::SetLabelDraw ( Bool_t  on)
inline

Definition at line 51 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetLabelDraw().

◆ SetLimitsDraw()

void TGo4PolyCondView::SetLimitsDraw ( Bool_t  on)
inline

Definition at line 52 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetLimitsDraw().

◆ SetName()

void TGo4PolyCondView::SetName ( const char *  nam)
override

Definition at line 210 of file TGo4PolyCondView.cxx.

References fxPolyCondition.

Referenced by GetCondition().

◆ SetXMaxDraw()

void TGo4PolyCondView::SetXMaxDraw ( Bool_t  on)
inline

Definition at line 58 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetXMaxDraw().

◆ SetXMeanDraw()

void TGo4PolyCondView::SetXMeanDraw ( Bool_t  on)
inline

Definition at line 54 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetXMeanDraw().

◆ SetXRMSDraw()

void TGo4PolyCondView::SetXRMSDraw ( Bool_t  on)
inline

Definition at line 55 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetXRMSDraw().

◆ SetYMaxDraw()

void TGo4PolyCondView::SetYMaxDraw ( Bool_t  on)
inline

Definition at line 59 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetYMaxDraw().

◆ SetYMeanDraw()

void TGo4PolyCondView::SetYMeanDraw ( Bool_t  on)
inline

Definition at line 56 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetYMeanDraw().

◆ SetYRMSDraw()

void TGo4PolyCondView::SetYRMSDraw ( Bool_t  on)
inline

Definition at line 57 of file TGo4PolyCondView.h.

References fxPolyCondition, and TGo4Condition::SetYRMSDraw().

◆ UpdateCondition()

void TGo4PolyCondView::UpdateCondition ( )
virtual

Copy modified view values back to condition

Definition at line 146 of file TGo4PolyCondView.cxx.

References TGo4PolyCond::CleanupSpecials(), CreateCut(), fxPolyCondition, TGo4Condition::SetChanged(), and TGo4PolyCond::SetValues().

Referenced by ExecuteEvent(), InsertPoint(), and RemovePoint().

Member Data Documentation

◆ fbExecutesMouseEvent

Bool_t TGo4PolyCondView::fbExecutesMouseEvent {kFALSE}
private

JAM this one will suppress condition repaint during execution of mouse events

Definition at line 88 of file TGo4PolyCondView.h.

Referenced by ExecuteEvent(), and IsAtExecuteMouseEvent().

◆ fbExecutesMouseMenu

Bool_t TGo4PolyCondView::fbExecutesMouseMenu {kFALSE}
private

JAM this one will suppress condition repaint during mouse menu execution

Definition at line 91 of file TGo4PolyCondView.h.

Referenced by ExecuteEvent(), InsertPoint(), IsAtExecuteMouseMenu(), and RemovePoint().

◆ fxPolyCondition

TGo4PolyCond* TGo4PolyCondView::fxPolyCondition {nullptr}
private

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