MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / clear

Method clear

isis/src/control/objs/ControlNet/ControlNet.cpp:178–203  ·  view source on GitHub ↗

* @brief Clear the contents of this object * * The contents of the ControlNet object are deleted. The internal variables * that hold the contents are not. See the destructor. * * @author Kris Becker */

Source from the content-addressed store, hash-verified

176 * @author Kris Becker
177 */
178 void ControlNet::clear() {
179
180 // Now must also own points to delete them.
181 if (points) {
182 if (GetNumPoints() > 0) {
183 if (m_ownPoints) {
184 QHashIterator<QString, ControlPoint*> i(*points);
185 while (i.hasNext()) {
186 i.next();
187 delete(*points)[i.key()];
188 (*points)[i.key()] = NULL;
189 }
190 }
191 }
192 points->clear();
193 }
194
195 m_vertexMap.clear();
196 m_controlGraph.clear();
197
198 if (pointIds) {
199 pointIds->clear();
200 }
201
202 return;
203 }
204
205
206 /**

Callers 15

initMethod · 0.45
readBundleSettingsMethod · 0.45
mainFunction · 0.45
initializeVitalsMethod · 0.45
readProtobufV0001Method · 0.45
createPointMethod · 0.45
setSolveSettingsMethod · 0.45
computeImagePartialsMethod · 0.45
computeRHSPartialsMethod · 0.45
PrintableClassDataMethod · 0.45
IsisMainFunction · 0.45

Calls 2

nextMethod · 0.45
keyMethod · 0.45

Tested by 3

mainFunction · 0.36
IsisMainFunction · 0.36
mainFunction · 0.36