OpenStructure
image_factory.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2020 by the OpenStructure authors
5 // Copyright (C) 2003-2010 by the IPLT authors
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the Free
9 // Software Foundation; either version 3.0 of the License, or (at your option)
10 // any later version.
11 // This library is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 // details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with this library; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 //------------------------------------------------------------------------------
20 
21 /*
22  factory methods to create images, either from
23  scratch or based on some other data instance
24 
25  Author: Ansgar Philippsen
26 */
27 
28 #ifndef IMG_IMAGE_FACTORY_HH
29 #define IMG_IMAGE_FACTORY_HH
30 
31 #include <ost/img/module_config.hh>
32 #include "extent.hh"
33 #include "point.hh"
34 #include "data_types.hh"
35 #include "size.hh"
36 
37 namespace ost { namespace img {
38 
39 class Data;
40 class ImageHandle;
41 
43 
50  DataType type=REAL,
51  DataDomain dom=SPATIAL);
52 
55  DataType type=REAL,
56  DataDomain dom=SPATIAL);
57 
59  DataType type=REAL,
60  DataDomain dom=SPATIAL);
61 
63  DataType type=REAL,
64  DataDomain dom=SPATIAL);
65 
67  DataType type=REAL,
68  DataDomain dom=SPATIAL);
69 
71 /*
72  The returned image will have the extent of the given Data
73 */
75 
77 
81 
82 }} // namespace
83 
84 #endif
Abstract base class for data.
Definition: data.hh:253
Defines lower and upper valid indices.
Definition: extent.hh:60
Manage shared instances of images.
class encapsulating 1D to 3D point
Definition: point.hh:47
class encapsulating 1D to 3D size
Definition: size.hh:39
#define DLLEXPORT_OST_IMG_BASE
ImageHandle DLLEXPORT_OST_IMG_BASE CreateImage(const Extent &ext=Extent(), DataType type=REAL, DataDomain dom=SPATIAL)
Create image from scratch.
DataDomain
underlying data type
Definition: data_types.hh:42
ImageHandle DLLEXPORT_OST_IMG_BASE GenerateImage(const Data &d)
Create image based on some data object (ie other image or function)
Definition: base.dox:1