Salome HOME
Issue #1860: fix end lines with spaces
[modules/shaper.git] / src / GeomValidators / GeomValidators_Plugin.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 #include <GeomValidators_Plugin.h>
4
5 #include <GeomValidators_BodyShapes.h>
6 #include <GeomValidators_BooleanArguments.h>
7 #include <GeomValidators_ConstructionComposite.h>
8 #include <GeomValidators_Different.h>
9 #include <GeomValidators_DifferentShapes.h>
10 #include <GeomValidators_Face.h>
11 #include <GeomValidators_Finite.h>
12 #include <GeomValidators_PartitionArguments.h>
13 #include <GeomValidators_ShapeType.h>
14 #include <GeomValidators_ZeroOffset.h>
15 #include <GeomValidators_IntersectionSelection.h>
16 #include <GeomValidators_FeatureKind.h>
17 #include <GeomValidators_MinObjectsSelected.h>
18
19 #include <ModelAPI_Session.h>
20 #include <ModelAPI_Validator.h>
21
22 // the only created instance of this plugin
23 static GeomValidators_Plugin* MY_GEOMVALIDATORS_INSTANCE = new GeomValidators_Plugin();
24
25 GeomValidators_Plugin::GeomValidators_Plugin()
26 {
27   // register validators
28   SessionPtr aMgr = ModelAPI_Session::get();
29   ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();
30
31   aFactory->registerValidator("GeomValidators_BodyShapes", new GeomValidators_BodyShapes);
32   aFactory->registerValidator("GeomValidators_BooleanArguments",
33                               new GeomValidators_BooleanArguments);
34   aFactory->registerValidator("GeomValidators_ConstructionComposite",
35                               new GeomValidators_ConstructionComposite);
36   aFactory->registerValidator("GeomValidators_Different", new GeomValidators_Different);
37   aFactory->registerValidator("GeomValidators_DifferentShapes",
38                               new GeomValidators_DifferentShapes);
39   aFactory->registerValidator("GeomValidators_Face", new GeomValidators_Face);
40   aFactory->registerValidator("GeomValidators_Finite", new GeomValidators_Finite);
41   aFactory->registerValidator("GeomValidators_PartitionArguments",
42                               new GeomValidators_PartitionArguments);
43   aFactory->registerValidator("GeomValidators_ShapeType", new GeomValidators_ShapeType);
44   aFactory->registerValidator("GeomValidators_ZeroOffset", new GeomValidators_ZeroOffset);
45   aFactory->registerValidator("GeomValidators_IntersectionSelection",
46                               new GeomValidators_IntersectionSelection);
47   aFactory->registerValidator("GeomValidators_FeatureKind", new GeomValidators_FeatureKind);
48   aFactory->registerValidator("GeomValidators_MinObjectsSelected",
49                               new GeomValidators_MinObjectsSelected);
50
51   // register this plugin
52   ModelAPI_Session::get()->registerPlugin(this);
53 }
54
55 FeaturePtr GeomValidators_Plugin::createFeature(std::string theFeatureID)
56 {
57   // feature of such kind is not found
58   return FeaturePtr();
59 }