Namespaces | Functions | Variables

vgfx-util.cpp File Reference

#include "vgfx-util.h"
#include "common/wave_ex.h"
#include "perf/perf.h"
#include "util/file.h"
#include "util/parsing.h"
#include "util/token_stream.h"
#include "request.h"
Include dependency graph for vgfx-util.cpp:

Go to the source code of this file.

Namespaces

namespace  vgfx

Functions

static bool vgfx::containsSpace (IN const char *p) throw ()
static void vgfx::getIdPrefix (IN const char *id, OUT std::string &prefix)
void vgfx::addDependenciesToGraphInternal (IN ObjectMap *map, IN const char *id, IO graph::DAG *dag)
static void vgfx::replaceIDs (IN ObjectMap *map, IN std::istream &in, OUT std::string &request)
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 (IN ObjectMap *map, IN Primitive *root, IN const SetString &selection, IN float x_cm, IN float y_cm, OUT 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)
void vgfx::addDependenciesToGraph (IN ObjectMap *map, IN const char *id, IO 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::getDropRequest (IN ObjectMap *map, IN Primitive *root, IN const SetString &selection, IN std::istream &drag_request, IN float x_cm, IN float y_cm, IN NodeChecker &okayToReceiveDrop, OUT std::string &request, OUT 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 (IN ObjectMap *map, IN Primitive *root, IN const SetString &selection,OUT rect_t &r_cm)
 getSelectionRect() - given a set of selected objects, return bounding rect
static bool vgfx::getObjectAtCallback (IN void *context, IN visit_result_t &vr)
bool vgfx::getObjectAt (IN Primitive *root, IN float x_cm, IN float y_cm, IN NodeChecker &checker, OUT hit_result_t &wr)
meta_check_t vgfx::getMeta (IN Primitive *p, IN const char *name)
std::string vgfx::getOptionalMeta (IN Primitive *p, IN const char *name, IN const char *default_value)

Variables

static const char * vgfx::s_keyTop = "collectionRoot"