// Normal.H: Normal 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 _Normal_H_
#define _Normal_H_

#include "xrml.H"

// utility includes
// end of utility includes

namespace xrml {
#define NormalTypeId 	"Normal"
extern bool IsNormal(SFNode*);

class Normal: public virtual SFNode {
private:
  //
  void clone_here(const Normal&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    vector_updated = 0x1 
  };
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  Normal();
  Normal(const Normal&);
  Normal& operator=(const Normal&);
  virtual ~Normal();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  MFVec3f          	vector;
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  void             	set_vector(const MFVec3f&);
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_vector(const MFVec3f&);
  
  // update status
  inline bool      	vector_is_updated(void) { return (status & vector_updated); }
  inline void      	vector_clear_update(void) { status &= ~vector_updated; }
  
  // utility members
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const Normal& src) { }
  inline void util_destruct(void) { }
};

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