// PhBDiffuseEmitter.H: PhBDiffuseEmitter 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 _PhBDiffuseEmitter_H_
#define _PhBDiffuseEmitter_H_

#include "xrml.H"
#include "PhBEmitter.H"

// utility includes
// end of utility includes

namespace xrml {
#define PhBDiffuseEmitterTypeId 	"PhBDiffuseEmitter"
extern bool IsPhBDiffuseEmitter(SFNode*);

class PhBDiffuseEmitter: public virtual SFNode, public PhBEmitter {
private:
  //
  void clone_here(const PhBDiffuseEmitter&);
  void destruct(void);
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  PhBDiffuseEmitter();
  PhBDiffuseEmitter(const PhBDiffuseEmitter&);
  PhBDiffuseEmitter& operator=(const PhBDiffuseEmitter&);
  virtual ~PhBDiffuseEmitter();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // utility members
  float emittance(int range);
  Vec3 sample(float xi1, float xi2, int range);
  float eval(const Vec3& direction, int range, float *pdf);


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

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