// PhB3DSpiralTextureP.C: PhB3DSpiralTexture nodes (private source).
// Automatically generated with nodegen 0.5a - do not edit.

#include "PhB3DSpiralTexture.H"
#include "xrmlP.H"

namespace xrml {
int PhB3DSpiralTexture::major_version(void) { return 0; }
int PhB3DSpiralTexture::minor_version(void) { return 5; }
bool PhB3DSpiralTexture::is_leaf_class(void) { return true; }

bool IsPhB3DSpiralTexture(SFNode* node)
{
  return (dynamic_cast<PhB3DSpiralTexture*>(node) != 0);
}

PhB3DSpiralTexture::PhB3DSpiralTexture()
{
  interfaceMember** the_interface = 0;
  SFNode::construct(PhB3DSpiralTextureTypeId, 0, the_interface);

  
  PhB3DTexture::util_init();
  PhB3DSpiralTexture::util_init();
}

void PhB3DSpiralTexture::destruct(void)
{
  PhB3DSpiralTexture::util_destruct();
  PhB3DTexture::util_destruct();
  SFNode::destruct();
}

PhB3DSpiralTexture::~PhB3DSpiralTexture()
{
  destruct();
}

void PhB3DSpiralTexture::clone_here(const PhB3DSpiralTexture& src)
{
  SFNode::clone(src);
  
  
  
  PhB3DTexture::util_clone(src);
  PhB3DSpiralTexture::util_clone(src);
}

PhB3DSpiralTexture::PhB3DSpiralTexture(const PhB3DSpiralTexture& src)
{
  clone_here(src);
}

PhB3DSpiralTexture& PhB3DSpiralTexture::operator=(const PhB3DSpiralTexture& src)
{
  if (this != &src) {
    destruct();
    clone_here(src);
  }
  return *this;
}

SFNode* PhB3DSpiralTexture::instantiate(Proto *enclosing_proto)
{
  if (nameIndex>=0)
    // named node: return pointer to pre-made instance
    return enclosing_proto ? enclosing_proto->namedNodes[nameIndex] : this;
  
  PhB3DSpiralTexture* instance = new PhB3DSpiralTexture(*this);
  instance->instantiate_interface(enclosing_proto);
  return instance;
}

}  // namespace xrml
