// PhBEmitter.H: PhBEmitter 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 _PhBEmitter_H_
#define _PhBEmitter_H_

#include "xrml.H"

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

namespace xrml {
#define PhBEmitterTypeId 	"PhBEmitter"
extern bool IsPhBEmitter(SFNode*);

class PhBEmitter: public virtual SFNode {
public:
  //
  virtual int major_version(void), minor_version(void);
  virtual bool is_leaf_class(void);
  
  PhBEmitter();
  
  //
  virtual void     	render(void);
  
  // utility members
  virtual float emittance(int range)
    {
      Warning(NULL, "%s::emittance(): not yet implemented",
	      typeId);
      return 0.;
    }

  virtual float eval(const Vec3& direction, 
		     int range,
		     float *pdf)
    {
      Warning(NULL, "%s::eval(): not yet implemented",
	      typeId);
      if (pdf) *pdf = 0.;
      return 0.;
    }

  virtual Vec3 sample(float xi1, float xi2, int range)
    {
      Warning(NULL, "%s::sample(): not yet implemented",
	      typeId);
      return Vec3(0.,0.,1.);
    }

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

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