Namespaces | Defines | Functions

p_bezier.cpp File Reference

#include "vgfx.h"
#include "drawer.h"
#include "common/wave_ex.h"
#include "perf/perf.h"
#include "util/parsing.h"
#include "bezier/bezier.h"
Include dependency graph for p_bezier.cpp:

Go to the source code of this file.

Namespaces

namespace  vgfx

Defines

#define WRITE_B_FIELD(q)   { if (m_curve.q) { stream << " " << #q << " " << m_curve.q; } }
#define ADD_B_VALUE(q)   { data[ #q ] = getStringValue( m_curve.q ); }
#define CHECK_B_VALUE(q)   { if (!strcmp(name, #q )) { m_curve.q = atof(value); continue; } }
#define SET_B_FIELD(x)   init.curve.x = atof(getOptionalValue(data, #x , "0.0"));

Functions

void vgfx::init_bezier_from_data (const dictionary_t &data, init_bezier_t &init)
smart_ptr< Primitive > vgfx::create_bezier (const init_bezier_t &init)

Define Documentation

#define WRITE_B_FIELD (   q  )     { if (m_curve.q) { stream << " " << #q << " " << m_curve.q; } }

Definition at line 125 of file p_bezier.cpp.

#define ADD_B_VALUE (   q  )     { data[ #q ] = getStringValue( m_curve.q ); }

Definition at line 184 of file p_bezier.cpp.

#define CHECK_B_VALUE (   q  )     { if (!strcmp(name, #q )) { m_curve.q = atof(value); continue; } }

Definition at line 212 of file p_bezier.cpp.

#define SET_B_FIELD (   x  )     init.curve.x = atof(getOptionalValue(data, #x , "0.0"));

Definition at line 271 of file p_bezier.cpp.