OpenStructure
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
l
m
n
o
p
r
s
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
i
m
n
p
r
s
v
w
Enumerations
Enumerator
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
c
d
e
g
i
l
m
o
r
s
t
x
Files
File List
Globals
All
_
b
c
d
f
g
i
l
m
o
p
q
r
s
u
v
w
Functions
c
d
f
g
m
q
v
Typedefs
c
i
r
s
u
w
Macros
_
b
c
d
i
l
o
p
s
u
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
build-2.9.1
stage
include
ost
io
img
jpk_util.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
//
8
// This library is free software; you can redistribute it and/or modify it under
9
// the terms of the GNU Lesser General Public License as published by the Free
10
// Software Foundation; either version 3.0 of the License, or (at your option)
11
// any later version.
12
// This library is distributed in the hope that it will be useful, but WITHOUT
13
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15
// details.
16
//
17
// You should have received a copy of the GNU Lesser General Public License
18
// along with this library; if not, write to the Free Software Foundation, Inc.,
19
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
//------------------------------------------------------------------------------
21
#ifndef OST_IO_JPK_UTIL_HH
22
#define OST_IO_JPK_UTIL_HH
23
24
namespace
ost
{
namespace
io {
namespace
jpk_tags {
25
26
const
static
unsigned
int
SLOT_COUNT
=0x8080;
27
const
static
unsigned
int
DEFAULT_SLOT
=0x8081;
28
const
static
unsigned
int
GRID_REFLECT
=0x8045;
29
const
static
unsigned
int
GRID_U_LENGTH
=0x8042;
30
const
static
unsigned
int
GRID_V_LENGTH
=0x8043;
31
32
33
inline
unsigned
int
ScalingVar1
(
unsigned
int
n)
34
{
35
return
(0x80A4+(n)*0x30);
36
}
37
38
inline
unsigned
int
ScalingVar2
(
unsigned
int
n)
39
{
40
return
(0x80A5+(n)* 0x30);
41
}
42
43
inline
unsigned
int
ScalingMultiply
(
unsigned
int
n)
44
{
45
return
ScalingVar1
(n);
46
}
47
48
inline
unsigned
int
SlotName
(
unsigned
n)
49
{
50
return
(0x8090+(n)*0x30);
51
}
52
53
inline
unsigned
int
ScalingOffset
(
unsigned
int
n)
54
{
55
return
ScalingVar2
(n);
56
}
57
inline
unsigned
int
EncoderUnit
(
unsigned
int
n)
58
{
59
return
(0x80A2+(n)*0x30);
60
}
61
62
63
64
}}}
65
66
#endif
ost::io::jpk_tags::ScalingVar1
unsigned int ScalingVar1(unsigned int n)
Definition:
jpk_util.hh:33
ost::io::jpk_tags::SLOT_COUNT
static const unsigned int SLOT_COUNT
Definition:
jpk_util.hh:26
ost::io::jpk_tags::GRID_V_LENGTH
static const unsigned int GRID_V_LENGTH
Definition:
jpk_util.hh:30
ost::io::jpk_tags::SlotName
unsigned int SlotName(unsigned n)
Definition:
jpk_util.hh:48
ost::io::jpk_tags::DEFAULT_SLOT
static const unsigned int DEFAULT_SLOT
Definition:
jpk_util.hh:27
ost::io::jpk_tags::ScalingOffset
unsigned int ScalingOffset(unsigned int n)
Definition:
jpk_util.hh:53
ost::io::jpk_tags::EncoderUnit
unsigned int EncoderUnit(unsigned int n)
Definition:
jpk_util.hh:57
ost::io::jpk_tags::GRID_U_LENGTH
static const unsigned int GRID_U_LENGTH
Definition:
jpk_util.hh:29
ost::io::jpk_tags::ScalingMultiply
unsigned int ScalingMultiply(unsigned int n)
Definition:
jpk_util.hh:43
ost::io::jpk_tags::GRID_REFLECT
static const unsigned int GRID_REFLECT
Definition:
jpk_util.hh:28
ost::io::jpk_tags::ScalingVar2
unsigned int ScalingVar2(unsigned int n)
Definition:
jpk_util.hh:38
ost
Definition:
base.dox:1
Generated by
1.9.1