// Cone.H: Cone 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 _Cone_H_
#define _Cone_H_

#include "xrml.H"
#include "Geometry.H"

// utility includes
// end of utility includes

namespace xrml {
#define ConeTypeId 	"Cone"
extern bool IsCone(SFNode*);

class Cone: public virtual SFNode, public Geometry {
private:
  //
  void clone_here(const Cone&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    bottomRadius_updated = 0x1,
    height_updated = 0x2,
    side_updated = 0x4,
    bottom_updated = 0x8 
  };
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  Cone();
  Cone(const Cone&);
  Cone& operator=(const Cone&);
  virtual ~Cone();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  SFFloat          	bottomRadius;
  SFFloat          	height;
  SFBool           	side;
  SFBool           	bottom;
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_bottomRadius(const SFFloat&);
  bool             	assign_height(const SFFloat&);
  bool             	assign_side(const SFBool&);
  bool             	assign_bottom(const SFBool&);
  
  // update status
  inline bool      	bottomRadius_is_updated(void) { return (status & bottomRadius_updated); }
  inline void      	bottomRadius_clear_update(void) { status &= ~bottomRadius_updated; }
  inline bool      	height_is_updated(void) { return (status & height_updated); }
  inline void      	height_clear_update(void) { status &= ~height_updated; }
  inline bool      	side_is_updated(void) { return (status & side_updated); }
  inline void      	side_clear_update(void) { status &= ~side_updated; }
  inline bool      	bottom_is_updated(void) { return (status & bottom_updated); }
  inline void      	bottom_clear_update(void) { status &= ~bottom_updated; }
  
  // utility members
  void discretize(void);

protected:
  inline void util_init(void) { }
  inline void util_clone(const Cone& src) { }
  inline void util_destruct(void) { }
};

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