本文整理汇总了C++中agg::rbox_ctrl::no_transform方法的典型用法代码示例。如果您正苦于以下问题:C++ rbox_ctrl::no_transform方法的具体用法?C++ rbox_ctrl::no_transform怎么用?C++ rbox_ctrl::no_transform使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类agg::rbox_ctrl
的用法示例。
在下文中一共展示了rbox_ctrl::no_transform方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
the_application(agg::pix_format_e format, bool flip_y) :
agg::platform_support(format, flip_y),
m_polygons (5.0, 5.0, 5.0+205.0, 110.0, !flip_y),
m_operation(555.0, 5.0, 555.0+80.0, 55.0, !flip_y),
m_alpha_buf(0),
m_alpha_mask_rbuf(),
m_alpha_mask(m_alpha_mask_rbuf),
m_x(0),
m_y(0)
{
m_operation.add_item("AND");
m_operation.add_item("SUB");
m_operation.cur_item(0);
add_ctrl(m_operation);
m_operation.no_transform();
m_polygons.add_item("Two Simple Paths");
m_polygons.add_item("Closed Stroke");
m_polygons.add_item("Great Britain and Arrows");
m_polygons.add_item("Great Britain and Spiral");
m_polygons.add_item("Spiral and Glyph");
m_polygons.cur_item(3);
add_ctrl(m_polygons);
m_polygons.no_transform();
}
示例2:
the_application(agg::pix_format_e format, bool flip_y)
: agg::platform_support(format, flip_y),
m_idx(-1),
m_join(10.0, 10.0, 133.0, 80.0, !flip_y),
m_cap(10.0, 80.0 + 10.0, 133.0, 80.0 + 80.0, !flip_y),
m_width(130 + 10.0, 10.0 + 4.0, 500.0 - 10.0, 10.0 + 8.0 + 4.0,
!flip_y),
m_miter_limit(130 + 10.0, 20.0 + 10.0 + 4.0, 500.0 - 10.0,
20.0 + 10.0 + 8.0 + 4.0, !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_join);
m_join.text_size(7.5);
m_join.text_thickness(1.0);
m_join.add_item("Miter Join");
m_join.add_item("Miter Join Revert");
m_join.add_item("Round Join");
m_join.add_item("Bevel Join");
m_join.cur_item(2);
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(2);
add_ctrl(m_width);
m_width.range(3.0, 40.0);
m_width.value(20.0);
m_width.label("Width=%1.2f");
add_ctrl(m_miter_limit);
m_miter_limit.range(1.0, 10.0);
m_miter_limit.value(4.0);
m_miter_limit.label("Miter Limit=%1.2f");
m_join.no_transform();
m_cap.no_transform();
m_width.no_transform();
m_miter_limit.no_transform();
}
示例3:
the_application(agg::pix_format_e format, bool flip_y) :
agg::platform_support(format, flip_y),
m_polygons (5.0, 5.0, 5.0+205.0, 110.0, !flip_y),
m_fill_rule (200, 5.0, 200+105.0, 50.0, !flip_y),
m_scanline_type(300, 5.0, 300+115.0, 70.0, !flip_y),
m_operation (535.0, 5.0, 535.0+115.0, 145.0, !flip_y)
{
m_operation.add_item("None");
m_operation.add_item("OR");
m_operation.add_item("AND");
m_operation.add_item("XOR Linear");
m_operation.add_item("XOR Saddle");
m_operation.add_item("A-B");
m_operation.add_item("B-A");
m_operation.cur_item(2);
add_ctrl(m_operation);
m_operation.no_transform();
m_fill_rule.add_item("Even-Odd");
m_fill_rule.add_item("Non Zero");
m_fill_rule.cur_item(1);
add_ctrl(m_fill_rule);
m_fill_rule.no_transform();
m_scanline_type.add_item("scanline_p");
m_scanline_type.add_item("scanline_u");
m_scanline_type.add_item("scanline_bin");
m_scanline_type.cur_item(1);
add_ctrl(m_scanline_type);
m_scanline_type.no_transform();
m_polygons.add_item("Two Simple Paths");
m_polygons.add_item("Closed Stroke");
m_polygons.add_item("Great Britain and Arrows");
m_polygons.add_item("Great Britain and Spiral");
m_polygons.add_item("Spiral and Glyph");
m_polygons.cur_item(3);
add_ctrl(m_polygons);
m_polygons.no_transform();
}
示例4:
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();
}