// PhBLandscapePhotoBackgroundP.C: PhBLandscapePhotoBackground nodes (private source).
// Automatically generated with nodegen 0.51 - do not edit.

#include "PhBLandscapePhotoBackground.H"
#include "xrmlP.H"

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

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

PhBLandscapePhotoBackground::PhBLandscapePhotoBackground()
{
  interfaceMember** the_interface = 0;
  SFNode::construct(PhBLandscapePhotoBackgroundTypeId, 0, the_interface);

  
  PhBBackgroundProjection::util_init();
  PhBLandscapePhotoBackground::util_init();
}

void PhBLandscapePhotoBackground::destruct(void)
{
  PhBLandscapePhotoBackground::util_destruct();
  PhBBackgroundProjection::util_destruct();
  SFNode::destruct();
}

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

void PhBLandscapePhotoBackground::clone_here(const PhBLandscapePhotoBackground& src)
{
  SFNode::clone(src);
  
  
  
  PhBBackgroundProjection::util_clone(src);
  PhBLandscapePhotoBackground::util_clone(src);
}

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

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

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

}  // namespace xrml
