Template Numerical Library version\ main:bb09b17
Loading...
Searching...
No Matches
TNL::Images::PGMImage< Index > Class Template Reference
Inheritance diagram for TNL::Images::PGMImage< Index >:
Collaboration diagram for TNL::Images::PGMImage< Index >:

Public Types

using IndexType = Index
 
- Public Types inherited from TNL::Images::Image< int >
using IndexType
 

Public Member Functions

void close ()
 
bool openForRead (const String &fileName)
 
template<typename Real , typename Device >
bool openForWrite (const String &fileName, Meshes::Grid< 2, Real, Device, Index > &grid, bool binary=true)
 
template<typename MeshReal , typename Device , typename Real >
bool read (RegionOfInterest< Index > roi, Functions::MeshFunction< Meshes::Grid< 2, MeshReal, Device, Index >, 2, Real > &function)
 
template<typename MeshReal , typename Device , typename Real >
bool write (const Functions::MeshFunction< Meshes::Grid< 2, MeshReal, Device, Index >, 2, Real > &function)
 
template<typename Real , typename Device , typename Vector >
bool write (const Meshes::Grid< 2, Real, Device, Index > &grid, Vector &vector)
 
- Public Member Functions inherited from TNL::Images::Image< int >
IndexType getHeight () const
 
IndexType getWidth () const
 

Protected Member Functions

bool readHeader ()
 
template<typename Real , typename Device >
bool writeHeader (const Meshes::Grid< 2, Real, Device, Index > &grid, bool binary)
 

Protected Attributes

bool binary
 
std::fstream file
 
bool fileOpen
 
IndexType maxColors
 
- Protected Attributes inherited from TNL::Images::Image< int >
IndexType height
 
IndexType width
 

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