Skip to content

Commit

Permalink
C++ Fix style using clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cattermole committed Oct 16, 2024
1 parent 22edc32 commit 1c071d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
12 changes: 8 additions & 4 deletions lib/cppbind/mmlens/src/distortion_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class Distortion3deClassic : public Distortion {
return mmdata::Vector2D(out_point_dn[0], out_point_dn[1]);
}

mmdata::Vector2D map_inverse(const mmdata::Vector2D in_point_dn) const override {
mmdata::Vector2D map_inverse(
const mmdata::Vector2D in_point_dn) const override {
ldpk::vec2d out_point_dn = m_distortion.map_inverse(
ldpk::vec2d(in_point_dn.x_, in_point_dn.y_));
return mmdata::Vector2D(out_point_dn[0], out_point_dn[1]);
Expand Down Expand Up @@ -128,7 +129,8 @@ class Distortion3deRadialStdDeg4 : public Distortion {
return mmdata::Vector2D(out_point_dn[0], out_point_dn[1]);
}

mmdata::Vector2D map_inverse(const mmdata::Vector2D in_point_dn) const override {
mmdata::Vector2D map_inverse(
const mmdata::Vector2D in_point_dn) const override {
ldpk::vec2d out_point_dn = m_radial.map_inverse(
m_cylindric.eval_inv(ldpk::vec2d(in_point_dn.x_, in_point_dn.y_)));
return mmdata::Vector2D(out_point_dn[0], out_point_dn[1]);
Expand Down Expand Up @@ -183,7 +185,8 @@ class Distortion3deAnamorphicStdDeg4 : public Distortion {
return mmdata::Vector2D(out_point_dn[0], out_point_dn[1]);
}

mmdata::Vector2D map_inverse(const mmdata::Vector2D in_point_dn) const override {
mmdata::Vector2D map_inverse(
const mmdata::Vector2D in_point_dn) const override {
ldpk::vec2d out_point_dn =
m_pixel_aspect_and_rotation.eval(m_anamorphic.map_inverse(
m_rotation_squeeze_xy_pixel_aspect.eval_inv(
Expand Down Expand Up @@ -259,7 +262,8 @@ class Distortion3deAnamorphicStdDeg4Rescaled : public Distortion {
return mmdata::Vector2D(out_point_dn[0], out_point_dn[1]);
}

mmdata::Vector2D map_inverse(const mmdata::Vector2D in_point_dn) const override {
mmdata::Vector2D map_inverse(
const mmdata::Vector2D in_point_dn) const override {
ldpk::vec2d out_point_dn =
m_pixel_aspect_rescale_and_rotation.eval(m_anamorphic.map_inverse(
m_rotation_squeeze_xy_rescale_pixel_aspect.eval_inv(
Expand Down
6 changes: 3 additions & 3 deletions src/mmSolver/adjust/adjust_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ bool get_initial_parameters(const int numberOfParameters,

bool set_maya_attribute_values(
const int numberOfParameters,
std::vector<std::pair<int, int> > &paramToAttrList, const AttrPtrList &attrList,
std::vector<double> &paramList, MTimeArray &frameList, MDGModifier &dgmod,
MAnimCurveChange &curveChange);
std::vector<std::pair<int, int> > &paramToAttrList,
const AttrPtrList &attrList, std::vector<double> &paramList,
MTimeArray &frameList, MDGModifier &dgmod, MAnimCurveChange &curveChange);

bool compute_error_stats(const int numberOfMarkerErrors,
const std::vector<double> &errorDistanceList,
Expand Down
3 changes: 2 additions & 1 deletion src/mmSolver/shape/ImagePlaneUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ void calculate_node_camera_size_string(MDagPath &objPath,
double width = 0.0;
double height = 0.0;

MStatus status = getNodeAttr(objPath, draw_camera_size_attr, out_draw_camera_size);
MStatus status =
getNodeAttr(objPath, draw_camera_size_attr, out_draw_camera_size);
CHECK_MSTATUS(status);

status = getNodeAttr(objPath, camera_width_inch_attr, width);
Expand Down

0 comments on commit 1c071d8

Please sign in to comment.