// PhB3DTextureTransform.H: PhB3DTextureTransform 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 _PhB3DTextureTransform_H_
#define _PhB3DTextureTransform_H_

#include "xrml.H"

// utility includes
#include "transform.H"
// NOTE: add "public transform" to parent class declaration
// NOTE: remove state values center, rotation, scale, scaleOriantation
// and translation, which are declared in transform parent class.
// end of utility includes

namespace xrml {
#define PhB3DTextureTransformTypeId 	"PhB3DTextureTransform"
extern bool IsPhB3DTextureTransform(SFNode*);

class PhB3DTextureTransform: public virtual SFNode, public transform  {
private:
  //
  void clone_here(const PhB3DTextureTransform&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    center_updated = 0x1,
    rotation_updated = 0x2,
    scale_updated = 0x4,
    scaleOrientation_updated = 0x8,
    translation_updated = 0x10 
  };
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  PhB3DTextureTransform();
  PhB3DTextureTransform(const PhB3DTextureTransform&);
  PhB3DTextureTransform& operator=(const PhB3DTextureTransform&);
  virtual ~PhB3DTextureTransform();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  //  SFVec3f          	center;
  //  SFRotation       	rotation;
  //  SFVec3f          	scale;
  //  SFRotation       	scaleOrientation;
  //  SFVec3f          	translation;
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  void             	set_center(const SFVec3f&);
  void             	set_rotation(const SFRotation&);
  void             	set_scale(const SFVec3f&);
  void             	set_scaleOrientation(const SFRotation&);
  void             	set_translation(const SFVec3f&);
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_center(const SFVec3f&);
  bool             	assign_rotation(const SFRotation&);
  bool             	assign_scale(const SFVec3f&);
  bool             	assign_scaleOrientation(const SFRotation&);
  bool             	assign_translation(const SFVec3f&);
  
  // update status
  inline bool      	center_is_updated(void) { return (status & center_updated); }
  inline void      	center_clear_update(void) { status &= ~center_updated; }
  inline bool      	rotation_is_updated(void) { return (status & rotation_updated); }
  inline void      	rotation_clear_update(void) { status &= ~rotation_updated; }
  inline bool      	scale_is_updated(void) { return (status & scale_updated); }
  inline void      	scale_clear_update(void) { status &= ~scale_updated; }
  inline bool      	scaleOrientation_is_updated(void) { return (status & scaleOrientation_updated); }
  inline void      	scaleOrientation_clear_update(void) { status &= ~scaleOrientation_updated; }
  inline bool      	translation_is_updated(void) { return (status & translation_updated); }
  inline void      	translation_clear_update(void) { status &= ~translation_updated; }
  
  // utility members
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const PhB3DTextureTransform& src) { }
  inline void util_destruct(void) { }
};

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