Salome HOME
Add Mirror and fix tests
[modules/shaper.git] / src / SketchAPI / SketchAPI_Mirror.cpp
1 // Name   : SketchAPI_Mirror.cpp
2 // Purpose: 
3 //
4 // History:
5 // 16/06/16 - Sergey POKHODENKO - Creation of the file
6
7 //--------------------------------------------------------------------------------------
8 #include "SketchAPI_Mirror.h"
9 //--------------------------------------------------------------------------------------
10 #include <ModelHighAPI_Selection.h>
11 #include <ModelHighAPI_Tools.h>
12 //--------------------------------------------------------------------------------------
13 SketchAPI_Mirror::SketchAPI_Mirror(
14     const std::shared_ptr<ModelAPI_Feature> & theFeature)
15 : SketchAPI_SketchEntity(theFeature)
16 {
17   initialize();
18 }
19
20 SketchAPI_Mirror::SketchAPI_Mirror(
21     const std::shared_ptr<ModelAPI_Feature> & theFeature,
22     const ModelHighAPI_RefAttr & theMirrorLine,
23     const std::list<std::shared_ptr<ModelAPI_Object> > & theObjects)
24 : SketchAPI_SketchEntity(theFeature)
25 {
26   if (initialize()) {
27     fillAttribute(theMirrorLine, mirrorLine());
28     fillAttribute(theObjects, mirrorList());
29
30     execute();
31   }
32 }
33
34 SketchAPI_Mirror::~SketchAPI_Mirror()
35 {
36
37 }
38
39 //--------------------------------------------------------------------------------------