diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-02 21:35:10 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-02 21:35:10 (GMT) |
commit | ed8a99ed55d5d1ad043608ed471bb7564403bde9 (patch) | |
tree | d0205bc5d22062ba6ddc0bbf87c88e9fafa58536 /src/colornode.h | |
parent | 287c20d2ff1f737acb414b3eda4969356c02c4fe (diff) |
Refactoring: Moved color functionality into separate module and node
Diffstat (limited to 'src/colornode.h')
-rw-r--r-- | src/colornode.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/colornode.h b/src/colornode.h new file mode 100644 index 0000000..b41e2a9 --- /dev/null +++ b/src/colornode.h @@ -0,0 +1,20 @@ +#ifndef COLORNODE_H_ +#define COLORNODE_H_ + +#include "node.h" +#include "visitor.h" + +class ColorNode : public AbstractNode +{ +public: + ColorNode(const ModuleInstantiation *mi) : AbstractNode(mi) { } + virtual Response accept(class State &state, Visitor &visitor) const { + return visitor.visit(state, *this); + } + virtual std::string toString() const; + virtual std::string name() const; + + double color[4]; +}; + +#endif |