Giter Site home page Giter Site logo

umbrellaleaf5 / locus_no_pilotus Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 3.42 MB

Project of four first-year MIPT DAFE/RSE students (for engineering practical work in the second semester) to create a mathematical trajectory calculator in Qt C++

Home Page: https://umbrellaleaf5.github.io/locus_no_pilotus/

License: The Unlicense

CMake 2.75% C++ 95.83% C 0.31% HTML 0.80% Shell 0.30%
cmake cpp doxygen-documentation icecream math qcustomplot qt6 boost open-source qt

locus_no_pilotus's Introduction

  • 🌴 Hi, I’m @UmbrellaLeaf5, my real name is Dmitry Krivoruchko. I'm MIPT student.
  • 🤓 I’m interested in: learning C++ and Python for now, but in future would like to know more languages and features in programming.
  • ✍ I’m currently learning: algorithms on C++, extra libs in Python and introduction to assembly language.
  • 📫 How to reach me: (look in profile)
  • ⚡ Fun fact: I really like Umbrella Leaf from Plant vs. Zombies

locus_no_pilotus's People

Contributors

kirikus avatar mrwh1tef0x avatar romanov-fedor avatar stargazer2005 avatar umbrellaleaf5 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kirikus

locus_no_pilotus's Issues

Weird warnings in math (backend) [-Wdeprecated-copy]

Обнаружены новые варнинги, которые я не знаю, как фиксить
image

текст:

D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp: In static member function 'static math::AdjacencyMatrix math::AdjacencyMatrix::WithExtraRowCol(std::vector<std::vector<double> >)':
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp:16:10: warning: implicitly-declared 'math::AdjacencyMatrix::AdjacencyMatrix(const math::AdjacencyMatrix&)' is deprecated [-Wdeprecated-copy]
   16 |   return m;
      |          ^
