QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDirected.h
Go to the documentation of this file.
1 #ifndef RDIRECTED_H
2 #define RDIRECTED_H
3 
4 #include <QSharedPointer>
5 
6 #include "RShape.h"
7 
15 class RDirected {
16 public:
17  virtual ~RDirected() {}
18 
19  virtual double getDirection1() const = 0;
20  virtual double getDirection2() const = 0;
21 
22  virtual RVector getStartPoint() const = 0;
23  virtual RVector getEndPoint() const = 0;
24 
25  virtual bool reverse() = 0;
26 
27  virtual void trimStartPoint(const RVector& p) = 0;
28  virtual void trimEndPoint(const RVector& p) = 0;
29 
34  virtual RS::Ending getTrimEnd(const RVector& coord, const RVector& trimPoint) = 0;
35 };
36 
39 Q_DECLARE_METATYPE(QSharedPointer<RDirected>)
40 Q_DECLARE_METATYPE(QSharedPointer<RDirected>*)
41 
42 #endif