Bridges-C++
3.4.4
Bridges(C++ API)
|
#include <Bridges.h>
This class contains methods to connect and transmit a user's data structure representation to the Bridges server.
If the FORCE_BRIDGES_APIKEY environment variable is set, use the environment variable as APIkey in all cases.
If the FORCE_BRIDGES_USERNAME environment variable is set, use the environment variable as username in all cases.
If the FORCE_BRIDGES_ASSIGNMENT environment variable is set, use the environment variable as assignment number in all cases.
If the FORCE_BRIDGES_APISERVER environment variable is set, use the environment variable as API server in all cases.
If the FORCE_BRIDGES_DATADEBUG environment variable is set, output debug information about access data sources.
Public Member Functions | |
Bridges () | |
Bridges (const string &name, const string &key) | |
constructor to bridges More... | |
Bridges (unsigned int num, const string &name, const string &key) | |
constructor to bridges More... | |
void | setElementLabelFlag (bool flag) |
Flag that controls if labels of elements (nodes) are to be turned on. More... | |
void | setLinkLabelFlag (bool flag) |
Flag that controls if labels of links(edges) are to be turned on/off. More... | |
bool | getElementLabelFlag () const |
status of flag for element labels More... | |
bool | getLinkLabelFlag () const |
Return status of flag for link labels. More... | |
bool | getJSONFlag () const |
void | postVisualizationLink (bool link_url) |
void | setJSONFlag (bool flag) |
const string & | getUserName () const |
void | setUserName (string name) |
Set user name. More... | |
const string & | getApiKey () const |
void | setApiKey (string key) |
Set API key credentials. More... | |
unsigned int | getAssignment () const |
void | setAssignment (unsigned int num) |
const string & | getTitle () const |
void | setTitle (const string &t) |
const string & | getDescription () const |
void | setDescription (const string &descr) |
void | setDataStructure (DataStructure *ds) |
void | setDataStructure (DataStructure &ds) |
DataStructure * | getDataStructure () |
void | setServer (string server_type) |
void | setMapOverlay (bool overlay_flag) |
Turns on map overlay for subsequent visualizations - used with location specific datasets. More... | |
void | setMap (string my_map, string info) |
Sets the type of map overlay to use. More... | |
void | setCoordSystemType (string coord) |
const string & | getCoordSystemType () |
void | setWindow (int xmin, int xmax, int ymin, int ymax) |
void | setWindow (double xmin, double xmax, double ymin, double ymax) |
sets the world coordinate window defining the space of the user defined objects (or nodes) More... | |
string | getVisualizeURL () const |
void | visualize () |
|
inline |
|
inline |
constructor to bridges
If the FORCE_BRIDGES_APIKEY environment variable is set, use the environment variable as APIkey in all cases.
If the FORCE_BRIDGES_USERNAME environment variable is set, use the environment variable as username in all cases.
|
inline |
constructor to bridges
If the FORCE_BRIDGES_APIKEY environment variable is set, use the environment variable as APIkey in all cases.
If the FORCE_BRIDGES_USERNAME environment variable is set, use the environment variable as username in all cases.
If the FORCE_BRIDGES_ASSIGNMENT environment variable is set, use the environment variable as assignment number in all cases.
If the FORCE_BRIDGES_APISERVER environment variable is set, use the environment variable as API server in all cases.
|
inline |
Get API key credentials
|
inline |
Return assignmet id
|
inline |
Gets the coordinate system type for location specific datasets
|
inline |
|
inline |
Get visualization description
|
inline |
status of flag for element labels
|
inline |
|
inline |
Return status of flag for link labels.
|
inline |
Get the visualization title
|
inline |
Get user name
|
inline |
|
inline |
This method is used to suppress the visualization link that is usually printed to the console
link_url | flag that controls if the link is printed to console |
|
inline |
Set API key credentials.
If the FORCE_BRIDGES_APIKEY environment variable is set, use the environment variable as key and disregard the parameter.
key | API key to set for user |
|
inline |
Set the assignment number
If the FORCE_BRIDGES_ASSIGNMENT environment variable is set, use the environment variable as assignment number in all cases.
num | assignment number to set |
|
inline |
Sets the coordinate system type for location specific data; default is cartesian
coord | this is the desired coordinate space argument Options are: ['cartesian', 'albersusa', 'equirectangular', 'window']. 'cartesian' is the default |
|
inline |
set handle to data structure
ds | reference to user's data Structure |
|
inline |
set handle to data structure
ds | pointer to user's data Structure |
|
inline |
Set visualization description
|
inline |
Flag that controls if labels of elements (nodes) are to be turned on.
flag | indicating if all labels in the visualization are turned on |
|
inline |
flag | indicating if JSON should be printed upon visualization |
|
inline |
Flag that controls if labels of links(edges) are to be turned on/off.
flag | indicating if all labels in the visualization are turned on |
|
inline |
Sets the type of map overlay to use.
map | this is an Array describing the map overlay. The first element of the array is which map to use: "world" or "us" and the second element is what attribute from the map to show: a country from world map, or a state from US map. |
|
inline |
Turns on map overlay for subsequent visualizations - used with location specific datasets.
overlay_flag | true to display the map overlay |
|
inline |
Set server type
If the FORCE_BRIDGES_APISERVER environment variable is set, use the environment variable as API server in all cases.
server_type | server to which to connect. Options are: ['live', 'local', 'games', 'clone'], and 'live' is the default; |
|
inline |
Set title of visualization
t | title of visualization |
|
inline |
Set user name.
If the FORCE_BRIDGES_USERNAME environment variable is set, use the environment variable as username in all cases.
name | BRIDGES user id to set |
|
inline |
sets the world coordinate window defining the space of the user defined objects (or nodes)
xmin | minimum window x |
ymin | minimum window y |
xmax | maximum window x |
ymax | maximum window y |
|
inline |
Sets the world coordinate window defining the space of the user defined objects (or nodes)
xmin | minimum window x |
ymin | minimum window y |
xmax | maximum window x |
ymax | maximum window y |
|
inline |
Sends relevant meta-data and representation of the data structure to the BRIDGES server, and upon successful completion, prints the URL to display the Bridges visualization.