OpenStructure
build-2.8-doc
stage
include
ost
gfx
impl
map_iso_gen_s.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
//
6
// This library is free software; you can redistribute it and/or modify it under
7
// the terms of the GNU Lesser General Public License as published by the Free
8
// Software Foundation; either version 3.0 of the License, or (at your option)
9
// any later version.
10
// This library is distributed in the hope that it will be useful, but WITHOUT
11
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13
// details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with this library; if not, write to the Free Software Foundation, Inc.,
17
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
//------------------------------------------------------------------------------
19
#ifndef OST_MAP_ISO_GEN_S_HH
20
#define OST_MAP_ISO_GEN_S_HH
21
22
/*
23
Author: Ansgar Philippsen
24
*/
25
26
#include <vector>
27
28
#include <
ost/geom/geom.hh
>
29
#include <
ost/img/map.hh
>
30
31
#include <
ost/gfx/map_iso_prop.hh
>
32
#include "
map_iso_gen.hh
"
// for AddLFList
33
34
35
namespace
ost
{
namespace
gfx {
namespace
impl {
36
37
// \internal
38
class
DLLEXPORT_OST_GFX
IsosurfaceGeneratorS
{
39
public
:
40
// singleton
41
static
IsosurfaceGeneratorS
&
Instance
();
42
43
IsosurfaceGeneratorS
();
44
45
void
Generate
(
const
img::MapHandle
& mh,
IndexedVertexArray
& va,
float
level);
46
private
:
47
48
uint
slab_tex_[2];
49
uint
slab_id_[2];
50
51
};
52
53
}}}
54
55
#endif
ost::gfx::IndexedVertexArray
Definition:
vertex_array.hh:50
ost::gfx::impl::IsosurfaceGeneratorS
Definition:
map_iso_gen_s.hh:38
ost::gfx::impl::IsosurfaceGeneratorS::Instance
static IsosurfaceGeneratorS & Instance()
ost::gfx::impl::IsosurfaceGeneratorS::Generate
void Generate(const img::MapHandle &mh, IndexedVertexArray &va, float level)
ost::gfx::impl::IsosurfaceGeneratorS::IsosurfaceGeneratorS
IsosurfaceGeneratorS()
ost::img::ImageHandle
Manage shared instances of images.
Definition:
image_handle.hh:111
geom.hh
DLLEXPORT_OST_GFX
#define DLLEXPORT_OST_GFX
Definition:
module_config.hh:27
map.hh
map_iso_gen.hh
map_iso_prop.hh
uint
unsigned int uint
Definition:
base.hh:29
ost
Definition:
base.dox:1
Generated by
1.9.1