122{
123 SoCooperativeSelection *
selection =
static_cast<SoCooperativeSelection*
>(
sel);
125 std::cout<<"IVP13DSystem::Imp::finished_changeselection Error: Could not find selection pointer!"<<std::endl;
126 return;
127 }
128
130 if (!system) {
131 std::cout<<"IVP13DSystem::Imp::finished_changeselection Error: Could not find system pointer!"<<std::endl;
132 return;
133 }
134
136
137 if (
selection->policy.getValue()==SoSelection::SINGLE)
138 return;
139
140
142 std::cout<<"IVP13DSystem::Imp::finished_changeselection Error: Could not find last selection path list!"<<std::endl;
143 return;
144 }
145
147 bool changed = false;
148 if (nlastselection!=
selection->getList()->getLength()) {
149 changed = true;
150 } else {
151 for (
int i = 0;
i <
selection->getList()->getLength(); ++
i) {
153 changed = true;
154 break;
155 }
156 }
157 }
158 if (!changed) {
160 return;
161 }
162
163
164
165
166 if (
selection->getList()->getLength()>nlastselection) {
168 }
169
171 return;
172
173 QSet<SoNode*> selnodes;
174 QSet<SoPath*> selpaths;
176 for (
int i = 0;
i <
n; ++
i) {
178 if (!path)
179 continue;
180 SoFullPath *fPath =
static_cast<SoFullPath *
>(
path);
181 SoNode *
node = fPath->getTail();
182 if (!node)
183 continue;
184 selpaths << fPath;
186 }
187
189}
std::map< SoCooperativeSelection *, SoPathList > selection2lastpathlist
void itemFromSystemSelected()
virtual void userChangedSelection(SoCooperativeSelection *, const QSet< SoNode * > &, QSet< SoPath * >)
path
python interpreter configuration --------------------------------------—