QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RExplodable.h
Go to the documentation of this file.
1 
20 #ifndef REXPLODABLE_H
21 #define REXPLODABLE_H
22 
23 #include "../core_global.h"
24 
25 #include <QSharedPointer>
26 
27 #include "RShape.h"
28 
29 #ifndef RDEFAULT_MIN1
30 #define RDEFAULT_MIN1 -1
31 #endif
32 
41 public:
42  virtual ~RExplodable() {}
43  virtual QList<QSharedPointer<RShape> > getExploded(int segments = RDEFAULT_MIN1) const = 0;
44 };
45 
48 Q_DECLARE_METATYPE(QSharedPointer<RExplodable>)
49 Q_DECLARE_METATYPE(QSharedPointer<RExplodable>*)
50 
51 #endif