Loading isis/src/control/objs/ControlNetVersioner/ControlPointV0001.cpp +14 −14 Original line number Diff line number Diff line Loading @@ -109,8 +109,8 @@ namespace Isis { && m_pointData->has_adjustedy() && m_pointData->has_adjustedz() ) { m_pointData->set_apriorix( m_pointData->adjustedx() ); m_pointData->set_aprioriy( m_pointData->adjustedx() ); m_pointData->set_aprioriz( m_pointData->adjustedx() ); m_pointData->set_aprioriy( m_pointData->adjustedy() ); m_pointData->set_aprioriz( m_pointData->adjustedz() ); } else { QString msg = "Unable to find apriori surface point values for the control point."; Loading Loading @@ -463,7 +463,7 @@ namespace Isis { /** * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 2 * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -471,7 +471,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -494,7 +494,7 @@ namespace Isis { /** * This convenience method takes a double value from a PvlKeyword and copies it into a version 2 * This convenience method takes a double value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -502,7 +502,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -522,7 +522,7 @@ namespace Isis { /** * This convenience method takes a string value from a PvlKeyword and copies it into a version 2 * This convenience method takes a string value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -530,7 +530,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -550,7 +550,7 @@ namespace Isis { /** * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 2 * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -558,7 +558,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -581,7 +581,7 @@ namespace Isis { /** * This convenience method takes a double value from a PvlKeyword and copies it into a version 2 * This convenience method takes a double value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -589,7 +589,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -609,7 +609,7 @@ namespace Isis { /** * This convenience method takes a string value from a PvlKeyword and copies it into a version 2 * This convenience method takes a string value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -617,7 +617,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading isis/src/control/objs/ControlNetVersioner/ControlPointV0002.cpp +22 −14 Original line number Diff line number Diff line Loading @@ -259,8 +259,16 @@ namespace Isis { } // TODO finish this once Version 1 is created ControlPointV0002::ControlPointV0002(const ControlPointV0001 &oldPoint); /** * Create a version 2 control point from a version 1 control point. The two versions actually * store the same values, so all this does is copy the internal protobuf object. * * @param oldPoint The old version 1 control point. */ ControlPointV0002::ControlPointV0002(ControlPointV0001 &oldPoint) : m_pointData(oldPoint->pointData()) { } /** Loading @@ -283,7 +291,7 @@ namespace Isis { /** * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 2 * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -291,7 +299,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -314,7 +322,7 @@ namespace Isis { /** * This convenience method takes a double value from a PvlKeyword and copies it into a version 2 * This convenience method takes a double value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -322,7 +330,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -342,7 +350,7 @@ namespace Isis { /** * This convenience method takes a string value from a PvlKeyword and copies it into a version 2 * This convenience method takes a string value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -350,7 +358,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -370,7 +378,7 @@ namespace Isis { /** * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 2 * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -378,7 +386,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -401,7 +409,7 @@ namespace Isis { /** * This convenience method takes a double value from a PvlKeyword and copies it into a version 2 * This convenience method takes a double value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -409,7 +417,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -429,7 +437,7 @@ namespace Isis { /** * This convenience method takes a string value from a PvlKeyword and copies it into a version 2 * This convenience method takes a string value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -437,7 +445,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading isis/src/control/objs/ControlNetVersioner/ControlPointV0003.h +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ #include <QSharedPointer> #include "QSharedPointer<ControlPointFileEntryV0002>.pb.h" #include "ControlPointFileEntryV0002.pb.h" namespace Isis { class ControlPointV0002; Loading Loading
isis/src/control/objs/ControlNetVersioner/ControlPointV0001.cpp +14 −14 Original line number Diff line number Diff line Loading @@ -109,8 +109,8 @@ namespace Isis { && m_pointData->has_adjustedy() && m_pointData->has_adjustedz() ) { m_pointData->set_apriorix( m_pointData->adjustedx() ); m_pointData->set_aprioriy( m_pointData->adjustedx() ); m_pointData->set_aprioriz( m_pointData->adjustedx() ); m_pointData->set_aprioriy( m_pointData->adjustedy() ); m_pointData->set_aprioriz( m_pointData->adjustedz() ); } else { QString msg = "Unable to find apriori surface point values for the control point."; Loading Loading @@ -463,7 +463,7 @@ namespace Isis { /** * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 2 * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -471,7 +471,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -494,7 +494,7 @@ namespace Isis { /** * This convenience method takes a double value from a PvlKeyword and copies it into a version 2 * This convenience method takes a double value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -502,7 +502,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -522,7 +522,7 @@ namespace Isis { /** * This convenience method takes a string value from a PvlKeyword and copies it into a version 2 * This convenience method takes a string value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -530,7 +530,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -550,7 +550,7 @@ namespace Isis { /** * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 2 * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -558,7 +558,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -581,7 +581,7 @@ namespace Isis { /** * This convenience method takes a double value from a PvlKeyword and copies it into a version 2 * This convenience method takes a double value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -589,7 +589,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -609,7 +609,7 @@ namespace Isis { /** * This convenience method takes a string value from a PvlKeyword and copies it into a version 2 * This convenience method takes a string value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -617,7 +617,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading
isis/src/control/objs/ControlNetVersioner/ControlPointV0002.cpp +22 −14 Original line number Diff line number Diff line Loading @@ -259,8 +259,16 @@ namespace Isis { } // TODO finish this once Version 1 is created ControlPointV0002::ControlPointV0002(const ControlPointV0001 &oldPoint); /** * Create a version 2 control point from a version 1 control point. The two versions actually * store the same values, so all this does is copy the internal protobuf object. * * @param oldPoint The old version 1 control point. */ ControlPointV0002::ControlPointV0002(ControlPointV0001 &oldPoint) : m_pointData(oldPoint->pointData()) { } /** Loading @@ -283,7 +291,7 @@ namespace Isis { /** * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 2 * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -291,7 +299,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -314,7 +322,7 @@ namespace Isis { /** * This convenience method takes a double value from a PvlKeyword and copies it into a version 2 * This convenience method takes a double value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -322,7 +330,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -342,7 +350,7 @@ namespace Isis { /** * This convenience method takes a string value from a PvlKeyword and copies it into a version 2 * This convenience method takes a string value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -350,7 +358,7 @@ namespace Isis { * @param container The PvlContainer representation of the control point that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param point[out] The version 2 protobuf representation of the control point that the value * @param point[out] The version 1 protobuf representation of the control point that the value * will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -370,7 +378,7 @@ namespace Isis { /** * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 2 * This convenience method takes a boolean value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -378,7 +386,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -401,7 +409,7 @@ namespace Isis { /** * This convenience method takes a double value from a PvlKeyword and copies it into a version 2 * This convenience method takes a double value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -409,7 +417,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be copied into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading @@ -429,7 +437,7 @@ namespace Isis { /** * This convenience method takes a string value from a PvlKeyword and copies it into a version 2 * This convenience method takes a string value from a PvlKeyword and copies it into a version 1 * protobuf field. * * If the keyword doesn't exist, this does nothing. Loading @@ -437,7 +445,7 @@ namespace Isis { * @param container The PvlContainer representation of the control measure that contains the * PvlKeyword. * @param keyName The name of the keyword to be copied. * @param[out] measure The version 2 protobuf representation of the control measure that the * @param[out] measure The version 1 protobuf representation of the control measure that the * value will be into. * @param setter The protobuf mutator method that sets the value of the field in the protobuf * representation. Loading
isis/src/control/objs/ControlNetVersioner/ControlPointV0003.h +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ #include <QSharedPointer> #include "QSharedPointer<ControlPointFileEntryV0002>.pb.h" #include "ControlPointFileEntryV0002.pb.h" namespace Isis { class ControlPointV0002; Loading