// PhBBlackBodySpectrum.H: PhBBlackBodySpectrum 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 _PhBBlackBodySpectrum_H_
#define _PhBBlackBodySpectrum_H_

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

// utility includes
// end of utility includes

namespace xrml {
#define PhBBlackBodySpectrumTypeId 	"PhBBlackBodySpectrum"
extern bool IsPhBBlackBodySpectrum(SFNode*);

class PhBBlackBodySpectrum: public virtual SFNode, public PhBSpectrum {
private:
  //
  void clone_here(const PhBBlackBodySpectrum&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    temperature_updated = 0x1,
    luminance_updated = 0x2 
  };
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  PhBBlackBodySpectrum();
  PhBBlackBodySpectrum(const PhBBlackBodySpectrum&);
  PhBBlackBodySpectrum& operator=(const PhBBlackBodySpectrum&);
  virtual ~PhBBlackBodySpectrum();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  SFFloat          	temperature;
  SFFloat          	luminance;
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  void             	set_temperature(const SFFloat&);
  void             	set_luminance(const SFFloat&);
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_temperature(const SFFloat&);
  bool             	assign_luminance(const SFFloat&);
  
  // update status
  inline bool      	temperature_is_updated(void) { return (status & temperature_updated); }
  inline void      	temperature_clear_update(void) { status &= ~temperature_updated; }
  inline bool      	luminance_is_updated(void) { return (status & luminance_updated); }
  inline void      	luminance_clear_update(void) { status &= ~luminance_updated; }
  
  // utility members
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const PhBBlackBodySpectrum& src) { }
  inline void util_destruct(void) { }
};

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