ProtoMol - an object-oriented component based framework for Molecular Dynamics simulations.

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ProtoMol::PGM Class Reference

#include <PGM.h>

List of all members.

Public Member Functions

 ~PGM ()
 PGM ()
 PGM (int x, int y)
void set (unsigned int x, unsigned int y, unsigned char a)
void set (unsigned int x, unsigned int y, unsigned char r, unsigned char g, unsigned char b)
unsigned char get (unsigned int x, unsigned int y) const
unsigned char getRed (unsigned int x, unsigned int y) const
unsigned char getGreen (unsigned int x, unsigned int y) const
unsigned char getBlue (unsigned int x, unsigned int y) const
unsigned int width () const
unsigned int height () const
unsigned int size () const
void resize (unsigned int width, unsigned int height)
unsigned char * begin () const
unsigned char * end () const
void clear ()
PGMoperator= (const PPM &ppm)

Private Attributes

unsigned int w
unsigned int h
unsigned char * p


Detailed Description

Container for PGM binary image.

PGM memory layout:

h
| 1. ----->
| 2. ----->
| ...
0 N. ----->
y
x 0-----w


Constructor & Destructor Documentation

ProtoMol::PGM::~PGM  ) 
 

ProtoMol::PGM::PGM  ) 
 

ProtoMol::PGM::PGM int  x,
int  y
 


Member Function Documentation

unsigned char* ProtoMol::PGM::begin  )  const [inline]
 

void ProtoMol::PGM::clear  ) 
 

unsigned char* ProtoMol::PGM::end  )  const [inline]
 

unsigned char ProtoMol::PGM::get unsigned int  x,
unsigned int  y
const [inline]
 

unsigned char ProtoMol::PGM::getBlue unsigned int  x,
unsigned int  y
const [inline]
 

unsigned char ProtoMol::PGM::getGreen unsigned int  x,
unsigned int  y
const [inline]
 

unsigned char ProtoMol::PGM::getRed unsigned int  x,
unsigned int  y
const [inline]
 

unsigned int ProtoMol::PGM::height  )  const [inline]
 

PGM & ProtoMol::PGM::operator= const PPM ppm  ) 
 

void ProtoMol::PGM::resize unsigned int  width,
unsigned int  height
 

void ProtoMol::PGM::set unsigned int  x,
unsigned int  y,
unsigned char  r,
unsigned char  g,
unsigned char  b
[inline]
 

void ProtoMol::PGM::set unsigned int  x,
unsigned int  y,
unsigned char  a
[inline]
 

unsigned int ProtoMol::PGM::size  )  const [inline]
 

unsigned int ProtoMol::PGM::width  )  const [inline]
 


Member Data Documentation

unsigned int ProtoMol::PGM::h [private]
 

unsigned char* ProtoMol::PGM::p [private]
 

unsigned int ProtoMol::PGM::w [private]
 


The documentation for this class was generated from the following files: Last update: . GNU GENERAL PUBLIC LICENSE, copyrighted by the University of Notre Dame and the University of Bergen, Norway.