X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fcreation.h;fp=src%2Fbase%2Fcreation.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=3492f48db75449c6cad25693e0ce53c3cb35da32;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/creation.h b/src/base/creation.h deleted file mode 100644 index 3492f48..0000000 --- a/src/base/creation.h +++ /dev/null @@ -1,97 +0,0 @@ -#ifndef __CREATION_H__ -#define __CREATION_H__ - -#include -#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