summaryrefslogtreecommitdiff
path: root/src/node.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-08-28 19:21:44 (GMT)
committerMarius Kintel <marius@kintel.net>2010-10-31 00:42:38 (GMT)
commitd0390c41a2268ce23d3010c7085e4365725d2f49 (patch)
treed3f2e6b0cc58a66ff759740ddcf27191335076aa /src/node.cc
parent93f3d4a1b6251523428179261dc070df44b0b317 (diff)
Added AbstractNode::name(), changed CSGTextRenderer to use this instead of the rtti name
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/node.cc b/src/node.cc
index 96a24ba..9607b27 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -66,16 +66,22 @@ Response AbstractPolyNode::accept(class State &state, Visitor &visitor) const
std::string AbstractNode::toString() const
{
- std::stringstream stream;
- stream << "group()";
- return stream.str();
+ return this->name() + "()";
+}
+
+std::string AbstractNode::name() const
+{
+ return "group";
}
std::string AbstractIntersectionNode::toString() const
{
- std::stringstream stream;
- stream << "intersection()";
- return stream.str();
+ return this->name() + "()";
+}
+
+std::string AbstractIntersectionNode::name() const
+{
+ return "intersection_for";
}
void AbstractNode::progress_prepare()
contact: Jan Huwald // Impressum