QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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
41public:
42 virtual ~RExplodable() {}
43 virtual QList<QSharedPointer<RShape> > getExploded(int segments = RDEFAULT_MIN1) const = 0;
44};
45
48Q_DECLARE_METATYPE(QSharedPointer<RExplodable>)
49Q_DECLARE_METATYPE(QSharedPointer<RExplodable>*)
50
51#endif
#define RDEFAULT_MIN1
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RExplodable.h:30
Q_DECLARE_METATYPE(RMath *)
Interface for explodable shape classes.
Definition RExplodable.h:40
virtual QList< QSharedPointer< RShape > > getExploded(int segments=RDEFAULT_MIN1) const =0
virtual ~RExplodable()
Definition RExplodable.h:42
#define QCADCORE_EXPORT
Definition core_global.h:10