OpenStructure
Loading...
Searching...
No Matches
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
32#include "extent.hh"
33#include "point.hh"
34#include "data_types.hh"
35#include "size.hh"
36
37namespace ost { namespace img {
38
39class Data;
40class ImageHandle;
41
43
50 DataType type=REAL,
52
55 DataType type=REAL,
57
59 DataType type=REAL,
61
63 DataType type=REAL,
65
67 DataType type=REAL,
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
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)
ImageHandle DLLEXPORT_OST_IMG_BASE CreateImage(const Extent &ext=Extent(), DataType type=REAL, DataDomain dom=SPATIAL)
Create image from scratch.
Definition base.dox:1