goat3d

changeset 7:97139303348c

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 21 Aug 2013 04:00:22 +0300
parents 0a49bdf1af6f
children cd71f0b92f44
files src/node.h
diffstat 1 files changed, 6 insertions(+), 17 deletions(-) [+]
line diff
     1.1 --- a/src/node.h	Tue Aug 20 05:38:38 2013 +0300
     1.2 +++ b/src/node.h	Wed Aug 21 04:00:22 2013 +0300
     1.3 @@ -3,30 +3,19 @@
     1.4  
     1.5  #include <string>
     1.6  #include <vector>
     1.7 +#include "xform_node.h"
     1.8  
     1.9 -class Node {
    1.10 +class Node : public XFormNode {
    1.11  private:
    1.12 -	std::string name;
    1.13 -	Node *parent;
    1.14 -	std::vector<Node*> children;
    1.15 +	Object *obj;
    1.16  
    1.17  public:
    1.18  	Node();
    1.19  	virtual ~Node();
    1.20  
    1.21 -	virtual void set_name(const char *name);
    1.22 -	virtual const char *get_name() const;
    1.23 -
    1.24 -	virtual void add_child(Node *c);
    1.25 -	virtual int get_num_children() const;
    1.26 -
    1.27 -	virtual Node *get_child(int idx) const;
    1.28 -	virtual Node *get_child(const char *name) const;
    1.29 -	virtual Node *get_descendant(const char *name) const;
    1.30 -
    1.31 -	virtual Node *get_parent() const;
    1.32 -	// passing 0 will return the root
    1.33 -	virtual Node *get_ancestor(const char *name) const;
    1.34 +	void set_object(Object *obj);
    1.35 +	Object *get_object();
    1.36 +	const Object *get_object() const;
    1.37  };
    1.38  
    1.39  #endif	// NODE_H_