SetIntegerMode(
boolIntegerX,
boolIntegerY);
65 voidSetCellLimits(
intMin,
intMax);
68 voidEnableOneBased(
boolen_x,
boolen_y);
69 voidEnableMinusOneBased(
boolen_x,
boolen_y);
72 voidSetStep(
doublestep);
73 voidSetAutoStepUpdate(
bool f);
76 voidGenerateGrid(
CGlPane* pPane,
boolbHorz);
81 static doubleSelectBaseStep(
doubleMinV,
doubleMaxV );
82 static voidRoundRangeToStep(
double& Start,
double& Finish,
doubleStep );
83 static doubleSelectScreenStep(
doubleBaseStep,
doubleMinStep,
doubleMaxStep);
85 static const intms_StepK[];
118: m_Start(0), m_Finish(0), m_Step(0), m_Iter(0), m_Value(1) {}
121: m_Start(Start), m_Finish(Finish), m_Step(Step), m_Iter(0), m_Value(Start) {}
140 return(IsEnd() && I.
IsEnd()) ||
146 return! (*
this==I);
149 bool IsEnd()
const{
returnm_Value > m_Finish; }
152m_Value = m_Start + (++m_Iter) * m_Step;
154 doublesnr =
fabs(m_Value/m_Step);
159 if(m_Value > m_Finish)
183{ m_HorzColor = m_VertColor =
color; }
186{ m_HorzColor =
color; }
189{ m_VertColor =
color; }
192{ m_ShowHorzGrid =
f; }
195{ m_ShowVertGrid =
f; }
class CRgbaColor provides a simple abstraction for managing colors.
bool m_AutoStepUpdate
Automatic step generation.
void EnableOneBased(bool en_x, bool en_y)
plus/minus one base to align grid to ruler bars.
bool operator!=(const const_iterator &I) const
void SetShowVertGrid(bool f)
void SetCellLimits(int Min, int Max)
set limitations on the CellSize in pixels.
void SetColor(const CRgbaColor &color)
bool operator==(const const_iterator &I) const
void SetShowHorzGrid(bool f)
const_iterator end() const
void SetAutoStepUpdate(bool f)
const_iterator operator++(int)
const_reference operator*() const
const_iterator(double Start, double Finish, double Step)
void EnableMinusOneBased(bool en_x, bool en_y)
const_iterator begin() const
void SetStep(double step)
allow adjusting step externally.
const_iterator & operator++()
void SetIntegerMode(bool IntegerX, bool IntegerY)
CRegularGridGen inline methods.
void EnableIntegerCentering(bool b_en)
const value_type & const_reference
void SetHorzColor(const CRgbaColor &color)
bool m_bHorz
Generation context.
void SetVertColor(const CRgbaColor &color)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIGRAPH_EXPORT
The NCBI C++/STL use hints.
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