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