// Color.H: Color 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 _Color_H_
#define _Color_H_

#include "xrml.H"

// utility includes
// end of utility includes

namespace xrml {
#define ColorTypeId 	"Color"
extern bool IsColor(SFNode*);

class Color: public virtual SFNode {
private:
  //
  void clone_here(const Color&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    color_updated = 0x1 
  };
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  Color();
  Color(const Color&);
  Color& operator=(const Color&);
  virtual ~Color();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  MFColor          	color;
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  void             	set_color(const MFColor&);
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_color(const MFColor&);
  
  // update status
  inline bool      	color_is_updated(void) { return (status & color_updated); }
  inline void      	color_clear_update(void) { status &= ~color_updated; }
  
  // utility members
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const Color& src) { }
  inline void util_destruct(void) { }
};

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