// PhBSampledIsotropicEmitter.H: PhBSampledIsotropicEmitter 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 _PhBSampledIsotropicEmitter_H_
#define _PhBSampledIsotropicEmitter_H_

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

// utility includes
// end of utility includes

namespace xrml {
#define PhBSampledIsotropicEmitterTypeId 	"PhBSampledIsotropicEmitter"
extern bool IsPhBSampledIsotropicEmitter(SFNode*);

class PhBSampledIsotropicEmitter: public virtual SFNode, public PhBEmitter {
private:
  //
  void clone_here(const PhBSampledIsotropicEmitter&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    samples_updated = 0x1,
    minAngle_updated = 0x2,
    maxAngle_updated = 0x4 
  };
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  PhBSampledIsotropicEmitter();
  PhBSampledIsotropicEmitter(const PhBSampledIsotropicEmitter&);
  PhBSampledIsotropicEmitter& operator=(const PhBSampledIsotropicEmitter&);
  virtual ~PhBSampledIsotropicEmitter();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  MFFloat          	samples;
  SFFloat          	minAngle;
  SFFloat          	maxAngle;
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  void             	set_samples(const MFFloat&);
  void             	set_minAngle(const SFFloat&);
  void             	set_maxAngle(const SFFloat&);
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_samples(const MFFloat&);
  bool             	assign_minAngle(const SFFloat&);
  bool             	assign_maxAngle(const SFFloat&);
  
  // update status
  inline bool      	samples_is_updated(void) { return (status & samples_updated); }
  inline void      	samples_clear_update(void) { status &= ~samples_updated; }
  inline bool      	minAngle_is_updated(void) { return (status & minAngle_updated); }
  inline void      	minAngle_clear_update(void) { status &= ~minAngle_updated; }
  inline bool      	maxAngle_is_updated(void) { return (status & maxAngle_updated); }
  inline void      	maxAngle_clear_update(void) { status &= ~maxAngle_updated; }
  
  // utility members
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const PhBSampledIsotropicEmitter& src) { }
  inline void util_destruct(void) { }
};

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