MCPcopy Create free account
hub / github.com/MITK/MITK / SetSelectInfo

Method SetSelectInfo

Modules/Core/src/DataManagement/mitkPointSet.cpp:493–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void mitk::PointSet::SetSelectInfo(int position, bool selected, int t)
494{
495 if (this->IndexExists(position, t))
496 {
497 // timeStep to ms
498 TimePointType timeInMS = this->GetTimeGeometry()->TimeStepToTimePoint(t);
499
500 // point
501 Point3D point = this->GetPoint(position, t);
502
503 std::unique_ptr<PointOperation> op;
504 if (selected)
505 {
506 op.reset(new mitk::PointOperation(OpSELECTPOINT, timeInMS, point, position));
507 }
508 else
509 {
510 op.reset(new mitk::PointOperation(OpDESELECTPOINT, timeInMS, point, position));
511 }
512
513 this->ExecuteOperation(op.get());
514 }
515}
516
517mitk::PointSpecificationType mitk::PointSet::GetSpecificationTypeInfo(int position, int t) const
518{

Callers 4

ClearPointListMethod · 0.80
setUpMethod · 0.80
TestSetSelectInfoMethod · 0.80

Calls 5

IndexExistsMethod · 0.95
GetPointMethod · 0.95
ExecuteOperationMethod · 0.95
resetMethod · 0.80
TimeStepToTimePointMethod · 0.45

Tested by 2

setUpMethod · 0.64
TestSetSelectInfoMethod · 0.64