// Box.H: Box nodes.

// This file has been generated using nodegen 0.5a.
// Restrict manual editing to the sections delimited by
// . the comments "utility includes" and "end of utility includes"
// . the comments "utility members" and "end of utility members"

#ifndef _Box_H_
#define _Box_H_

#include "xrml.H"
#include "Geometry.H"

// utility includes
// end of utility includes

namespace xrml {
#define BoxTypeId 	"Box"
extern bool IsBox(SFNode*);

class Box: public virtual SFNode, public Geometry {
private:
  //
  void clone_here(const Box&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    size_updated = 0x1 
  };
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  Box();
  Box(const Box&);
  Box& operator=(const Box&);
  virtual ~Box();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  SFVec3f          	size;
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_size(const SFVec3f&);
  
  // update status
  inline bool      	size_is_updated(void) { return (status & size_updated); }
  inline void      	size_clear_update(void) { status &= ~size_updated; }
  
  // utility members
  void discretize(void);
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const Box& src) { }
  inline void util_destruct(void) { }
};

// end of utility members
} // namespace xrml
#endif /*_Box_H_*/
