QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RDirected.h
Go to the documentation of this file.
1
20
#ifndef RDIRECTED_H
21
#define RDIRECTED_H
22
23
#include "
../core_global.h
"
24
25
#include <QSharedPointer>
26
34
class
QCADCORE_EXPORT
RDirected
{
35
public
:
36
virtual
~RDirected
() {}
37
38
// virtual double getDirection1() const = 0;
39
// virtual double getDirection2() const = 0;
40
41
// virtual RS::Side getSideOfPoint(const RVector& point) const = 0;
42
43
// virtual RVector getStartPoint() const = 0;
44
// virtual RVector getEndPoint() const = 0;
45
// virtual RVector getMiddlePoint() const = 0;
46
47
// virtual bool reverse() = 0;
48
49
// /**
50
// * \param trimPoint Trim start point or end point to this coordinate.
51
// * \param clickPoint Point that was clicked by user.
52
// * \param extend True if the shape is to be extended.
53
// * Used for polylines to determine that the first segment has to be trimmed even if another segment was clicked.
54
// */
55
// virtual bool trimStartPoint(const RVector& trimPoint, const RVector& clickPoint = RVector::invalid, bool extend = false) = 0;
56
// virtual bool trimStartPoint(double trimDist) {
57
// return trimStartPoint();
58
// }
59
60
// /**
61
// * \param trimPoint Trim start point or end point to this coordinate.
62
// * \param clickPoint Point that was clicked by user.
63
// * \param extend True if the shape is to be extended.
64
// * Used for polylines to determine that the last segment has to be trimmed even if another segment was clicked.
65
// */
66
// virtual bool trimEndPoint(const RVector& trimPoint, const RVector& clickPoint = RVector::invalid, bool extend = false) = 0;
67
68
// /**
69
// * \param trimPoint Trim start point or end point to this coordinate.
70
// * \param clickPoint Point that was clicked by user.
71
// */
72
// virtual RS::Ending getTrimEnd(const RVector& trimPoint, const RVector& clickPoint) = 0;
73
74
// /**
75
// * \return Distance of given point to start point of shape along shape.
76
// * \param p Point (assumed to be on shape).
77
// */
78
// virtual double getDistanceFromStart(const RVector& p) const {
79
// Q_UNUSED(p)
80
// return RMAXDOUBLE;
81
// }
82
83
// /**
84
// * \return All possible distances of given point to start point of shape along shape.
85
// * \param p Point (assumed to be on shape).
86
// */
87
// virtual QList<double> getDistancesFromStart(const RVector& p) const {
88
// return QList<double>() << getDistanceFromStart(p);
89
// }
90
};
91
92
Q_DECLARE_METATYPE
(
RDirected
*)
93
Q_DECLARE_METATYPE
(
const
RDirected
*)
94
Q_DECLARE_METATYPE
(QSharedPointer<RDirected>)
95
Q_DECLARE_METATYPE
(QSharedPointer<RDirected>*)
96
97
#endif
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
RDirected
Copyright (c) 2011-2018 by Andrew Mustun.
Definition
RDirected.h:34
RDirected::~RDirected
virtual ~RDirected()
Definition
RDirected.h:36
core_global.h
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition
core_global.h:10
src
core
math
RDirected.h
Generated on Fri Jul 18 2025 09:41:50 for QCAD by
1.10.0