Alamo
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
IC::PNG Class Reference
Inheritance diagram for IC::PNG:
[legend]
Collaboration diagram for IC::PNG:
[legend]

Public Types

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

Public Member Functions

 PNG (amrex::Vector< amrex::Geometry > &_geom)
 
 PNG (amrex::Vector< amrex::Geometry > &_geom, IO::ParmParse &pp, std::string name)
 
void Define (std::string filename)
 
void Add (const int &lev, Set::Field< Set::Scalar > &a_field, Set::Scalar)
 
- Public Member Functions inherited from IC::IC
 IC (amrex::Vector< amrex::Geometry > &_geom)
 
virtual ~IC ()
 
virtual void Add (const int &lev, Set::Field< Set::Scalar > &field)
 
virtual void Add (const int &, Set::Field< Set::Vector > &, Set::Scalar)
 
void Initialize (const int &a_lev, Set::Field< Set::Scalar > &a_field, Set::Scalar a_time=0.0)
 
void Initialize (const int &a_lev, Set::Field< Set::Vector > &a_field, Set::Scalar a_time=0.0)
 
virtual void SetComp (int a_comp) final
 

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
 
Channel channel = Channel::G
 
Set::Scalar min = NAN
 
Set::Scalar max = NAN
 

Additional Inherited Members

- Protected Attributes inherited from IC::IC
amrex::Vector< amrex::Geometry > & geom
 
int comp = 0
 

Detailed Description

Definition at line 24 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]

IC::PNG::PNG ( amrex::Vector< amrex::Geometry > &  _geom)
inline

Definition at line 31 of file PNG.H.

◆ PNG() [2/2]

IC::PNG::PNG ( amrex::Vector< amrex::Geometry > &  _geom,
IO::ParmParse pp,
std::string  name 
)
inline

Definition at line 33 of file PNG.H.

Member Function Documentation

◆ Add()

void IC::PNG::Add ( const int &  lev,
Set::Field< Set::Scalar > &  a_field,
Set::Scalar   
)
inlinevirtual

Implements IC::IC.

Definition at line 104 of file PNG.H.

Here is the call graph for this function:

◆ Define()

void IC::PNG::Define ( std::string  filename)
inline

Definition at line 38 of file PNG.H.

Here is the call graph for this function:

◆ Parse()

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

Definition at line 269 of file PNG.H.

Here is the call graph for this function:

Field Documentation

◆ bit_depth

png_byte IC::PNG::bit_depth
private

Definition at line 257 of file PNG.H.

◆ channel

Channel IC::PNG::channel = Channel::G
private

Definition at line 264 of file PNG.H.

◆ color_type

png_byte IC::PNG::color_type
private

Definition at line 256 of file PNG.H.

◆ coord_hi

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

Definition at line 260 of file PNG.H.

◆ coord_lo

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

Definition at line 259 of file PNG.H.

◆ fit

Fit IC::PNG::fit = Fit::Stretch
private

Definition at line 263 of file PNG.H.

◆ max

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

Definition at line 265 of file PNG.H.

◆ min

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

Definition at line 265 of file PNG.H.

◆ png_height

int IC::PNG::png_height
private

Definition at line 255 of file PNG.H.

◆ png_width

int IC::PNG::png_width
private

Definition at line 251 of file PNG.H.

◆ row_pointers

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

Definition at line 258 of file PNG.H.


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