BALL 1.5.0
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
15#endif
16
17namespace BALL
18{
36 : public File
37 {
38
39 public:
40
44
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
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
111
114
117
120
121
123
124 // number of components of the map
126 };
127} // namespace BALL
128
129#endif // BALL_FORMAT_DCDFILE_H
Definition: constants.h:13
BALL_EXPORT bool operator==(const String &s1, const String &s2)
virtual bool readHeader()
virtual bool open(const String &name, File::OpenMode open_mode=std::ios::in)
bool binary_
flag indicating whether a ascii or binary data section
Vector3 max_
Vector representing the second point of the maps bounding box.
virtual bool writeHeader()
virtual bool write(RegularData3D &map)
const char * findAndJump_(const char *buffer, const char *search_String)
virtual void clear()
Clear method.
virtual bool read(RegularData3D &map)
AmiraMeshFile()
Default constructor.
AmiraMeshFile(const String &name, File::OpenMode open_mode=std::ios::in)
Vector3 min_
Vector representing the first point of the maps bounding box.
Vector3 extent_
the extent of the map
virtual ~AmiraMeshFile()
Destructor.
std::ios::openmode OpenMode
Definition: file.h:165
#define BALL_EXPORT
Definition: COMMON/global.h:50