// PhBXYZSpectrum.H: PhBXYZSpectrum 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 _PhBXYZSpectrum_H_
#define _PhBXYZSpectrum_H_

#include "xrml.H"
#include "PhBSpectrum.H"

// utility includes
// end of utility includes

namespace xrml {
#define PhBXYZSpectrumTypeId 	"PhBXYZSpectrum"
extern bool IsPhBXYZSpectrum(SFNode*);

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

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