Anti-Grain Geometry - AGG (libagg)  2.5
Classes | Namespaces | Defines | Typedefs | Enumerations | Functions | Variables
agg-2.5/include/agg_basics.h File Reference
#include <math.h>
#include "agg_config.h"

Go to the source code of this file.

Classes

struct  agg::pod_allocator< T >
struct  agg::obj_allocator< T >
struct  agg::saturation< Limit >
struct  agg::mul_one< Shift >
struct  agg::rect_base< T >
struct  agg::point_base< T >
struct  agg::vertex_base< T >
struct  agg::row_info< T >
struct  agg::const_row_info< T >

Namespaces

namespace  agg

Defines

#define AGG_INT8   signed char
#define AGG_INT8U   unsigned char
#define AGG_INT16   short
#define AGG_INT16U   unsigned short
#define AGG_INT32   int
#define AGG_INT32U   unsigned
#define AGG_INT64   signed long long
#define AGG_INT64U   unsigned long long
#define AGG_INLINE   inline

Typedefs

typedef AGG_INT8 agg::int8
typedef AGG_INT8U agg::int8u
typedef AGG_INT16 agg::int16
typedef AGG_INT16U agg::int16u
typedef AGG_INT32 agg::int32
typedef AGG_INT32U agg::int32u
typedef AGG_INT64 agg::int64
typedef AGG_INT64U agg::int64u
typedef unsigned char agg::cover_type
typedef rect_base< int > agg::rect_i
typedef rect_base< float > agg::rect_f
typedef rect_base< double > agg::rect_d
typedef point_base< int > agg::point_i
typedef point_base< float > agg::point_f
typedef point_base< double > agg::point_d
typedef vertex_base< int > agg::vertex_i
typedef vertex_base< float > agg::vertex_f
typedef vertex_base< double > agg::vertex_d

Enumerations

enum  agg::cover_scale_e {
  agg::cover_shift = 8, agg::cover_size = 1 << cover_shift, agg::cover_mask = cover_size - 1, agg::cover_none = 0,
  agg::cover_full = cover_mask
}
enum  agg::poly_subpixel_scale_e { agg::poly_subpixel_shift = 8, agg::poly_subpixel_scale = 1<<poly_subpixel_shift, agg::poly_subpixel_mask = poly_subpixel_scale-1 }
enum  agg::filling_rule_e { agg::fill_non_zero, agg::fill_even_odd }
enum  agg::path_commands_e {
  agg::path_cmd_stop = 0, agg::path_cmd_move_to = 1, agg::path_cmd_line_to = 2, agg::path_cmd_curve3 = 3,
  agg::path_cmd_curve4 = 4, agg::path_cmd_curveN = 5, agg::path_cmd_catrom = 6, agg::path_cmd_ubspline = 7,
  agg::path_cmd_end_poly = 0x0F, agg::path_cmd_mask = 0x0F
}
enum  agg::path_flags_e {
  agg::path_flags_none = 0, agg::path_flags_ccw = 0x10, agg::path_flags_cw = 0x20, agg::path_flags_close = 0x40,
  agg::path_flags_mask = 0xF0
}

Functions

AGG_INLINE int agg::iround (double v)
AGG_INLINE int agg::uround (double v)
AGG_INLINE unsigned agg::ufloor (double v)
AGG_INLINE unsigned agg::uceil (double v)
double agg::deg2rad (double deg)
double agg::rad2deg (double rad)
template<class Rect >
Rect agg::intersect_rectangles (const Rect &r1, const Rect &r2)
template<class Rect >
Rect agg::unite_rectangles (const Rect &r1, const Rect &r2)
bool agg::is_vertex (unsigned c)
bool agg::is_drawing (unsigned c)
bool agg::is_stop (unsigned c)
bool agg::is_move_to (unsigned c)
bool agg::is_line_to (unsigned c)
bool agg::is_curve (unsigned c)
bool agg::is_curve3 (unsigned c)
bool agg::is_curve4 (unsigned c)
bool agg::is_end_poly (unsigned c)
bool agg::is_close (unsigned c)
bool agg::is_next_poly (unsigned c)
bool agg::is_cw (unsigned c)
bool agg::is_ccw (unsigned c)
bool agg::is_oriented (unsigned c)
bool agg::is_closed (unsigned c)
unsigned agg::get_close_flag (unsigned c)
unsigned agg::clear_orientation (unsigned c)
unsigned agg::get_orientation (unsigned c)
unsigned agg::set_orientation (unsigned c, unsigned o)
template<class T >
bool agg::is_equal_eps (T v1, T v2, T epsilon)

Variables

const double agg::pi = 3.14159265358979323846

Define Documentation

#define AGG_INLINE   inline
#define AGG_INT16   short
#define AGG_INT16U   unsigned short
#define AGG_INT32   int
#define AGG_INT32U   unsigned
#define AGG_INT64   signed long long
#define AGG_INT64U   unsigned long long
#define AGG_INT8   signed char
#define AGG_INT8U   unsigned char
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines