// Grouping.H: Grouping 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 _Grouping_H_
#define _Grouping_H_

#include "xrml.H"
#include "Children.H"

// utility includes
// end of utility includes

namespace xrml {
#define GroupingTypeId 	"Grouping"
extern bool IsGrouping(SFNode*);

class Grouping: public virtual SFNode {
protected:
  // raw children nodes (can be PROTO) + synchronize methods:
  MFNode 	_children;
  void 	synchronize_children(void);

public:
  //
  virtual int major_version(void), minor_version(void);
  virtual bool is_leaf_class(void);
  
  Grouping();
  
  //
  virtual void     	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  array<Children*> 	children;
  SFVec3f          	bboxCenter;
  SFVec3f          	bboxSize;
  
  // eventIns:
  virtual void     	addChildren(const MFNode&);
  virtual void     	removeChildren(const MFNode&);
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  virtual void     	set_children(const MFNode&);
  
  // field assignement: no forwarding or eventOut generation!
  virtual bool     	assign_children(const MFNode&);
  virtual bool     	assign_bboxCenter(const SFVec3f&);
  virtual bool     	assign_bboxSize(const SFVec3f&);
  
  // update status
  virtual bool     	children_is_updated(void);
  virtual void     	children_clear_update(void);
  virtual bool     	bboxCenter_is_updated(void);
  virtual void     	bboxCenter_clear_update(void);
  virtual bool     	bboxSize_is_updated(void);
  virtual void     	bboxSize_clear_update(void);
  
  // utility members
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const Grouping& src) { }
  inline void util_destruct(void) { }
};

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