In file included from D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp:1:
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.h:35:20: note: because 'math::AdjacencyMatrix' has user-provided 'math::AdjacencyMatrix& math::AdjacencyMatrix::operator=(const math::AdjacencyMatrix&)'
   35 |   AdjacencyMatrix& operator=(const AdjacencyMatrix& m);
      |                    ^~~~~~~~
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp: In member function 'math::AdjacencyMatrix math::AdjacencyMatrix::Minor(std::size_t, std::size_t)':
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp:44:10: warning: implicitly-declared 'math::AdjacencyMatrix::AdjacencyMatrix(const math::AdjacencyMatrix&)' is deprecated [-Wdeprecated-copy]
   44 |   return minor;
      |          ^~~~~
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp:19:18: note: because 'math::AdjacencyMatrix' has user-provided 'math::AdjacencyMatrix& math::AdjacencyMatrix::operator=(const math::AdjacencyMatrix&)'
   19 | AdjacencyMatrix& AdjacencyMatrix::operator=(const AdjacencyMatrix& m) {
      |                  ^~~~~~~~~~~~~~~
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp: In member function 'math::AdjacencyMatrix math::AdjacencyMatrix::Reducted()':
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp:48:31: warning: implicitly-declared 'math::AdjacencyMatrix::AdjacencyMatrix(const math::AdjacencyMatrix&)' is deprecated [-Wdeprecated-copy]
   48 |   AdjacencyMatrix reducted = *this;
      |                               ^~~~
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp:19:18: note: because 'math::AdjacencyMatrix' has user-provided 'math::AdjacencyMatrix& math::AdjacencyMatrix::operator=(const math::AdjacencyMatrix&)'
   19 | AdjacencyMatrix& AdjacencyMatrix::operator=(const AdjacencyMatrix& m) {
      |                  ^~~~~~~~~~~~~~~
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp:50:10: warning: implicitly-declared 'math::AdjacencyMatrix::AdjacencyMatrix(const math::AdjacencyMatrix&)' is deprecated [-Wdeprecated-copy]
   50 |   return reducted;
      |          ^~~~~~~~
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.cpp:19:18: note: because 'math::AdjacencyMatrix' has user-provided 'math::AdjacencyMatrix& math::AdjacencyMatrix::operator=(const math::AdjacencyMatrix&)'
   19 | AdjacencyMatrix& AdjacencyMatrix::operator=(const AdjacencyMatrix& m) {
      |                  ^~~~~~~~~~~~~~~
In file included from D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/travelling_salesmans_problem.h:6,
                 from D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/travelling_salesmans_problem.cpp:1:
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/tspgraph.h: In constructor 'math::TSPNode::TSPNode(const math::AdjacencyMatrix&, std::optional<std::shared_ptr<math::TSPNode> >, std::optional<math::Edge>, std::optional<std::map<long long unsigned int, long long unsigned int> >)':
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/tspgraph.h:38:9: warning: implicitly-declared 'math::AdjacencyMatrix::AdjacencyMatrix(const math::AdjacencyMatrix&)' is deprecated [-Wdeprecated-copy]
   38 |       : matrix{m}, evaluation{m.GetBottomLineEvaluation()} {
      |         ^~~~~~~~~
In file included from D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/travelling_salesmans_problem.h:5:
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/math/littles_algorithm/adjacency_matrix.h:35:20: note: because 'math::AdjacencyMatrix' has user-provided 'math::AdjacencyMatrix& math::AdjacencyMatrix::operator=(const math::AdjacencyMatrix&)'
   35 |   AdjacencyMatrix& operator=(const AdjacencyMatrix& m);
      |                    ^~~~~~~~

Annoying feature with missing "../qcustomplot/qcustomplot.h"

image
image


function(replace_include_qcustomplot_in_autogen BUILD_DIR)
  if(EXISTS "${BUILD_DIR}/main/main_autogen/include/ui_mainwindow.h")
    message(STATUS "Found ${BUILD_DIR}/main/main_autogen/include/ui_mainwindow.h, replacing qcustomplot include")

    # open the file where you need to replace the line in FILE_CONTENT
    file(READ "${BUILD_DIR}/main/main_autogen/include/ui_mainwindow.h" FILE_CONTENT)

    # replace the string using REGEX and write it to MODIFIED_CONTENT
    string(REGEX REPLACE "#include \"../qcustomplot/qcustomplot.h\""
      "#include \"../qcustomplot/lib/qcustomplot.h\"" MODIFIED_CONTENT "${FILE_CONTENT}")

    # rewrite the contents of MODIFIED_CONTENT to the file
    file(WRITE "${BUILD_DIR}/main/main_autogen/include/ui_mainwindow.h" "${MODIFIED_CONTENT}")
  else()
    message(STATUS "warning: ${BUILD_DIR}/main/main_autogen/include does not exist, please build and reconfigure the project")
  endif()
endfunction()

На данный момент это фиксится CMake скриптом и дополнительным перезапуском проекта, но это весьма раздражает... Надо как-нибудь переделать

In file included from D:/Programs/2023-2024/C++/qt/locus_no_pilotus/locus_no_pilotus/main/mainwindow.h:5,
                 from D:/Programs/2023-2024/C++/qt/locus_no_pilotus/build-locus_no_pilotus-MSYS2_MinGW_64_bit-Debug/main/main_autogen/EWIEGA46WW/moc_mainwindow.cpp:9,
                 from D:/Programs/2023-2024/C++/qt/locus_no_pilotus/build-locus_no_pilotus-MSYS2_MinGW_64_bit-Debug/main/main_autogen/mocs_compilation.cpp:6:
D:/Programs/2023-2024/C++/qt/locus_no_pilotus/build-locus_no_pilotus-MSYS2_MinGW_64_bit-Debug/main/main_autogen/include/ui_mainwindow.h:32:10: fatal error: ../qcustomplot/qcustomplot.h: No such file or directory
   32 | #include "../qcustomplot/qcustomplot.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~```

Bug with tables after QMessageBox::critical

Обнаружен новый баг, который я пока не знаю, как фиксить.
При вылетающем варнинге о неправильных действиях пользователя, таблицы перестают влиять на объекты на полотне.
И так до тех пор, пока не будет добавлен новый объект или удалён один из уже существующих

Trajectory.Calculation.2024-05-06.19-38-36.online-video-cutter.com.mp4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.