Public Member Functions | Static Public Member Functions | List of all members
ensightGeoFile Class Reference

Specialized Ensight output with extra geometry file header. More...

Inheritance diagram for ensightGeoFile:
Inheritance graph
[legend]
Collaboration diagram for ensightGeoFile:
Collaboration graph
[legend]

Public Member Functions

 ensightGeoFile (const fileName &pathname, IOstream::streamFormat format=IOstream::BINARY)
 
 ensightGeoFile (const fileName &path, const fileName &name, IOstream::streamFormat format=IOstream::BINARY)
 
 ~ensightGeoFile ()=default
 
virtual OstreamwriteKeyword (const keyType &key)
 
void beginPart (const label index, const string &description)
 
void beginCoordinates (const label npoints)
 
void beginPart (const label index)
 
- Public Member Functions inherited from ensightFile
 ensightFile (const fileName &pathname, IOstream::streamFormat format=IOstream::BINARY)
 
 ensightFile (const fileName &path, const fileName &name, IOstream::streamFormat format=IOstream::BINARY)
 
 ~ensightFile ()=default
 
OstreamwriteBinaryHeader ()
 
OstreamwriteString (const char *str)
 
OstreamwriteString (const std::string &str)
 
OstreamwriteUndef ()
 
virtual bool write (const token &)
 
virtual Ostreamwrite (const char)
 
virtual Ostreamwrite (const char *buf, std::streamsize count)
 
virtual Ostreamwrite (const char *str)
 
virtual Ostreamwrite (const word &str)
 
virtual Ostreamwrite (const string &str)
 
virtual Ostreamwrite (const int32_t val)
 
virtual Ostreamwrite (const int64_t val)
 
Ostreamwrite (const label value, const label fieldWidth)
 
virtual Ostreamwrite (const floatScalar val)
 
virtual Ostreamwrite (const doubleScalar val)
 
void newline ()
 
void beginPart (const label index)
 
void beginParticleCoordinates (const label nparticles)
 
void writeLabels (const UList< label > &list)
 
template<class Addr >
void writeLabels (const IndirectListBase< label, Addr > &list)
 
void writeList (const UList< label > &field)
 
void writeList (const UList< scalar > &field)
 
template<class Addr >
void writeList (const IndirectListBase< scalar, Addr > &field)
 
- Public Member Functions inherited from OFstream
 ClassName ("OFstream")
 
 OFstream (std::nullptr_t)
 
 OFstream (const fileName &pathname, IOstreamOption streamOpt=IOstreamOption(), const bool append=false)
 
 OFstream (const fileName &pathname, IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver=IOstreamOption::currentVersion, IOstreamOption::compressionType cmp=IOstreamOption::UNCOMPRESSED, const bool append=false)
 
 ~OFstream ()=default
 
virtual std::ostream & stdStream ()
 
virtual const std::ostream & stdStream () const
 
virtual void rewind ()
 
void print (Ostream &os) const
 
virtual const fileNamename () const
 
virtual fileNamename ()
 
- Public Member Functions inherited from OSstream
 OSstream (const OSstream &)=default
 
void operator= (const OSstream &)=delete
 
 OSstream (std::ostream &os, const string &streamName, IOstreamOption streamOpt=IOstreamOption())
 
 OSstream (std::ostream &os, const string &streamName, IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver=IOstreamOption::currentVersion, IOstreamOption::compressionType cmp=IOstreamOption::UNCOMPRESSED)
 
virtual const fileNamename () const
 
virtual fileNamename ()
 
virtual ios_base::fmtflags flags () const
 
virtual OstreamwriteQuoted (const std::string &str, const bool quoted=true)
 
virtual OstreamwriteRaw (const char *data, std::streamsize count)
 
virtual bool beginRawWrite (std::streamsize count)
 
virtual bool endRawWrite ()
 
virtual void indent ()
 
virtual ios_base::fmtflags flags (const ios_base::fmtflags f)
 
virtual void flush ()
 
virtual void endl ()
 
virtual char fill () const
 
virtual char fill (const char fillch)
 
