// PhBSurfaceDistortion.H: PhBSurfaceDistortion 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 _PhBSurfaceDistortion_H_
#define _PhBSurfaceDistortion_H_

#include "xrml.H"
#include "PhBDistortion.H"
#include "PhBTexture.H"
#include "Transform.H"

// utility includes
// end of utility includes

namespace xrml {
#define PhBSurfaceDistortionTypeId 	"PhBSurfaceDistortion"
extern bool IsPhBSurfaceDistortion(SFNode*);

class PhBSurfaceDistortion:  public PhBDistortion {
protected:
  // raw children nodes (can be PROTO) + synchronize methods:
  SFNode* 	_texture;
  void 	synchronize_texture(void);
  SFNode* 	_transform;
  void 	synchronize_transform(void);

public:
  //
  virtual int major_version(void), minor_version(void);
  virtual bool is_leaf_class(void);
  
  PhBSurfaceDistortion();
  
  //
  virtual void     	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  PhBTexture*      	texture;
  Transform*       	transform;
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  virtual void     	set_texture(SFNode*);
  virtual void     	set_transform(SFNode*);
  
  // field assignement: no forwarding or eventOut generation!
  virtual bool     	assign_texture(SFNode*);
  virtual bool     	assign_transform(SFNode*);
  
  // update status
  virtual bool     	texture_is_updated(void);
  virtual void     	texture_clear_update(void);
  virtual bool     	transform_is_updated(void);
  virtual void     	transform_clear_update(void);
  
  // utility members
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const PhBSurfaceDistortion& src) { }
  inline void util_destruct(void) { }
};

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