BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
FORMAT
amiraMeshFile.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
//
5
6
#ifndef BALL_FORMAT_AMIRAMESHFILE_H
7
#define BALL_FORMAT_AMIRAMESHFILE_H
8
9
#ifndef BALL_SYSTEM_FILE_H
10
# include <
BALL/SYSTEM/file.h
>
11
#endif
12
13
#ifndef BALL_DATATYPE_REGULARDATA3D_H
14
# include <
BALL/DATATYPE/regularData3D.h
>
15
#endif
16
17
namespace
BALL
18
{
35
class
BALL_EXPORT
AmiraMeshFile
36
:
public
File
37
{
38
39
public
:
40
44
46
AmiraMeshFile
();
47
51
AmiraMeshFile
(
const
String
& name,
File::OpenMode
open_mode = std::ios::in);
52
54
virtual
~
AmiraMeshFile
();
55
57
60
62
virtual
void
clear();
63
65
68
70
bool
operator == (
const
AmiraMeshFile
& file)
const
;
71
73
74
75
79
virtual
bool
open(
const
String
& name,
File::OpenMode
open_mode = std::ios::in);
80
84
virtual
bool
readHeader();
85
88
virtual
bool
read(
RegularData3D
& map);
89
93
virtual
bool
writeHeader();
94
98
virtual
bool
write(
RegularData3D
& map);
99
100
private
:
101
const
AmiraMeshFile
& operator = (
const
AmiraMeshFile
& file);
102
103
protected
:
104
107
const
char
* findAndJump_(
const
char
* buffer,
const
char
* search_String);
108
110
bool
binary_
;
111
113
Vector3
extent_
;
114
116
Vector3
min_
;
117
119
Vector3
max_
;
120
121
122
long
idx_start_data_
;
123
124
// number of components of the map
125
Position
num_components_
;
126
};
127
}
// namespace BALL
128
129
#endif // BALL_FORMAT_DCDFILE_H
Generated by
1.8.3.1