本文整理汇总了C++中mitk::pointset::Pointer::GetSelectInfo方法的典型用法代码示例。如果您正苦于以下问题:C++ Pointer::GetSelectInfo方法的具体用法?C++ Pointer::GetSelectInfo怎么用?C++ Pointer::GetSelectInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mitk::pointset::Pointer
的用法示例。
在下文中一共展示了Pointer::GetSelectInfo方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TestOpDeselectPoint
void TestOpDeselectPoint()
{
//check OpDESELECTPOINT ExecuteOperation
mitk::Point3D point4(0.);
doOp = new mitk::PointOperation(mitk::OpDESELECTPOINT, point4,4);
pointSet->ExecuteOperation(doOp);
CPPUNIT_ASSERT_EQUAL_MESSAGE("check PointOperation OpDESELECTPOINT ",
false, pointSet->GetSelectInfo(4));
CPPUNIT_ASSERT_EQUAL_MESSAGE("check GetNumeberOfSelected ",
true, pointSet->GetNumberOfSelected() == 0 );
/*
if (pointSet->GetSelectInfo(4))
{
std::cout<<"[FAILED]"<<std::endl;
return EXIT_FAILURE;
}
delete doOp;
std::cout<<"[PASSED]"<<std::endl;
if(pointSet->GetNumberOfSelected() != 0)
{
std::cout<<"[FAILED]"<<std::endl;
return EXIT_FAILURE;
}
std::cout<<"[PASSED]"<<std::endl;
*/
}
示例2: EvaluateState
void EvaluateState(std::string &refPsFile, mitk::PointSet::Pointer ps, int selected)
{
mitk::PointSet::Pointer refPs = dynamic_cast<mitk::PointSet*>(mitk::IOUtil::Load(refPsFile)[0].GetPointer());
refPs->UpdateOutputInformation();
ps->UpdateOutputInformation();
MITK_ASSERT_EQUAL(ps, refPs, "");
MITK_TEST_CONDITION_REQUIRED(true, "Test against reference point set.");
MITK_TEST_CONDITION_REQUIRED(ps->GetNumberOfSelected() == 1, "One selected point.");
MITK_TEST_CONDITION_REQUIRED(ps->GetSelectInfo(selected), "Testing if proper point is selected.");
}
示例3: TestSetSelectInfo
void TestSetSelectInfo()
{
//check SetSelectInfo
pointSet->SetSelectInfo(4, true);
CPPUNIT_ASSERT_EQUAL_MESSAGE("check SetSelectInfo",
true, pointSet->GetSelectInfo(4));
/*
if (!pointSet->GetSelectInfo(2))
{
std::cout<<"[FAILED]"<<std::endl;
return EXIT_FAILURE;
}
delete doOp;
std::cout<<"[PASSED]"<<std::endl;
*/
}
示例4: TestPointOperationOpSelectPoint
void TestPointOperationOpSelectPoint()
{
mitk::Point3D point3(0.);
//check OpSELECTPOINT ExecuteOperation
doOp = new mitk::PointOperation(mitk::OpSELECTPOINT, point3,3);
pointSet->ExecuteOperation(doOp);
CPPUNIT_ASSERT_EQUAL_MESSAGE("check PointOperation OpSELECTPOINT ",
true, pointSet->GetSelectInfo(3));
/*
if (!pointSet->GetSelectInfo(4))
{
std::cout<<"[FAILED]"<<std::endl;
return EXIT_FAILURE;
}
delete doOp;
std::cout<<"[PASSED]"<<std::endl;
*/
}