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
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-2011 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::ScalingVar2
unsigned int ScalingVar2(unsigned int n)
Definition:
jpk_util.hh:38
ost::io::jpk_tags::GRID_REFLECT
static const unsigned int GRID_REFLECT
Definition:
jpk_util.hh:28
ost::io::jpk_tags::EncoderUnit
unsigned int EncoderUnit(unsigned int n)
Definition:
jpk_util.hh:57
ost::io::jpk_tags::ScalingOffset
unsigned int ScalingOffset(unsigned int n)
Definition:
jpk_util.hh:53
ost::io::jpk_tags::GRID_U_LENGTH
static const unsigned int GRID_U_LENGTH
Definition:
jpk_util.hh:29
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::DEFAULT_SLOT
static const unsigned int DEFAULT_SLOT
Definition:
jpk_util.hh:27
ost::io::jpk_tags::SlotName
unsigned int SlotName(unsigned n)
Definition:
jpk_util.hh:48
ost::io::jpk_tags::ScalingMultiply
unsigned int ScalingMultiply(unsigned int n)
Definition:
jpk_util.hh:43
ost::io::jpk_tags::GRID_V_LENGTH
static const unsigned int GRID_V_LENGTH
Definition:
jpk_util.hh:30
Generated by
1.8.5