예제 #1
0
itk::LightObject::Pointer
PlaneGeometry::InternalClone() const
{
  Self::Pointer newGeometry = new PlaneGeometry(*this);
  newGeometry->UnRegister();
  return newGeometry.GetPointer();
}
예제 #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;
}
예제 #5
0
mitk::AffineGeometryFrame3D::Pointer mitk::TimeSlicedGeometry::Clone() const
{
  Self::Pointer newGeometry = new TimeSlicedGeometry(*this);
  newGeometry->UnRegister();
  return newGeometry.GetPointer();
}