Loading...
Searching...
No Matches
amiraMeshFile.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
//
#ifndef BALL_FORMAT_AMIRAMESHFILE_H
#define BALL_FORMAT_AMIRAMESHFILE_H
#ifndef BALL_SYSTEM_FILE_H
# include <BALL/SYSTEM/file.h>
#endif
#ifndef BALL_DATATYPE_REGULARDATA3D_H
# include <BALL/DATATYPE/regularData3D.h>
#endif
namespace BALL
{
class BALL_EXPORT AmiraMeshFile
: public File
{
public:
AmiraMeshFile();
AmiraMeshFile(const String& name, File::OpenMode open_mode = std::ios::in);
virtual ~AmiraMeshFile();
virtual void clear();
bool operator == (const AmiraMeshFile& file) const;
virtual bool open(const String& name, File::OpenMode open_mode = std::ios::in);
virtual bool readHeader();
virtual bool read(RegularData3D& map);
virtual bool writeHeader();
virtual bool write(RegularData3D& map);
private:
const AmiraMeshFile& operator = (const AmiraMeshFile& file);
protected:
const char* findAndJump_(const char* buffer, const char* search_String);
bool binary_;
Vector3 extent_;
Vector3 min_;
Vector3 max_;
long idx_start_data_;
// number of components of the map
Position num_components_;
};
} // namespace BALL
#endif // BALL_FORMAT_DCDFILE_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::AmiraMeshFile::readHeader
virtual bool readHeader()
BALL::AmiraMeshFile::idx_start_data_
long idx_start_data_
Definition amiraMeshFile.h:122
BALL::AmiraMeshFile::open
virtual bool open(const String &name, File::OpenMode open_mode=std::ios::in)
BALL::AmiraMeshFile::binary_
bool binary_
flag indicating whether a ascii or binary data section
Definition amiraMeshFile.h:110
BALL::AmiraMeshFile::max_
Vector3 max_
Vector representing the second point of the maps bounding box.
Definition amiraMeshFile.h:119
BALL::AmiraMeshFile::num_components_
Position num_components_
Definition amiraMeshFile.h:125
BALL::AmiraMeshFile::writeHeader
virtual bool writeHeader()
BALL::AmiraMeshFile::write
virtual bool write(RegularData3D &map)
BALL::AmiraMeshFile::findAndJump_
const char * findAndJump_(const char *buffer, const char *search_String)
BALL::AmiraMeshFile::clear
virtual void clear()
Clear method.
BALL::AmiraMeshFile::read
virtual bool read(RegularData3D &map)
BALL::AmiraMeshFile::AmiraMeshFile
AmiraMeshFile()
Default constructor.
BALL::AmiraMeshFile::AmiraMeshFile
AmiraMeshFile(const String &name, File::OpenMode open_mode=std::ios::in)
BALL::AmiraMeshFile::min_
Vector3 min_
Vector representing the first point of the maps bounding box.
Definition amiraMeshFile.h:116
BALL::AmiraMeshFile::extent_
Vector3 extent_
the extent of the map
Definition amiraMeshFile.h:113
BALL::AmiraMeshFile::~AmiraMeshFile
virtual ~AmiraMeshFile()
Destructor.
BALL::File::File
File()
BALL::File::OpenMode
std::ios::openmode OpenMode
Definition file.h:165
BALL::String
Definition string.h:57
file.h
BALL
Definition constants.h:13
BALL::RegularData3D
TRegularData3D< float > RegularData3D
Definition regularData3D.h:515
BALL::Position
BALL_SIZE_TYPE Position
Definition COMMON/global.h:140
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084
regularData3D.h