Alamo
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
Util::PNG Class Reference

#include <PNG.H>

Public Types

enum  Fit { Stretch , FitWidth , FitHeight , Coord }
 
enum  Channel { R = 0 , G = 1 , B = 2 , A = 3 }
 

Public Member Functions

 PNG ()
 
 PNG (IO::ParmParse &pp, std::string name)
 
 ~PNG ()
 
void setDomain (Set::Vector &_lo, Set::Vector &_hi)
 
std::array< int, 4 > operator() (int I, int J)
 
std::array< Set::Scalar, 4 > operator() (Set::Vector &x)
 

Static Public Member Functions

static void Parse (PNG &value, IO::ParmParse &pp)
 

Private Attributes

int png_width
 
int png_height
 
png_byte color_type
 
png_byte bit_depth
 
png_bytep * row_pointers = NULL
 
Set::Vector coord_lo = Set::Vector::Zero()
 
Set::Vector coord_hi = Set::Vector::Zero()
 
Fit fit = Fit::Stretch
 
Set::Scalar min = NAN
 
Set::Scalar max = NAN
 
bool domain_defined = false
 
Set::Vector domain_lo = Set::Vector::Zero()
 
Set::Vector domain_hi = Set::Vector::Zero()
 

Detailed Description

Definition at line 13 of file PNG.H.

Member Enumeration Documentation

◆ Channel

Enumerator

Definition at line 29 of file PNG.H.

◆ Fit

Enumerator
Stretch 
FitWidth 
FitHeight 
Coord 

Definition at line 28 of file PNG.H.

Constructor & Destructor Documentation

◆ PNG() [1/2]

Util::PNG::PNG ( )
inline

Definition at line 16 of file PNG.H.

◆ PNG() [2/2]

Util::PNG::PNG ( IO::ParmParse pp,
std::string  name 
)
inline

Definition at line 17 of file PNG.H.

◆ ~PNG()

Util::PNG::~PNG ( )
inline

Definition at line 19 of file PNG.H.

Member Function Documentation

◆ operator()() [1/2]

std::array< int, 4 > Util::PNG::operator() ( int  I,
int  J 
)
inline

Definition at line 136 of file PNG.H.

◆ operator()() [2/2]

std::array< Set::Scalar, 4 > Util::PNG::operator() ( Set::Vector x)
inline

Definition at line 147 of file PNG.H.

◆ Parse()

static void Util::PNG::Parse ( PNG value,
IO::ParmParse pp 
)
inlinestatic

Definition at line 31 of file PNG.H.

◆ setDomain()

void Util::PNG::setDomain ( Set::Vector _lo,
Set::Vector _hi 
)
inline

Definition at line 126 of file PNG.H.

Field Documentation

◆ bit_depth

png_byte Util::PNG::bit_depth
private

Definition at line 267 of file PNG.H.

◆ color_type

png_byte Util::PNG::color_type
private

Definition at line 266 of file PNG.H.

◆ coord_hi

Set::Vector Util::PNG::coord_hi = Set::Vector::Zero()
private

Definition at line 270 of file PNG.H.

◆ coord_lo

Set::Vector Util::PNG::coord_lo = Set::Vector::Zero()
private

Definition at line 269 of file PNG.H.

◆ domain_defined

bool Util::PNG::domain_defined = false
private

Definition at line 276 of file PNG.H.

◆ domain_hi

Set::Vector Util::PNG::domain_hi = Set::Vector::Zero()
private

Definition at line 278 of file PNG.H.

◆ domain_lo

Set::Vector Util::PNG::domain_lo = Set::Vector::Zero()
private

Definition at line 277 of file PNG.H.

◆ fit

Fit Util::PNG::fit = Fit::Stretch
private

Definition at line 273 of file PNG.H.

◆ max

Set::Scalar Util::PNG::max = NAN
private

Definition at line 274 of file PNG.H.

◆ min

Set::Scalar Util::PNG::min = NAN
private

Definition at line 274 of file PNG.H.

◆ png_height

int Util::PNG::png_height
private

Definition at line 265 of file PNG.H.

◆ png_width

int Util::PNG::png_width
private

Definition at line 265 of file PNG.H.

◆ row_pointers

png_bytep* Util::PNG::row_pointers = NULL
private

Definition at line 268 of file PNG.H.


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