Debian Codegraph @

src/App/ImagePlane.h

raw
1 /***************************************************************************
2 * Copyright (c) 2011 Jürgen Riegel ([email protected]) *
3 * *
4 * This file is part of the FreeCAD CAx development system. *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Library General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU Library General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Library General Public *
17 * License along with this library; see the file COPYING.LIB. If not, *
18 * write to the Free Software Foundation, Inc., 59 Temple Place, *
19 * Suite 330, Boston, MA 02111-1307, USA *
20 * *
21 ***************************************************************************/
22
23 #ifndef App_ImagePlane_H
24 #define App_ImagePlane_H
25
26 #include <App/GeoFeature.h>
27 #include <App/PropertyFile.h>
28 #include <App/PropertyUnits.h>
29
30 namespace Image
31 {
32
33 class AppExport ImagePlane: public App::GeoFeature
34 {
35 PROPERTY_HEADER_WITH_OVERRIDE(Image::ImagePlane);
36
37 public:
38 /// Constructor
39 ImagePlane();
40 ~ImagePlane() override = default;
41
42 App::PropertyFileIncluded ImageFile;
43 App::PropertyLength XSize;
44 App::PropertyLength YSize;
45
46 int getXSizeInPixel();
47 int getYSizeInPixel();
48 void setXSizeInPixel(int);
49 void setYSizeInPixel(int);
50
51 double XPixelsPerMeter {1000.0};
52 double YPixelsPerMeter {1000.0};
53
54 /// returns the type name of the ViewProvider
55 const char* getViewProviderName() const override
56 {
57 return "Gui::ViewProviderImagePlane";
58 }
59 };
60
61 } // namespace Image
62
63
64 #endif // App_ImagePlane_H