]> Shamusworld >> Repos - architektonas/blob - src/base/rs_preview.h
Refactored CAD tool bars to use predefined actions.
[architektonas] / src / base / rs_preview.h
1 #ifndef RS_PREVIEW_H
2 #define RS_PREVIEW_H
3
4 #include "rs_entitycontainer.h"
5
6 class RS_Entity;
7
8 /**
9  * This class supports previewing. The RS_Snapper class uses
10  * an instance of RS_Preview to preview entities, ranges,
11  * lines, arcs, ... on the fly.
12  *
13  * @author Andrew Mustun
14  */
15 class RS_Preview: public RS_EntityContainer
16 {
17         public:
18                 RS_Preview(RS_EntityContainer * parent = NULL);
19                 ~RS_Preview();
20
21                 virtual void addEntity(RS_Entity * entity);
22                 void addCloneOf(RS_Entity * entity);
23                 virtual void addSelectionFrom(RS_EntityContainer & container);
24                 virtual void addAllFrom(RS_EntityContainer & container);
25                 virtual void addStretchablesFrom(RS_EntityContainer & container,
26                         const Vector & v1, const Vector & v2);
27
28         private:
29                 int maxEntities;
30 };
31
32 #endif