m_LayoutPolicy(policy),
67m_TooltipGraph(
NULL),
68m_GraphMaxSize(-1, -1)
88return a->GetOrder() > b->GetOrder();
104TGraphs::iterator it = std::find(
m_Graphs.begin(),
m_Graphs.end(), graph);
109 handler->RemoveListener(
this);
114}
else return false;
132 return m_Graphs[index].GetPointer();
139 return m_Graphs[index].GetPointer();
252 size.m_Y += graph_y;
259 size.m_X += graph_x;
305wxEvtHandler*
handler=
dynamic_cast<wxEvtHandler*
>(&graph);
309wxMouseEvent e(event);
313 event.Skip(e.GetSkipped());
CGraphContainerEvtHandler(CGraphContainer *container)
void OnMouseEvents(wxMouseEvent &event)
CGraphContainer * m_Container
CGraphContainer CGraphContainer a composite IRenderable that manages several child IRenderable graphs...
CIRef< IRenderable > TGraphRef
vector< TGraphRef > TGraphs
IGraphContainerHost * m_Host
virtual void RemoveAllGraphs()
virtual void SetVPRect(const TVPRect &rect)
virtual string GetTooltip()
virtual bool RemoveGraph(TGraph *graph)
assumes ownership
virtual ~CGraphContainer()
virtual bool NeedTooltip(CGlPane &pane, int vp_x, int vp_y)
virtual void SetModelRect(const TModelRect &rc)
virtual size_t GetGraphsCount() const
virtual void Render(CGlPane &pane)
virtual bool AddGraph(TGraph *graph, bool front=false)
ELayoutPolicy m_LayoutPolicy
virtual TGraph * GetGraph(size_t index)
virtual TVPPoint PreferredSize()
void OnMouseEvents(wxMouseEvent &event)
virtual TVPPoint GCH_GetVPPosByWindowPos(const wxPoint &pos)=0
IRenderable class IRenderable defines an abstract interface required for rendering graphical panels i...
virtual void SetModelRect(const TModelRect &rc)=0
virtual void SetVPRect(const TVPRect &rc)=0
virtual bool NeedTooltip(CGlPane &pane, TVPUnit vp_x, TVPUnit vp_y)=0
virtual void Render(CGlPane &pane)=0
virtual TVPPoint PreferredSize()=0
virtual bool IsVisible()=0
virtual TVPRect GetVPRect() const =0
virtual string GetTooltip()=0
void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
CGlRect & IntersectWith(const CGlRect &r)
void SetClipRect(const TVPRect *rc_clip=NULL)
set clipping rect that will be used by glScissor, NULL for reset
void Offset(T d_x, T d_y)
TVPRect & GetViewport(void)
const TVPRect * GetClipRect() const
returns clipping rect or NULL (if there is no clipping)
bool PtInRect(T x, T y) const
virtual void RemoveListener(CEventHandler *listener)
Remove a listener.
virtual void AddListener(CEventHandler *listener, int pool_name=ePool_Default)
Add a listener.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
constexpr auto front(list< Head, As... >, T=T()) noexcept -> Head
const struct ncbi::grid::netcache::search::fields::SIZE size
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4