# HG changeset patch # User John Tsiombikas # Date 1377046822 -10800 # Node ID 97139303348c77618009b81d1da215278a90761a # Parent 0a49bdf1af6f3b3e347c2f7498cbe66f9ae816e8 foo diff -r 0a49bdf1af6f -r 97139303348c src/node.h --- a/src/node.h Tue Aug 20 05:38:38 2013 +0300 +++ b/src/node.h Wed Aug 21 04:00:22 2013 +0300 @@ -3,30 +3,19 @@ #include #include +#include "xform_node.h" -class Node { +class Node : public XFormNode { private: - std::string name; - Node *parent; - std::vector children; + Object *obj; public: Node(); virtual ~Node(); - virtual void set_name(const char *name); - virtual const char *get_name() const; - - virtual void add_child(Node *c); - virtual int get_num_children() const; - - virtual Node *get_child(int idx) const; - virtual Node *get_child(const char *name) const; - virtual Node *get_descendant(const char *name) const; - - virtual Node *get_parent() const; - // passing 0 will return the root - virtual Node *get_ancestor(const char *name) const; + void set_object(Object *obj); + Object *get_object(); + const Object *get_object() const; }; #endif // NODE_H_