Exemplo n.º 1
0
itk::LightObject::Pointer
PlaneGeometry::InternalClone() const
{
  Self::Pointer newGeometry = new PlaneGeometry(*this);
  newGeometry->UnRegister();
  return newGeometry.GetPointer();
}
Exemplo n.º 2
0
AffineGeometryFrame3D::Pointer
PlaneGeometry::Clone() const
{
  Self::Pointer newGeometry = new PlaneGeometry(*this);
  newGeometry->UnRegister();
  return newGeometry.GetPointer();
}
itk::LightObject::Pointer
  mitk::SlicedGeometry3D::InternalClone() const
{
  Self::Pointer newGeometry = new SlicedGeometry3D(*this);
  newGeometry->UnRegister();
  return newGeometry.GetPointer();
}
itk::LightObject::Pointer mitk::TimeGeometry::InternalClone() const
{
  itk::LightObject::Pointer parent = Superclass::InternalClone();
  Self::Pointer rval = dynamic_cast<Self *> (parent.GetPointer());
  if (rval.IsNull())
  {
    mitkThrow() << " Downcast to type " << this->GetNameOfClass() << " failed.";
  }
  rval->m_BoundingBox = m_BoundingBox->DeepCopy();
  return parent;
}
Exemplo n.º 5
0
mitk::AffineGeometryFrame3D::Pointer mitk::TimeSlicedGeometry::Clone() const
{
  Self::Pointer newGeometry = new TimeSlicedGeometry(*this);
  newGeometry->UnRegister();
  return newGeometry.GetPointer();
}