itom  4.1.0
shapeDObject.h
1 /* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut fuer Technische Optik (ITO),
5 Universitaet Stuttgart, Germany
6 
7 This file is part of itom and its software development toolkit (SDK).
8 
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13 
14 In addition, as a special exception, the Institut fuer Technische
15 Optik (ITO) gives you certain additional rights.
16 These rights are described in the ITO LGPL Exception version 1.0,
17 which can be found in the file LGPL_EXCEPTION.txt in this package.
18 
19 itom is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
22 General Public Licence for more details.
23 
24 You should have received a copy of the GNU Library General Public License
25 along with itom. If not, see <http://www.gnu.org/licenses/>.
26 *********************************************************************** */
27 
28 #ifndef SHAPEDOBJECT_H
29 #define SHAPEDOBJECT_H
30 
31 #include "typeDefs.h"
32 #include "../shape/shapeCommon.h"
33 #include "../common/shape.h"
34 
35 #include "../DataObject/dataobj.h"
36 
37 #if !defined(Q_MOC_RUN) || defined(ITOMSHAPE_MOC) //only moc this file in itomShapeLib but not in other libraries or executables linking against this itomCommonQtLib
38 
39 namespace ito
40 {
41  class ITOMSHAPE_EXPORT ShapeDObject
42  {
43  public:
44 
45  static ito::DataObject maskFromMultipleShapes(const ito::DataObject &dataObject, const QVector<ito::Shape> &shapes, bool inverse = false);
46  static ito::DataObject mask(const ito::DataObject &dataObject, const ito::Shape &shape, bool inverse = false);
47 
48  protected:
49  static void maskHelper(const ito::DataObject &dataObject, ito::DataObject &mask, const ito::Shape &shape, bool inverse = false);
50 
51  };
52 
53 
54 }
55 
56 #endif //#if !defined(Q_MOC_RUN) || defined(ITOMCOMMONQT_MOC)
57 
58 #endif //SHAPEDOBJECT_H
dataObject contains a n-dimensional matrix
Definition: dataobj.h:511
Definition: apiFunctionsGraph.cpp:39
Definition: shapeDObject.h:41
Definition: shape.h:52