18 this->varInteractionRadius()->connect(
pointInteractor->varInteractionRadius());
22 this->varToggleIndexOutput()->connect(
pointInteractor->varToggleIndexOutput());
28 auto pointRender1 = std::make_shared<GLPointVisualModule>();
29 this->varPointSelectedSize()->connect(pointRender1->varPointSize());
30 pointRender1->setColor(
Color(1.0f, 0.0f, 0.0f));
31 this->
pointInteractor->outSelectedPointSet()->connect(pointRender1->inPointSet());
34 auto pointRender2 = std::make_shared<GLPointVisualModule>();
35 this->varPointOtherSize()->connect(pointRender2->varPointSize());
36 pointRender2->setColor(
Color(0.0f, 0.0f, 1.0f));
37 this->
pointInteractor->outOtherPointSet()->connect(pointRender2->inPointSet());
40 this->varInteractionRadius()->setRange(0.001f , 0.2f);
41 this->varInteractionRadius()->setValue(0.01f);
42 this->varPointSelectedSize()->setRange(0.0f, 0.1f);
43 this->varPointOtherSize()->setRange(0.0f,0.1f);
47 this->varPickingType()->attach(callback2);
51 this->varMultiSelectionType()->attach(callback3);
81 if (this->varPickingType()->getValue() == PickingTypeSelection::Click)
83 this->
pointInteractor->varPointPickingType()->getDataPtr()->setCurrentKey(0);
85 else if (this->varPickingType()->getValue() == PickingTypeSelection::Drag)
87 this->
pointInteractor->varPointPickingType()->getDataPtr()->setCurrentKey(1);
89 else if (this->varPickingType()->getValue() == PickingTypeSelection::Both)
91 this->
pointInteractor->varPointPickingType()->getDataPtr()->setCurrentKey(2);
99 if (this->varMultiSelectionType()->getValue() == MultiSelectionType::OR)
101 this->
pointInteractor->varMultiSelectionType()->getDataPtr()->setCurrentKey(0);
103 else if (this->varMultiSelectionType()->getValue() == MultiSelectionType::XOR)
105 this->
pointInteractor->varMultiSelectionType()->getDataPtr()->setCurrentKey(1);
107 else if (this->varMultiSelectionType()->getValue() == MultiSelectionType::C)
109 this->
pointInteractor->varMultiSelectionType()->getDataPtr()->setCurrentKey(2);