/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Fireworks/Core/interface/CmsAnnotation.h
58 строк
1 KB
Shahzad Malik Muzaffar
[Fireworks][clang-tidy] modernize-use-equals-delete suggests to make deleted member function public
28 июл 2021, 12:33
28 июл 2021, 12:33
68a6350
Код
Авторство
О чём код?
#ifndef Fireworks_Core_CmsAnnotation_h #define Fireworks_Core_CmsAnnotation_h #include "TGLOverlay.h" class TGLViewer; class TGLViewerBase; class FWConfiguration; class CmsAnnotation : public TGLOverlayElement { private: enum EDrag { kMove, kResize, kNone }; public: CmsAnnotation(TGLViewerBase* parent, Float_t posx, Float_t posy); ~CmsAnnotation() override; // ---------- member, functions ------------------------- //configuration management interface virtual void addTo(FWConfiguration&) const; virtual void setFrom(const FWConfiguration&); void Render(TGLRnrCtx& rnrCtx) override; Bool_t MouseEnter(TGLOvlSelectRecord& selRec) override; Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event) override; void MouseLeave() override; Float_t getSize() const { return fSize; } void setSize(Float_t x) { fSize = x; } bool getVisible() const; void setVisible(bool x); bool getAllowDestroy() const { return fAllowDestroy; } void setAllowDestroy(bool x) { fAllowDestroy = x; } CmsAnnotation(const CmsAnnotation&) = delete; // stop default const CmsAnnotation& operator=(const CmsAnnotation&) = delete; // stop default private: Float_t fPosX; // x position [0, 1] Float_t fPosY; // y position [0, 1] Int_t fMouseX, fMouseY; //! last mouse position EDrag fDrag; TGLViewer* fParent; Float_t fSize; //! relative size to viewport width Float_t fSizeDrag; bool fActive; bool fAllowDestroy; }; #endif