本文整理汇总了C++中mitk::surface::Pointer::Clone方法的典型用法代码示例。如果您正苦于以下问题:C++ Pointer::Clone方法的具体用法?C++ Pointer::Clone怎么用?C++ Pointer::Clone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mitk::surface::Pointer
的用法示例。
在下文中一共展示了Pointer::Clone方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Equal_DifferentPoints_ReturnsFalse
void Equal_DifferentPoints_ReturnsFalse()
{
mitk::Surface::Pointer surfaceWithADifferentPoint = m_Surface3D->Clone();
//modify points. m_Surface3D contains m_PointsOne
surfaceWithADifferentPoint->GetVtkPolyData()->SetPoints( m_PointsTwo );
MITK_ASSERT_NOT_EQUAL( m_Surface3D, surfaceWithADifferentPoint, "A surface with a single timestep and different points should not be equal.");
}
示例2: Equal_CloneAndOriginalTwoTimesteps_ReturnsTrue
void Equal_CloneAndOriginalTwoTimesteps_ReturnsTrue()
{
MITK_ASSERT_EQUAL( m_Surface3DTwoTimeSteps, m_Surface3DTwoTimeSteps->Clone(), "A two timestep clone should be equal to its original.");
}
示例3: Equal_CloneAndOriginalOneTimestep_ReturnsTrue
void Equal_CloneAndOriginalOneTimestep_ReturnsTrue()
{
MITK_ASSERT_EQUAL( m_Surface3D, m_Surface3D->Clone(), "A one timestep clone should be equal to its original.");
}