Classes | Namespaces | Functions

vgfx-util.h File Reference

#include "vgfx.h"
#include "graph/dag.h"
Include dependency graph for vgfx-util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  vgfx::NodeChecker
 NodeChecker -- base class that can be used for walk validation see the bottom of this file for some useful validators. More...
struct  vgfx::hit_result_t
 hit_result_t -- returned from hit detection More...
struct  vgfx::meta_check_t
class  vgfx::MetaKeyValueChecker


namespace  vgfx


const char * vgfx::getDragDropRootNodeID (void) throw ()
 getDragDropRootNodeID() - returns the id of the root node used for all drag/drop/copy/paste operations
void vgfx::getDragRequest (ObjectMap *map,Primitive *root,const SetString &selection,float x_cm,float y_cm,std::string &request)
 getDragRequest() - given root object in map, and selection of tag_paths, return a drag/drop request (all selected objects attached to the known drag/drop root node id)
bool vgfx::getDropRequest (ObjectMap *map,Primitive *root,const SetString &selection,std::istream &drag_request,float x_cm,float y_cm,NodeChecker &okayToReceiveDrop,std::string &request,SetString &out_selection)
 getDropRequest() - given a drag_request that has been dropped at (x_cm, y_cm) on a given root in a given map, return a request that adds all of the dropped objects to the correct position in the root.
void vgfx::getSelectionRect (ObjectMap *map,Primitive *root,const SetString &selection,rect_t &r_cm)
 getSelectionRect() - given a set of selected objects, return bounding rect
void vgfx::addDependenciesToGraph (ObjectMap *map,const char *id,graph::DAG *dag)
 addDependenciesToGraph(map, id, dag) - given a top-level object (id) in a map, run through and find all dependencies of the object.
bool vgfx::getObjectAt (Primitive *root, float x_cm, float y_cm, NodeChecker &checker, hit_result_t &wr)
meta_check_t vgfx::getMeta (Primitive *p, const char *name)
std::string vgfx::getOptionalMeta (Primitive *p, const char *name, const char *default_value)