mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Added toolbar and menu for switching between graph layouts
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@914 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+12
-2
@@ -15,12 +15,22 @@
|
||||
|
||||
/// Types of graphs
|
||||
enum GraphType
|
||||
{ GRAPH_TYPE_BAR
|
||||
, GRAPH_TYPE_PIE
|
||||
{ GRAPH_TYPE_PIE
|
||||
, GRAPH_TYPE_BAR
|
||||
, GRAPH_TYPE_STACK
|
||||
, GRAPH_TYPE_SCATTER
|
||||
, GRAPH_TYPE_SCATTER_PIE
|
||||
};
|
||||
|
||||
/// Dimensions for each graph type
|
||||
inline size_t dimensionality(GraphType type) {
|
||||
if (type == GRAPH_TYPE_PIE) return 1;
|
||||
if (type == GRAPH_TYPE_BAR) return 1;
|
||||
if (type == GRAPH_TYPE_STACK) return 2;
|
||||
if (type == GRAPH_TYPE_SCATTER) return 2;
|
||||
if (type == GRAPH_TYPE_SCATTER_PIE) return 3;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user