43 m_BackColor(0.95f, 0.95f, 0.95f),
44 m_BorderColor(0.0f, 0.0f, 0.0f),
76 bool bOk = pLegendDS!=
NULL;
101 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
106 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
115 catch(std::exception& e) {
138 int StepY =
H +
max(
H / 2, 4);
143 int MaxX = LeftLimit;
146 for (
size_t i = 0;
i <
N;
i++ ) {
152 if (vpX +
W > RightLimit) {
162 MaxX =
max(MaxX, vpX +
W);
165 if (vpY < BottomLimit) {
187 glVertex2i(X, Y +
m_BoxH / 2);
197 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
201 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
class CRgbaColor provides a simple abstraction for managing colors.
class CTypedArrayAdapter<Type, TBase>
class ITypedDataArray<Type>
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
string ReportAll(TDiagPostFlags flags=eDPF_Exception) const
Report all exceptions.
virtual const char * what(void) const noexcept
Standard report (includes full backlog).
void AddArray(IDataArray *pArray)
virtual IColorArray * GetColorArray()=0
const CRgbaColor & GetBorderColor()
const CRgbaColor & GetBackColor() const
void SetBackColor(const CRgbaColor &Color)
void SetBorderColor(const CRgbaColor &Color)
vector< SGraphElem * > TElemVector
CTypedArrayAdapter< IDataArray::eString > TStrAdapter
CTypedArrayAdapter< IDataArray::eNumeric, int > TEnumAdapter
virtual void x_RenderItems(CGlPane *pPane)
virtual void CreateArrays()
class CLegendDataSource
virtual void Render(CGlPane *pViewport, TElemVector *elems=NULL)
virtual INumericArray * GetMarkerArray()=0
virtual size_t GetSize()=0
virtual void CalculateLimits()
virtual void CreateArrays()
virtual const TModelRect & GetLimits() const
virtual IStringArray * GetLabelArray()=0
virtual bool SetDataSource(IGraphDataSource *pDS)
virtual bool ShowMarkers()=0
CTypedArrayAdapter< IDataArray::eColor > TColorAdapter
virtual bool SetDataSource(IGraphDataSource *pDS)
virtual TValueType GetElem(size_t i)=0
static void RenderMarker(TModelUnit cX, TModelUnit cY, TModelUnit MarkerW, TModelUnit MarkerH, EMarkerType Type)
class CGraphDotMarker
ILegendDataSource * GetLegendDataSource()
virtual void x_RenderItem(int X, int Y, const string &sLabel, const CRgbaColor &Color, int iMarker)
virtual void TextOut(const char *text) const
TVPRect & GetViewport(void)
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.