// PhBSphereTextureProjection.H: PhBSphereTextureProjection 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 _PhBSphereTextureProjection_H_
#define _PhBSphereTextureProjection_H_

#include "xrml.H"
#include "PhBTextureProjection.H"

// utility includes
// end of utility includes

namespace xrml {
#define PhBSphereTextureProjectionTypeId 	"PhBSphereTextureProjection"
extern bool IsPhBSphereTextureProjection(SFNode*);

class PhBSphereTextureProjection: public virtual SFNode, public PhBTextureProjection {
private:
  //
  void clone_here(const PhBSphereTextureProjection&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    radius_updated = 0x1 
  };
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  PhBSphereTextureProjection();
  PhBSphereTextureProjection(const PhBSphereTextureProjection&);
  PhBSphereTextureProjection& operator=(const PhBSphereTextureProjection&);
  virtual ~PhBSphereTextureProjection();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  SFFloat          	radius;
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  void             	set_radius(const SFFloat&);
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_radius(const SFFloat&);
  
  // update status
  inline bool      	radius_is_updated(void) { return (status & radius_updated); }
  inline void      	radius_clear_update(void) { status &= ~radius_updated; }
  
  // utility members
  Vec3 object2surface(const Vec3& objectCoord,
		      Vec3 *x,
		      Vec3 *y,
		      Vec3 *z);
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const PhBSphereTextureProjection& src) { }
  inline void util_destruct(void) { }
};

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