本文整理汇总了C++中agg::cbox_ctrl::no_transform方法的典型用法代码示例。如果您正苦于以下问题:C++ cbox_ctrl::no_transform方法的具体用法?C++ cbox_ctrl::no_transform怎么用?C++ cbox_ctrl::no_transform使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类agg::cbox_ctrl
的用法示例。
在下文中一共展示了cbox_ctrl::no_transform方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
the_application(agg::pix_format_e format, bool flip_y) :
agg::platform_support(format, flip_y),
m_idx(-1),
m_gamma(130 + 10.0, 10.0 + 4.0, 130 + 150.0, 10.0 + 8.0 + 4.0, !flip_y),
m_alpha(130 + 150.0 + 10.0, 10.0 + 4.0, 500 - 10.0, 10.0 + 8.0 + 4.0, !flip_y),
m_test(130 + 10.0, 10.0 + 4.0 + 16.0, "Test Performance", !flip_y)
{
m_x[0] = 100 + 120; m_y[0] = 60;
m_x[1] = 369 + 120; m_y[1] = 170;
m_x[2] = 143 + 120; m_y[2] = 310;
add_ctrl(m_gamma);
m_gamma.range(0.0, 1.0);
m_gamma.value(0.5);
m_gamma.label("Gamma=%1.2f");
m_gamma.no_transform();
add_ctrl(m_alpha);
m_alpha.range(0.0, 1.0);
m_alpha.value(1.0);
m_alpha.label("Alpha=%1.2f");
m_alpha.no_transform();
add_ctrl(m_test);
m_test.no_transform();
}
示例2:
the_application(agg::pix_format_e format, bool flip_y) :
agg::platform_support(format, flip_y),
m_idx(-1),
m_cap(10.0, 10.0, 130.0, 80.0, !flip_y),
m_width(130 + 10.0, 10.0 + 4.0, 130 + 150.0, 10.0 + 8.0 + 4.0, !flip_y),
m_smooth(130 + 150.0 + 10.0, 10.0 + 4.0, 500 - 10.0, 10.0 + 8.0 + 4.0, !flip_y),
m_close(130 + 10.0, 10.0 + 4.0 + 16.0, "Close Polygons", !flip_y),
m_even_odd(130 + 150.0 + 10.0, 10.0 + 4.0 + 16.0, "Even-Odd Fill", !flip_y)
{
m_x[0] = 57 + 100; m_y[0] = 60;
m_x[1] = 369 + 100; m_y[1] = 170;
m_x[2] = 143 + 100; m_y[2] = 310;
add_ctrl(m_cap);
m_cap.add_item("Butt Cap");
m_cap.add_item("Square Cap");
m_cap.add_item("Round Cap");
m_cap.cur_item(0);
m_cap.no_transform();
add_ctrl(m_width);
m_width.range(0.0, 10.0);
m_width.value(3.0);
m_width.label("Width=%1.2f");
m_width.no_transform();
add_ctrl(m_smooth);
m_smooth.range(0.0, 2.0);
m_smooth.value(1.0);
m_smooth.label("Smooth=%1.2f");
m_smooth.no_transform();
add_ctrl(m_close);
m_close.no_transform();
add_ctrl(m_even_odd);
m_even_odd.no_transform();
}
示例3:
the_application(agg::pix_format_e format, bool flip_y) :
agg::platform_support(format, flip_y),
m_width_slider(5, 5, 150, 12, !flip_y),
m_scanline(160, 5, "Use Scanline Rasterizer", !flip_y)
{
parse_lion();
add_ctrl(m_width_slider);
m_width_slider.no_transform();
m_width_slider.range(0.0, 4.0);
m_width_slider.value(1.0);
m_width_slider.label("Width %3.2f");
add_ctrl(m_scanline);
m_scanline.no_transform();
}