// PhBSpectrum.H: PhBSpectrum 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 _PhBSpectrum_H_
#define _PhBSpectrum_H_

#include "xrml.H"

// utility includes
#include "spectrum.H"
// end of utility includes

namespace xrml {
#define PhBSpectrumTypeId 	"PhBSpectrum"
extern bool IsPhBSpectrum(SFNode*);

class PhBSpectrum: public virtual SFNode {
public:
  //
  virtual int major_version(void), minor_version(void);
  virtual bool is_leaf_class(void);
  
  PhBSpectrum();
  
  //
  virtual void     	render(void);
  
  // utility members
  // spectrum representation allowing computations
  // To be set in render().
  Spectrum value;
  
  Spectrum wavelength2xyz(float wavelength, float luminace);

protected:
  inline void util_init(void) { }
  inline void util_clone(const PhBSpectrum& src) { }
  inline void util_destruct(void) { }
};

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