Bridges-C++
3.4.5-dev1-6-g935685a
Bridges(C++ API)
|
Support for drawing Bar charts. More...
Namespaces | |
base64 | |
benchmark | |
dataset | |
datastructure | |
game | |
JSONUtil | |
Classes | |
struct | WaveHeader |
class | Bridges |
This class contains methods to connect and transmit a user's data structure representation to the Bridges server. More... | |
class | CacheException |
class | Cache |
class | SimpleCache |
object managing a disk cache for which ever purpose needed. More... | |
class | lruCache |
class | Camera |
class | DataSource |
This class provides an API to various data sources used in BRIDGES. More... | |
class | Mesh |
class | Scene |
struct | HTTPException |
class | ServerComm |
This is a class for handling calls to the BRIDGES server to transmit JSON to the server and subsequent visualization. It is not intended for external use. More... | |
class | TerrainMesh |
Typedefs | |
typedef unsigned char | BYTE |
Variables | |
const string | QUOTE = "\"" |
const string | COMMA = "," |
const string | COLON = ":" |
const string | OPEN_CURLY = "{" |
const string | CLOSE_CURLY = "}" |
const string | OPEN_BOX = "[" |
const string | CLOSE_BOX = "]" |
const string | OPEN_PARENS = "(" |
const string | CLOSE_PARENS = ")" |
Support for drawing Bar charts.
The SymbolGroup object is a container object to hold a collection of primitive symbol objects such as rectangles, polygons, circles, labels.
The SymbolCollection object is a container object to hold a collection of symbols (rectangles, polygons, circles, labels).
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color arrays as strings. The code is adapted from external sources detailed below.
Bar charts (https://en.wikipedia.org/wiki/Bar_chart) are used to represent categorical data as a series of rectangular bars with length proportional to the values they represent.
Series in a bar chart provides data for a number of categories (sometimes called bins). Categories are defined using setCategories() and the series are added using addDataSeries(). The series are rendered in the order in which they were added. Once a series has been added, it can not be modified.
One should always define the categories before adding data. Changing the categories after series have been added will throw exceptions; adding series with different number of values than the number of categories will throw an exception.
The Bar charts can have a title, subtitle. The charts can be horizontal or vertically oriented, using setBarOrientation().
A tooltip indicating the value of a series in a particular bin is displayed by hovering on a bar. One can append a string to the value using setTooltipSuffix() to specify units in the tooltip if desired.
base64.cpp and base64.h Copyright (C) 2004-2008 René Nyffenegger
This source code is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
The origin of this source code must not be misrepresented; you must not claim that you wrote the original source code. If you use this source code in a product, an acknowledgment in the product documentation would be appreciated but is not required.
René Nyffenegger rene. nyff enegg er@a dp-gm bh.c h
Modified Implementation [from LihO, Dec. 18, 12] https://stackoverflow.com/questions/180947/base64-decode-snippet-in-c
This enables make 2D vector graphics
In this version, all symbols are individual primitives; future versions will support groups within groups, thereby facilitating a hierarchical model of symbols
typedef unsigned char bridges::BYTE |
const string bridges::CLOSE_BOX = "]" |
const string bridges::CLOSE_CURLY = "}" |
const string bridges::CLOSE_PARENS = ")" |
const string bridges::COLON = ":" |
const string bridges::COMMA = "," |
const string bridges::OPEN_BOX = "[" |
const string bridges::OPEN_CURLY = "{" |
const string bridges::OPEN_PARENS = "(" |
const string bridges::QUOTE = "\"" |