Go to the SVN repository for this file.
1 #ifndef GUI_OPENGL___RASTERIZER__HPP 2 #define GUI_OPENGL___RASTERIZER__HPP 61 TVPUnitvp_len = vp_max - vp_min;
63 if(vp_len <= 0) vp_len = 1;
74 boolintersect = ! (pix_to_open <= 0 || pix_from >= vp_len);
83 if(pix_to_open - pix_from < 1.0 && pix_left != pix_right) {
86 intleft_index = (
int) pix_left;
87 intright_index = (
int) pix_right;
89 if(left_index == right_index) {
92 floatfraction = float(pix_to_open - pix_from);
93f_add(
m_Raster[left_index], attr, fraction,
false);
95 if(pix_left < pix_from) {
97 floatfraction = float(pix_left + 1 - pix_from);
98f_add(
m_Raster[left_index], attr, fraction,
true);
101 if(pix_right < pix_to_open) {
103 floatfraction = float(pix_to_open - pix_right);
104f_add(
m_Raster[right_index], attr, fraction,
true);
107 for(
int i= left_index;
i<= right_index;
i++ ) {
109f_add(
m_Raster[
i], attr, 1.0,
true);
Include a standard set of the NCBI C++ Toolkit most basic headers.
const TRaster & GetRaster() const
TModelUnit Project(TModelUnit pos) const
void AddInterval(TModelUnit min, TModelUnit max, const A &attr, F f_add)
CRasterizer(TVPUnit vp_min, TVPUnit vp_max, TModelUnit min, TModelUnit max)
#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.
#define F(x)
Make a parametrized function appear to have only one variable.
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