: m_pAxisArea(
NULL),
41m_GraphOffsetX(80), m_GraphOffsetY(10),
42m_LegendOffsetX(80), m_LegendH(30),
43m_LimitsModeX(eGraphLimits),
44m_LimitsModeY(eGraphLimits),
47m_bAntiAliasing(
true),
48m_BackColor(1.0f, 1.0f, 1.0f),
49m_GraphBackColor(1.0f, 1.0f, 1.0f)
78 intLegendOffsetX,
intLegendH,
boolbLayout)
140rcX =
m_Graphs.front()->GetLimits();
147 if(rcX.
Width() == 0)
157rcY =
m_Graphs.front()->GetLimits();
242glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
244glEnable(GL_LINE_SMOOTH);
245glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
247glEnable(GL_POINT_SMOOTH);
248glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
251glDisable(GL_LINE_SMOOTH);
252glDisable(GL_POINT_SMOOTH);
256glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
262glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
class CRgbaColor provides a simple abstraction for managing colors.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
ELimitsMode m_LimitsModeX
void AddGraph(IGraph *pGraph)
void Render(CGlPane *pAreaPane, CGlPane *pPane, CRegularGridGen *pGenerator) const
void SetFixedLimits(const TModelRect &rcLimits)
vector< SGraphElem * > TElemVector
virtual CAxisArea * CreateAxisArea()
void Render(IGraph::TElemVector *elems=NULL)
void SetRect(const TVPRect &rcAll, bool bLayout=true)
list< IGraph * > TGraphCont
CRegularGridRenderer m_Grid
virtual void Render(CGlPane *pViewport, TElemVector *elems=NULL)
void SetIntegerMode(bool bIntegerX, bool bIntegerY)
void Render(CGlPane *pAreaPane, CGlPane *pGraphPane, CRegularGridGen *pGen)
void SetDrawAxes(bool bDraw)
CRgbaColor m_GraphBackColor
void EnableAntiAliasing(bool bEn)
ELimitsMode m_LimitsModeY
void SetLimitsMode(ELimitsMode ModeX, ELimitsMode ModeY)
void SetBackColor(const CRgbaColor &Color, const CRgbaColor &GraphColor)
void SetIntegerMode(bool IntegerX, bool IntegerY)
CRegularGridGen inline methods.
void SetDrawGrid(bool bDraw)
virtual CLegend * CreateLegend()
void SetLayout(int GraphOffsetX, int GraphOffsetY, int LegendOffsetX, int LegendH, bool bLayout=true)
void SetModelLimitsRect(const TModelRect &R)
void SetViewport(const TVPRect &R)
CGlRect & CombineWith(const CGlRect &r)
TVPRect & GetViewport(void)
TModelRect & GetModelLimitsRect(void)
void glColorC(const CRgbaColor &color)
float GetBlue(void) const
float GetGreen(void) const
float GetAlpha(void) const
float GetRed(void) const
Get specific channels in floating point values.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
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