Classes | Namespaces | Typedefs | Enumerations | Functions

vgfx.h File Reference

#include <sstream>
#include "bezier/bezier.h"
#include "bezier/quad.h"
#include "objtree/objtree.h"
#include "geometry/xform_2d.h"
#include "util/parsing.h"
Include dependency graph for vgfx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vgfx::visit_result_t
 hit detection results More...
class  vgfx::Primitive
 the base class from which all vector graphics objects inherit. More...
class  vgfx::ObjectMap
 an ObjectMap is a physical manifestation of a vector graphics 2D area. More...
struct  vgfx::init_primitive_t
struct  vgfx::init_point_t
struct  vgfx::init_bezier_t
struct  vgfx::init_rect_t
struct  vgfx::init_line_t
struct  vgfx::init_dxdy_t
struct  vgfx::init_quad_t
struct  vgfx::init_text_t

Namespaces

namespace  vgfx

Typedefs

typedef point2d_t< float > vgfx::point_t
typedef rect2d_t< float > vgfx::rect_t
typedef bool(* vgfx::callback_t )(IN void *context, IN visit_result_t &result)

Enumerations

enum  vgfx::eHitDetect {
  vgfx::eHit_Overlap = 1,
  vgfx::eHit_Contained = 2,
  vgfx::eHit_Always = 3,
  vgfx::eHit_Invalid = 0
}
 

hit detection results

More...

Functions

bool vgfx::processRequest (IN ObjectMap *map, IN std::istream &stream, IN bool single_transaction, OUT std::string &undo_request, OUT std::string &diagnostic)
 Request that an ObjectMap be updated with the given request.
void vgfx::invokeFunction (IN Primitive *in_function, IN ObjectMap *map, IN const dictionary_t &in_params, OUT std::ostream &out)
Primitive * vgfx::addFunctionFromPath (IN ObjectMap *map, IN const char *path)
void vgfx::setScript (IN ObjectMap *map, IN const char *parent_id, IN const char *script_id, IN const objtree::property_set_t &pset_def, IO std::ostream &stream, OUT std::string &root)
void vgfx::updateScriptParameters (IN ObjectMap *map, IN const char *parent_id, IN const objtree::property_set_t &pset, IO std::ostream &stream)
void vgfx::resizeScript (IN ObjectMap *map, IN const char *parent_id, IN float width, IN float height, IO std::ostream &stream)
template<class T >
std::string vgfx::getStringValue (const T &t)
void vgfx::init_point_from_data (IN const dictionary_t &data, OUT init_point_t &)
smart_ptr< Primitive > vgfx::create_point (IN const init_point_t &)
void vgfx::init_bezier_from_data (IN const dictionary_t &data, OUT init_bezier_t &init)
smart_ptr< Primitive > vgfx::create_bezier (IN const init_bezier_t &init)
void vgfx::init_rect_from_data (IN const dictionary_t &data, OUT init_rect_t &init)
smart_ptr< Primitive > vgfx::create_rect (IN const init_rect_t &init)
void vgfx::init_line_from_data (IN const dictionary_t &data, OUT init_line_t &init)
smart_ptr< Primitive > vgfx::create_line (IN const init_line_t &init)
void vgfx::init_dxdy_from_data (IN const dictionary_t &data, OUT init_dxdy_t &)
smart_ptr< Primitive > vgfx::create_dxdy (IN const init_dxdy_t &)
void vgfx::init_quad_from_data (IN const dictionary_t &data, OUT init_quad_t &init)
smart_ptr< Primitive > vgfx::create_quad (IN const init_quad_t &init)
smart_ptr< Primitive > vgfx::parseGroup (IN std::istream &stream, IN ObjectMap *map)
smart_ptr< Primitive > vgfx::parseFunction (IN std::istream &stream, IN ObjectMap *map)
void vgfx::init_text_from_data (IN const dictionary_t &data, OUT init_text_t &init)
smart_ptr< Primitive > vgfx::create_text (IN const init_text_t &init)