implemented SymbolFilter

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@70 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-31 17:58:29 +00:00
parent 5b56e8ee11
commit 2dd93a91fb
10 changed files with 305 additions and 61 deletions
+7 -2
View File
@@ -14,6 +14,11 @@
#include <data/symbol.hpp>
#include <gfx/bezier.hpp>
// ----------------------------------------------------------------------------- : Simple rendering
/// Render a Symbol to an Image
Image render_symbol(const SymbolP& symbol, double border_radius = 0.05, int size = 100);
// ----------------------------------------------------------------------------- : Symbol Viewer
enum HighlightStyle {
@@ -25,10 +30,10 @@ enum HighlightStyle {
class SymbolViewer : public SymbolView {
public:
// --------------------------------------------------- : Data
SymbolViewer(const SymbolP& symbol, double borderRadius = 0.05);
SymbolViewer(const SymbolP& symbol, double border_radius = 0.05);
// drawing
double borderRadius;
double border_radius;
// --------------------------------------------------- : Point translation