BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
17 namespace BALL
18 {
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 
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 
114 
117 
120 
121 
123 
124  // number of components of the map
126  };
127 } // namespace BALL
128 
129 #endif // BALL_FORMAT_DCDFILE_H
Vector3 max_
Vector representing the second point of the maps bounding box.
std::ios::openmode OpenMode
Definition: file.h:168
BALL_EXPORT bool operator==(const String &s1, const String &s2)
Vector3 extent_
the extent of the map
Vector3 min_
Vector representing the first point of the maps bounding box.
bool binary_
flag indicating whether a ascii or binary data section
#define BALL_EXPORT
Definition: COMMON/global.h:50