virtual int width () const
 
virtual int width (const int w)
 
virtual int precision () const
 
virtual int precision (const int p)
 
- Public Member Functions inherited from Ostream
 Ostream (const Ostream &)=default
 
virtual ~Ostream ()=default
 
 Ostream (IOstreamOption streamOpt=IOstreamOption())
 
 Ostream (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver=IOstreamOption::currentVersion, IOstreamOption::compressionType cmp=IOstreamOption::UNCOMPRESSED)
 
virtual Ostreamwrite (const keyType &kw)
 
unsigned short indentSize () const noexcept
 
unsigned short indentSize (unsigned short val) noexcept
 
unsigned short indentLevel () const noexcept
 
unsigned short indentLevel (unsigned short val) noexcept
 
void incrIndent () noexcept
 
void decrIndent ()
 
virtual OstreambeginBlock (const keyType &kw)
 
virtual OstreambeginBlock ()
 
virtual OstreamendBlock ()
 
virtual OstreamendEntry ()
 
template<class T >
OstreamwriteEntry (const keyType &key, const T &value)
 
template<class T >
OstreamwriteEntryIfDifferent (const word &key, const T &value1, const T &value2)
 
Ostreamoperator() () const
 
unsigned short & indentLevel () noexcept
 
unsigned short & indentSize () noexcept
 
- Public Member Functions inherited from IOstream
 IOstream (const IOstream &)=default
 
virtual ~IOstream ()=default
 
 IOstream (IOstreamOption streamOpt=IOstreamOption())
 
 IOstream (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType cmp=IOstreamOption::UNCOMPRESSED)
 
fileName relativeName () const
 
virtual bool check (const char *operation) const
 
bool fatalCheck (const char *operation) const
 
bool opened () const noexcept
 
bool closed () const noexcept
 
bool good () const noexcept
 
bool eof () const noexcept
 
bool fail () const noexcept
 
bool bad () const noexcept
 
 operator bool () const noexcept
 
bool operator! () const noexcept
 
unsigned labelByteSize () const noexcept
 
unsigned scalarByteSize () const noexcept
 
void setLabelByteSize (unsigned nbytes) noexcept
 
void setScalarByteSize (unsigned nbytes) noexcept
 
template<class T = label>
std::enable_if< std::is_integral< T >::value, bool >::type checkLabelSize () const noexcept
 
template<class T = scalar>
std::enable_if< std::is_floating_point< T >::value, bool >::type checkScalarSize () const noexcept
 
label lineNumber () const noexcept
 
label & lineNumber () noexcept
 
label lineNumber (const label num) noexcept
 
void setEof () noexcept
 
void setFail () noexcept
 
void setBad ()
 
ios_base::fmtflags setf (const ios_base::fmtflags f)
 
ios_base::fmtflags setf (const ios_base::fmtflags f, const ios_base::fmtflags mask)
 
void unsetf (const ios_base::fmtflags f)
 
void print (Ostream &os, const int streamState) const
 
InfoProxy< IOstreaminfo () const
 
