src/primitives.h

changeset 500
cad8cdc42a64
parent 498
791c831c8020
child 503
bebe09014dd6
equal deleted inserted replaced
499:ebd30d9eb667 500:cad8cdc42a64
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #ifndef PRIMITIVES_H 19 #ifndef LDFORGE_PRIMITIVES_H
20 #define PRIMITIVES_H 20 #define LDFORGE_PRIMITIVES_H
21 21
22 #include "common.h" 22 #include "common.h"
23 #include "types.h" 23 #include "types.h"
24 #include <QRegExp> 24 #include <QRegExp>
25 #include <QDialog> 25 #include <QDialog>
102 102
103 public slots: 103 public slots:
104 void hiResToggled (bool on); 104 void hiResToggled (bool on);
105 }; 105 };
106 106
107 void makeCircle (int segs, int divs, double radius, List< QLineF >& lines);
107 LDFile* generatePrimitive (PrimitiveType type, int segs, int divs, int num); 108 LDFile* generatePrimitive (PrimitiveType type, int segs, int divs, int num);
108 109
109 // Gets a primitive by the given specs. If the primitive cannot be found, it will 110 // Gets a primitive by the given specs. If the primitive cannot be found, it will
110 // be automatically generated. 111 // be automatically generated.
111 LDFile* getPrimitive (PrimitiveType type, int segs, int divs, int num); 112 LDFile* getPrimitive (PrimitiveType type, int segs, int divs, int num);
112 113
113 #endif // PRIMITIVES_H 114 str radialFileName (PrimitiveType type, int segs, int divs, int num);
115
116 #endif // LDFORGE_PRIMITIVES_H

mercurial