#include "ConditionNode.hxx"
-#include <simgear/math/SGMath.hxx>
+#include <osgDB/Registry>
+#include <osgDB/Output>
namespace simgear
{
}
}
+namespace
+{
+bool ConditionNode_writeLocalData(const Object& obj, osgDB::Output& fw)
+{
+ const ConditionNode& cn = static_cast<const ConditionNode&>(obj);
+ // Can't really print out conditions
+ fw.indent() << "expression ";
+ if (cn.getCondition())
+ fw << "yes\n";
+ else
+ fw << "no\n";
+ return true;
+}
+
+osgDB::RegisterDotOsgWrapperProxy g_ConditionNodeProxy(
+ new ConditionNode,
+ "simgear::ConditionNode",
+ "Object Node simgear::ConditionNode Group",
+ 0,
+ &ConditionNode_writeLocalData);
+}
}