- Public Member Functions inherited from IOstreamOption
constexpr IOstreamOption (streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
 
constexpr IOstreamOption (streamFormat fmt, compressionType comp, versionNumber ver) noexcept
 
constexpr IOstreamOption (streamFormat fmt, versionNumber ver, compressionType comp=compressionType::UNCOMPRESSED) noexcept
 
 IOstreamOption (const IOstreamOption &opt, streamFormat fmt) noexcept
 
streamFormat format () const noexcept
 
streamFormat format (const streamFormat fmt) noexcept
 
streamFormat format (const word &formatName)
 
compressionType compression () const noexcept
 
compressionType compression (const compressionType comp) noexcept
 
compressionType compression (const word &compName)
 
versionNumber version () const noexcept
 
versionNumber version (const versionNumber ver) noexcept
 
versionNumber version (const token &tok)
 

Static Public Member Functions

static const ensightGeoFilenull ()
 
- Static Public Member Functions inherited from ensightFile
static const ensightFilenull ()
 
static bool allowUndef ()
 
static string mask ()
 
static string subDir (const label)
 
static void subDirWidth (const label)
 
static label subDirWidth ()
 
static bool allowUndef (bool enabled)
 
static scalar undefValue (const scalar value)
 
static bool isUndef (const UList< scalar > &field)
 
template<class Addr >
static bool isUndef (const IndirectListBase< scalar, Addr > &field)
 
- Static Public Member Functions inherited from IOstream
static unsigned int defaultPrecision () noexcept
 
static unsigned int defaultPrecision (unsigned int prec) noexcept
 
- Static Public Member Functions inherited from IOstreamOption
static streamFormat formatEnum (const word &formatName, const streamFormat deflt=streamFormat::ASCII)
 
static streamFormat formatEnum (const word &key, const dictionary &dict, const streamFormat deflt=streamFormat::ASCII)
 
static compressionType compressionEnum (const word &compName, const compressionType deflt=compressionType::UNCOMPRESSED)
 
static compressionType compressionEnum (const word &key, const dictionary &dict, const compressionType deflt=compressionType::UNCOMPRESSED)
 

Additional Inherited Members

- Public Types inherited from IOstream
enum  streamAccess : char { CLOSED = 0, OPENED }
 
- Public Types inherited from IOstreamOption
enum  streamFormat : char { ASCII = 0, BINARY }
 
enum  compressionType : char { UNCOMPRESSED = 0, COMPRESSED }
 
- Static Public Attributes inherited from ensightFile
static const char *const coordinates = "coordinates"
 
- Static Public Attributes inherited from IOstream
static unsigned int precision_
 
- Static Public Attributes inherited from IOstreamOption
static const Enum< streamFormatformatNames
 
static const versionNumber currentVersion
 
- Protected Member Functions inherited from IOstream
void setOpened () noexcept
 
void setClosed () noexcept
 
void setState (std::ios_base::iostate state) noexcept
 
void setGood () noexcept
 
- Protected Attributes inherited from Ostream
unsigned short indentSize_ = 4
 
unsigned short indentLevel_ = 0
 
- Protected Attributes inherited from IOstream
std::ios_base::iostate ioState_
 
streamAccess openClosed_
 
unsigned char sizeofLabel_
 
unsigned char sizeofScalar_
 
label lineNumber_
 
- Static Protected Attributes inherited from Ostream
static constexpr const unsigned short entryIndentation_ = 16
 
- Static Protected Attributes inherited from IOstream
static fileName staticName_
 

Detailed Description

Specialized Ensight output with extra geometry file header.

Definition at line 42 of file ensightGeoFile.H.

Constructor & Destructor Documentation

◆ ensightGeoFile() [1/2]

ensightGeoFile ( const fileName pathname,
IOstream::streamFormat  format = IOstream::BINARY 
)
explicit

Definition at line 50 of file ensightGeoFile.C.

◆ ensightGeoFile() [2/2]

ensightGeoFile ( const fileName path,
const fileName name,
IOstream::streamFormat  format = IOstream::BINARY 
)

Definition at line 62 of file ensightGeoFile.C.

◆ ~ensightGeoFile()

~ensightGeoFile ( )
default

Member Function Documentation

◆ null()

static const ensightGeoFile& null ( )
inlinestatic

Definition at line 63 of file ensightGeoFile.H.

◆ writeKeyword()

Foam::Ostream & writeKeyword ( const keyType key)
virtual

Reimplemented from ensightFile.

Definition at line 76 of file ensightGeoFile.C.

References Foam::glTF::key().

Here is the call graph for this function:

◆ beginPart() [1/2]

void beginPart ( const label  index,
const string description 
)

Definition at line 90 of file ensightGeoFile.C.

◆ beginCoordinates()

void beginCoordinates ( const label  npoints)

Definition at line 101 of file ensightGeoFile.C.

References ensightFile::coordinates, and Foam::vtk::write().

Here is the call graph for this function:

◆ beginPart() [2/2]

void beginPart

Definition at line 347 of file ensightFile.C.


The documentation for this class was generated from the following files: