+++ /dev/null
-#ifndef __CREATION_H__
-#define __CREATION_H__
-
-#include <QtCore>
-#include "vector.h"
-
-class Arc;
-class Block;
-class BlockData;
-class Circle;
-class Document;
-class Drawing;
-class Entity;
-class EntityContainer;
-class GraphicView;
-class Image;
-class ImageData;
-class Insert;
-class InsertData;
-class Line;
-
-/**
- * Data needed to insert library items.
- */
-struct LibraryInsertData
-{
- QString file;
- Vector insertionPoint;
- double factor;
- double angle;
-};
-
-/**
- * Class for the creation of new entities.
- * This class is bound to an entity container in which the
- * entities are stored.
- *
- * @author Andrew Mustun
- */
-class Creation
-{
- public:
- Creation(EntityContainer * container, GraphicView * graphicView = NULL,
- bool handleUndo = true);
-
- Entity * createParallelThrough(const Vector & coord, int number,
- Entity * e);
-
- Entity * createParallel(const Vector & coord, double distance,
- int number, Entity * e);
-
- Line * createParallelLine(const Vector & coord, double distance, int number,
- Line * e);
-
- Arc * createParallelArc(const Vector & coord, double distance, int number,
- Arc * e);
-
- Circle * createParallelCircle(const Vector & coord, double distance, int number,
- Circle * e);
-
- Line * createBisector(const Vector & coord1, const Vector & coord2, double length,
- int num, Line * l1, Line * l2);
-
- Line * createTangent1(const Vector & coord, const Vector & point, Entity * circle);
-
- Line * createTangent2(const Vector & coord, Entity * circle1, Entity * circle2);
-
- Line * createLineRelAngle(const Vector & coord, Entity * entity,
- double angle, double length);
-
- Line * createPolygon(const Vector & center, const Vector & corner, int number);
-
- Line * createPolygon2(const Vector & corner1, const Vector & corner2, int number);
-
- Insert * createInsert(InsertData & data);
-
- Image * createImage(ImageData & data);
-
- Block * createBlock(const BlockData & data, const Vector & referencePoint,
- const bool remove);
-
- Insert * createLibraryInsert(LibraryInsertData & data);
-
- //void createPoint(const Vector& p);
- //void createLine2P(const Vector& p1, const Vector& p2);
- //void createRectangle(const Vector& e1, const Vector& e2);
- //Polyline* createPolyline(const Vector& p);
-
- protected:
- EntityContainer * container;
- Drawing * graphic;
- Document * document;
- GraphicView * graphicView;
- bool handleUndo;
-};
-
-#endif