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

Method SetType

isis/src/control/objs/ControlPoint/ControlPoint.cpp:705–722  ·  view source on GitHub ↗

* Updates the control point's type. This updates the last modified attributes * of this point. * * @see PointType * * @param newType The new type this control point should be */

Source from the content-addressed store, hash-verified

703 * @param newType The new type this control point should be
704 */
705 ControlPoint::Status ControlPoint::SetType(PointType newType) {
706 if (type != Fixed && type != Free && type != Constrained) {
707 QString msg = "Invalid Point Enumeration, [" + toString(type) + "], for "
708 "Control Point [" + GetId() + "]";
709 throw IException(IException::Programmer, msg, _FILEINFO_);
710 }
711
712 if (editLock) {
713 return PointLocked;
714 }
715 if (parentNetwork) {
716 parentNetwork->emitPointModified(this, ControlPoint::TypeModified, type, newType);
717 }
718
719 PointModified();
720 type = newType;
721 return Success;
722 }
723
724
725 /**

Callers 15

mainFunction · 0.45
mainFunction · 0.45
createPointMethod · 0.45
createMeasureMethod · 0.45
FindCnetRefMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
BOOST_FOREACHFunction · 0.45
replacePointFunction · 0.45
IsisMainFunction · 0.45
autoseedFunction · 0.45
IsisMainFunction · 0.45

Calls 3

emitPointModifiedMethod · 0.80
toStringFunction · 0.50
IExceptionClass · 0.50

Tested by 4

mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36