NCBI C++ ToolKit
|
Search Toolkit Book for CNormalizer
this class converts model units to the integers distribited in [0, m_IntRange] and vice versa More...
#include <gui/widgets/gl/gl_widget_base.hpp>
Public Member Functions | |
CNormalizer (double min, double max, int int_range) | |
int | RealToInt (double real) |
int | SizeToInt (double size) |
double | IntToReal (int i) |
double | IntToSize (int i) |
Protected Attributes | |
double | m_Min |
double | m_Max |
int | m_IntRange |
this class converts model units to the integers distribited in [0, m_IntRange] and vice versa
Definition at line 176 of file gl_widget_base.hpp.
|
inline |
Definition at line 179 of file gl_widget_base.hpp.
|
inline |
Definition at line 192 of file gl_widget_base.hpp.
References i, m_IntRange, m_Max, and m_Min.
Referenced by CCrossAlnPane::NormalizeQ(), CCrossAlnPane::NormalizeS(), CGlWidgetBase::x_OnScrollX(), and CGlWidgetBase::x_OnScrollY().
|
inline |
Definition at line 197 of file gl_widget_base.hpp.
References i, m_IntRange, m_Max, m_Min, and ncbi_round.
|
inline |
Definition at line 182 of file gl_widget_base.hpp.
References m_IntRange, m_Max, m_Min, and ncbi_round.
Referenced by CCrossAlnWidget::UpdateScrollbars(), and CGlWidgetBase::x_UpdateScrollbars().
|
inline |
Definition at line 187 of file gl_widget_base.hpp.
References m_IntRange, m_Max, m_Min, ncbi_round, and ncbi::grid::netcache::search::fields::size.
Referenced by CCrossAlnWidget::UpdateScrollbars(), and CGlWidgetBase::x_UpdateScrollbars().
|
protected |
Definition at line 204 of file gl_widget_base.hpp.
Referenced by IntToReal(), IntToSize(), RealToInt(), and SizeToInt().
|
protected |
Definition at line 203 of file gl_widget_base.hpp.
Referenced by IntToReal(), IntToSize(), RealToInt(), and SizeToInt().
|
protected |
Definition at line 203 of file gl_widget_base.hpp.
Referenced by IntToReal(), IntToSize(), RealToInt(), and SizeToInt().