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 
17 namespace 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 
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
BALL_EXPORT
#define BALL_EXPORT
Definition: COMMON/global.h:50
BALL::AmiraMeshFile::max_
Vector3 max_
Vector representing the second point of the maps bounding box.
Definition: amiraMeshFile.h:119
BALL::TRegularData3D< float >
BALL::AmiraMeshFile
Definition: amiraMeshFile.h:37
BALL::AmiraMeshFile::idx_start_data_
long idx_start_data_
Definition: amiraMeshFile.h:122
BALL::AmiraMeshFile::~AmiraMeshFile
virtual ~AmiraMeshFile()
Destructor.
BALL::String
Definition: string.h:57
BALL::AmiraMeshFile::binary_
bool binary_
flag indicating whether a ascii or binary data section
Definition: amiraMeshFile.h:110
file.h
BALL::AmiraMeshFile::AmiraMeshFile
AmiraMeshFile(const String &name, File::OpenMode open_mode=std::ios::in)
BALL::AmiraMeshFile::clear
virtual void clear()
Clear method.
BALL
Definition: constants.h:13
BALL::AmiraMeshFile::open
virtual bool open(const String &name, File::OpenMode open_mode=std::ios::in)
BALL::File
Definition: file.h:136
BALL::AmiraMeshFile::num_components_
Position num_components_
Definition: amiraMeshFile.h:125
BALL::File::OpenMode
std::ios::openmode OpenMode
Definition: file.h:165
BALL::AmiraMeshFile::extent_
Vector3 extent_
the extent of the map
Definition: amiraMeshFile.h:113
BALL_SIZE_TYPE
BALL::TVector3< float >
BALL::AmiraMeshFile::min_
Vector3 min_
Vector representing the first point of the maps bounding box.
Definition: amiraMeshFile.h:116
BALL::AmiraMeshFile::AmiraMeshFile
AmiraMeshFile()
Default constructor.
BALL::AmiraMeshFile::readHeader
virtual bool readHeader()
BALL::AmiraMeshFile::writeHeader
virtual bool writeHeader()
BALL::operator==
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL::AmiraMeshFile::read
virtual bool read(RegularData3D &map)
BALL::AmiraMeshFile::write
virtual bool write(RegularData3D &map)
regularData3D.h
BALL::AmiraMeshFile::findAndJump_
const char * findAndJump_(const char *buffer, const char *search_String)