// Interpolator.H: Interpolator 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 _Interpolator_H_
#define _Interpolator_H_

#include "xrml.H"

// utility includes
// end of utility includes

namespace xrml {
#define InterpolatorTypeId 	"Interpolator"
extern bool IsInterpolator(SFNode*);

class Interpolator: public virtual SFNode {
public:
  //
  virtual int major_version(void), minor_version(void);
  virtual bool is_leaf_class(void);
  
  Interpolator();
  
  //
  virtual void     	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  MFFloat          	key;
  
  // eventIns:
  virtual void     	set_fraction(const SFFloat&);
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  virtual void     	set_key(const MFFloat&);
  
  // field assignement: no forwarding or eventOut generation!
  virtual bool     	assign_key(const MFFloat&);
  
  // update status
  virtual bool     	key_is_updated(void);
  virtual void     	key_clear_update(void);
  
  // utility members
  bool initialised;
  
protected:
  float get_index(float t);

  inline void util_init(void) { initialised = false; }
  inline void util_clone(const Interpolator& src) { initialised = false; }
  inline void util_destruct(void) { }
};

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