#include <math.h>#include <stdio.h>#include <time.h>#include "agg_rendering_buffer.h"#include "agg_conv_transform.h"#include "agg_conv_stroke.h"#include "agg_conv_dash.h"#include "agg_scanline_u.h"#include "agg_renderer_scanline.h"#include "agg_rasterizer_outline_aa.h"#include "agg_rasterizer_scanline_aa.h"#include "agg_pattern_filters_rgba.h"#include "agg_renderer_outline_aa.h"#include "agg_renderer_outline_image.h"#include "agg_arc.h"#include "agg_bezier_arc.h"#include "agg_pixfmt_rgb.h"#include "ctrl/agg_slider_ctrl.h"#include "ctrl/agg_bezier_ctrl.h"#include "ctrl/agg_rbox_ctrl.h"#include "ctrl/agg_cbox_ctrl.h"#include "platform/agg_platform_support.h"Go to the source code of this file.
Classes | |
| class | the_application |
| struct | the_application::curve_point |
Typedefs | |
| typedef agg::pixfmt_bgr24 | pixfmt |
Enumerations | |
| enum | flip_y_e { flip_y = true } |
Functions | |
| void | bezier4_point (double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, double mu, double *x, double *y) |
| int | agg_main (int argc, char *argv[]) |
|
|
Definition at line 27 of file bezier_div.cpp. |
|
|
Definition at line 25 of file bezier_div.cpp. 00025 { flip_y = true };
|
|
||||||||||||
|
Definition at line 548 of file bezier_div.cpp. References platform_support::caption(), flip_y, platform_support::init(), agg::pix_format_bgr24, platform_support::run(), and agg::window_resize. 00549 { 00550 the_application app(agg::pix_format_bgr24, flip_y); 00551 app.caption("AGG Example"); 00552 if(app.init(655, 520, agg::window_resize)) 00553 { 00554 return app.run(); 00555 } 00556 return 1; 00557 }
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 30 of file bezier_div.cpp. Referenced by the_application::calc_max_error(). 00034 { 00035 double mum1, mum13, mu3; 00036 00037 mum1 = 1 - mu; 00038 mum13 = mum1 * mum1 * mum1; 00039 mu3 = mu * mu * mu; 00040 00041 *x = mum13*x1 + 3*mu*mum1*mum1*x2 + 3*mu*mu*mum1*x3 + mu3*x4; 00042 *y = mum13*y1 + 3*mu*mum1*mum1*y2 + 3*mu*mu*mum1*y3 + mu3*y4; 00043 }
|