m_TextAlignType(eLeftText),
52m_sFormatTempl(
"%g"),
53m_TickStyle(eBothSides), m_TickSize(kDefTickSize),
54m_Color(0.0f, 0.0f, 0.2f),
55m_TextColor(0.5f, 0.5f, 0.5f),
124pGraphPane->
Close();
153 doublevpBottom = rcGraphVP.
Bottom();
154 doublevpTop = rcGraphVP.
Top();
156glVertex2d(vpX, vpBottom);
157glVertex2d(vpX, vpTop);
163 intvpY = pGraphPane->
ProjectY(wY);
164 if(vpY >= vpBottom && vpY <= vpTop)
166glVertex2d(vpX + dTickMin, vpY);
167glVertex2d(vpX + dTickMax, vpY);
178 if(itL->m_bVisible) {
183 case eRightText: tX -= 10 + itL->m_Width;
break;
186 inttY = itL->m_Pos -
H/2;
192pAreaPane->
Close();
203 case ePosMax: vpY = rcGraphVP.
Top();
break;
213glVertex2d(vpLeft, vpY);
214glVertex2d(vpRight, vpY);
220 intvpX = pGraphPane->
ProjectX(wX);
221 if(vpX >= vpLeft && vpX <= vpRight)
223glVertex2d(vpX, vpY + dTickMin);
224glVertex2d(vpX, vpY + dTickMax);
235 if(itL->m_bVisible) {
251 intvpZ, vpStart, vpFinish;
263 if(vpZ >= vpStart && vpZ <= vpFinish)
276 #define LABEL_SPACE_X 8 277 #define LABEL_SPACE_Y 1 287 intSize =
m_bHorz? it->m_Width :
H;
288 intLabelMin = it->m_Pos - Size / 2;
289 intLabelMax = LabelMin + Size + Space;
291 if(LabelMin < Min || LabelMax > Max)
292it->m_bVisible =
false;
294it->m_bVisible =
true;
329: m_BoundsColor(0.5f, 0.5f, 0.5f)
341 static const intkDefTickSize = 4;
class CRgbaColor provides a simple abstraction for managing colors.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
void SetColor(CRgbaColor Color)
void SetTextColor(CRgbaColor Color)
void SetTextAlign(ETextAlign Type)
void SetTickSize(int SizePix)
TModelUnit m_FixedPosValue
virtual TModelUnit x_GetLabelValue(TModelUnit Value)
CAxisRenderer(bool bHorz=true)
vector< SLabelDescr > m_vLabels
virtual void x_LayoutLabels(int Start, int Finish)
virtual void x_GenerateLabels(CGlPane *pAreaPane, CGlPane *pGraphPane, CRegularGridGen *pGen)
ETextAlign m_TextAlignType
void SetFixedPosition(TModelUnit Value)
void Render(CGlPane *pAreaPane, CGlPane *pGraphPane, CRegularGridGen *pGen)
void SetScaleType(EScaleType TypeX, EScaleType TypeY)
static const int kDefTickSize
class CAxisRenderer
CAxisArea()
class CAxisArea
virtual void x_DrawHorzLabels(CGlPane *pAreaPane, CGlPane *pGraphPane, CRegularGridGen *pGen, int dTickMin, int dTickMax)
void GenerateGrid(CGlPane *pPane, bool bHorz)
iteration interface.
virtual string x_FormatLabel(TModelUnit Value)
void SetPositionType(EPosition Type)
void SetTickStyle(ETickStyle Style)
void SetHorizontal(bool bHorz=true)
void SetFormattingTemplate(const string &sTempl)
virtual void Render(CGlPane *pAreaPane, CGlPane *pGraphPane, CRegularGridGen *pGen)
void SetScaleType(EScaleType Type)
virtual void TextOut(const char *text) const
TVPUnit ProjectX(TModelUnit m_x) const
TVPRect & GetViewport(void)
TVPUnit ProjectY(TModelUnit m_y) const
virtual TModelUnit TextHeight(void) const
compute the height of a string
virtual TModelUnit TextWidth(const char *text) const
compute the length of a null-terminated string
void glColorC(const CRgbaColor &color)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned int
A callback function used to compare two keys in a database.
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
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