View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vistle::NetpbmImage Class Reference

#include <util/netpbmimage.h>

Public Types

enum  Format {
  PBM , Bitmap = PBM , PGM , Graymap = PGM ,
  PPM , Color = PPM
}
 

Public Member Functions

 NetpbmImage (const std::string &name)
 
 NetpbmImage (const std::string &name, unsigned width, unsigned height, Format=PPM, unsigned highest=0)
 
virtual ~NetpbmImage ()
 
bool close ()
 
Format format () const
 
unsigned width () const
 
unsigned height () const
 
unsigned min () const
 
unsigned max () const
 
bool complete () const
 
bool append (float r, float g, float b)
 
bool append (float gray)
 
const float * gray () const
 
const unsigned char * rgb () const
 

Protected Member Functions

void increaseRange (unsigned value)
 

Protected Attributes

size_t m_numwritten = 0
 
unsigned m_width = 0
 
unsigned m_height = 0
 
unsigned m_highest = 255
 
Format m_format = PPM
 
FILE * m_fp = nullptr
 
unsigned m_min = std::numeric_limits<unsigned>::max()
 
unsigned m_max = 0
 
std::vector< float > m_gray
 
std::vector< unsigned char > m_rgba
 

Member Enumeration Documentation

◆ Format

Enumerator
PBM 
Bitmap 
PGM 
Graymap 
PPM 
Color 

Constructor & Destructor Documentation

◆ NetpbmImage() [1/2]

vistle::NetpbmImage::NetpbmImage ( const std::string &  name)

◆ NetpbmImage() [2/2]

vistle::NetpbmImage::NetpbmImage ( const std::string &  name,
unsigned  width,
unsigned  height,
NetpbmImage::Format  format = PPM,
unsigned  highest = 0 
)

◆ ~NetpbmImage()

vistle::NetpbmImage::~NetpbmImage ( )
virtual

Member Function Documentation

◆ append() [1/2]

bool vistle::NetpbmImage::append ( float  gray)

◆ append() [2/2]

bool vistle::NetpbmImage::append ( float  r,
float  g,
float  b 
)

◆ close()

bool vistle::NetpbmImage::close ( )

◆ complete()

bool vistle::NetpbmImage::complete ( ) const

◆ format()

NetpbmImage::Format vistle::NetpbmImage::format ( ) const

◆ gray()

const float * vistle::NetpbmImage::gray ( ) const

◆ height()

unsigned vistle::NetpbmImage::height ( ) const

◆ increaseRange()

void vistle::NetpbmImage::increaseRange ( unsigned  value)
protected

◆ max()

unsigned vistle::NetpbmImage::max ( ) const

◆ min()

unsigned vistle::NetpbmImage::min ( ) const

◆ rgb()

const unsigned char * vistle::NetpbmImage::rgb ( ) const

◆ width()

unsigned vistle::NetpbmImage::width ( ) const

Member Data Documentation

◆ m_format

Format vistle::NetpbmImage::m_format = PPM
protected

◆ m_fp

FILE* vistle::NetpbmImage::m_fp = nullptr
protected

◆ m_gray

std::vector<float> vistle::NetpbmImage::m_gray
protected

◆ m_height

unsigned vistle::NetpbmImage::m_height = 0
protected

◆ m_highest

unsigned vistle::NetpbmImage::m_highest = 255
protected

◆ m_max

unsigned vistle::NetpbmImage::m_max = 0
protected

◆ m_min

unsigned vistle::NetpbmImage::m_min = std::numeric_limits<unsigned>::max()
protected

◆ m_numwritten

size_t vistle::NetpbmImage::m_numwritten = 0
protected

◆ m_rgba

std::vector<unsigned char> vistle::NetpbmImage::m_rgba
protected

◆ m_width

unsigned vistle::NetpbmImage::m_width = 0
protected

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