OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
stage
include
ost
img
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-2011 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
49
ImageHandle
DLLEXPORT_OST_IMG_BASE
CreateImage
(
const
Extent& ext=Extent(),
50
DataType
type=
REAL
,
51
DataDomain
dom=
SPATIAL
);
52
54
ImageHandle
DLLEXPORT_OST_IMG_BASE
CreateImage
(
const
Size& s,
const
Point& o,
55
DataType
type=
REAL
,
56
DataDomain
dom=
SPATIAL
);
57
58
ImageHandle
DLLEXPORT_OST_IMG_BASE
CreateImage
(
const
Point& p1,
const
Point& p2,
59
DataType
type=
REAL
,
60
DataDomain
dom=
SPATIAL
);
61
62
ImageHandle
DLLEXPORT_OST_IMG_BASE
CreateImage
(
const
Point& p1,
const
Size& s,
63
DataType
type=
REAL
,
64
DataDomain
dom=
SPATIAL
);
65
67
/*
68
The returned image will have the extent of the given Data
69
*/
70
ImageHandle
DLLEXPORT_OST_IMG_BASE
GenerateImage
(
const
Data& d);
71
73
76
ImageHandle
DLLEXPORT_OST_IMG_BASE
GenerateImage
(
const
Data& d,
const
Extent& e);
77
78
}}
// namespace
79
80
#endif
Generated on Mon Nov 5 2012 13:31:01 for OpenStructure by
1.8.1.1