Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CToolsViewCad.hpp
Go to the documentation of this file.
1#ifndef LIBS_VIEWCAD_CTOOLSVIEWCAD_HPP_
2#define LIBS_VIEWCAD_CTOOLSVIEWCAD_HPP_
3
4#include "core/defines.hpp"
5#include "math/structs.hpp"
6
7#include <cstdint>
8#include <memory>
9#include <optional>
10#include <set>
11#include <vector>
12
14class CEventMotion;
15class IGraphics;
16
18{
19public:
20 CToolsViewCad() = delete;
21 ~CToolsViewCad() = delete;
22 CToolsViewCad(const CToolsViewCad &other) = delete;
23 CToolsViewCad(CToolsViewCad &&other) = delete;
24 CToolsViewCad &operator=(const CToolsViewCad &other) = delete;
26
27 static void drawMoveCopy(const std::shared_ptr<std::vector<std::shared_ptr<AbstractObjCapture>>> &objsCaptured,
28 const std::set<uint64_t> &indObjsInRectangleOpt, double xBase, double yBase,
29 double xSecond, double ySecond, IGraphics *graphics);
30 static void drawObjsMarked(const std::shared_ptr<std::vector<std::shared_ptr<AbstractObjCapture>>> &objsCaptured,
31 const std::set<uint64_t> &indObjsInRectangleOpt, IGraphics *graphics);
32 static void
33 drawRectangleSelectionObjs(const std::shared_ptr<std::vector<std::shared_ptr<AbstractObjCapture>>> &objsCaptured,
34 const std::set<uint64_t> &indObjsInRectangle, double xFirst, double yFirst,
35 double xSecond, double ySecond, IGraphics *graphics);
36
37 static std::set<uint64_t>
38 getIndObjsInRectangle(const std::shared_ptr<std::vector<std::shared_ptr<AbstractObjCapture>>> &objsCaptured,
39 double xFirst, double yFirst, double xSecond, double ySecond);
40 static void getPointOrthogonal(const CEventMotion *evt, double xFirst, double yFirst, double *xSecond,
41 double *ySecond);
42 static void getPointOrthogonalWorld(CEventMotion *evt, double xFirst, double yFirst, double *xSecond,
43 double *ySecond);
44
46 getWorldPoint(CEventMotion *evt, std::optional<iv::math::geometry::Point2d> previousPoint = std::nullopt);
47
49 getViewRelativePoint(CEventMotion *evt, std::optional<iv::math::geometry::Point2d> previousPoint = std::nullopt);
50};
51
52#endif /* LIBS_VIEWCAD_CTOOLSVIEWCAD_HPP_ */
Definition AbstractObjCapture.hpp:12
Definition CEventMotion.hpp:15
Definition CToolsViewCad.hpp:18
CToolsViewCad & operator=(CToolsViewCad &&other)=delete
static std::set< uint64_t > getIndObjsInRectangle(const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCaptured, double xFirst, double yFirst, double xSecond, double ySecond)
Definition CToolsViewCad.cpp:96
~CToolsViewCad()=delete
static void getPointOrthogonalWorld(CEventMotion *evt, double xFirst, double yFirst, double *xSecond, double *ySecond)
Definition CToolsViewCad.cpp:168
static iv::math::geometry::Point2d getViewRelativePoint(CEventMotion *evt, std::optional< iv::math::geometry::Point2d > previousPoint=std::nullopt)
Definition CToolsViewCad.cpp:223
static void drawObjsMarked(const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCaptured, const std::set< uint64_t > &indObjsInRectangleOpt, IGraphics *graphics)
Definition CToolsViewCad.cpp:55
static iv::math::geometry::Point2d getWorldPoint(CEventMotion *evt, std::optional< iv::math::geometry::Point2d > previousPoint=std::nullopt)
Definition CToolsViewCad.cpp:202
static void getPointOrthogonal(const CEventMotion *evt, double xFirst, double yFirst, double *xSecond, double *ySecond)
Definition CToolsViewCad.cpp:136
CToolsViewCad & operator=(const CToolsViewCad &other)=delete
CToolsViewCad()=delete
CToolsViewCad(CToolsViewCad &&other)=delete
static void drawRectangleSelectionObjs(const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCaptured, const std::set< uint64_t > &indObjsInRectangle, double xFirst, double yFirst, double xSecond, double ySecond, IGraphics *graphics)
Definition CToolsViewCad.cpp:66
static void drawMoveCopy(const std::shared_ptr< std::vector< std::shared_ptr< AbstractObjCapture > > > &objsCaptured, const std::set< uint64_t > &indObjsInRectangleOpt, double xBase, double yBase, double xSecond, double ySecond, IGraphics *graphics)
Definition CToolsViewCad.cpp:30
CToolsViewCad(const CToolsViewCad &other)=delete
Definition IGraphics.hpp:20
Definition structs.hpp:16