/*
 * HnSRTreeCluster.cc
 *
 * DO NOT EDIT THIS FILE!
 *
 * This file is automatically generated by obj2ptr.
 * 2006/08/03 17:37:44
 */

#include "HnSRTree/HnSRTreeCluster.hh"
#include "HnSRTree/HnSRTreeClusterObj.hh"

/*
 * HnSRTreeCluster
 */

const HnSRTreeCluster HnSRTreeCluster::null;

HnSRTreeCluster
new_HnSRTreeCluster(const HnPoint &centroid, int weight, const HnSphere &sphere, const HnRect &rect)
{
    HnSRTreeClusterObj *_obj;

    _obj = new HnSRTreeClusterObj(centroid, weight, sphere, rect);

    if ( _obj->hasConstructorFailed() ) {
        delete _obj;
        return (HnSRTreeClusterObj *)NULL;
    }

    return _obj;
}

#define HnClass HnSRTreeCluster
#include "HnSRTree/HnClassArray.cc"

