QCAD
Open Source 2D CAD
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
virtual ~RExplodable()
Definition: RExplodable.h:42
#define QCADCORE_EXPORT
Definition: core_global.h:10
Q_DECLARE_METATYPE(RMath *)
#define RDEFAULT_MIN1
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RExplodable.h:30
Interface for explodable shape classes.
Definition: RExplodable.h:40