The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
cutter Class Reference

#include <exploder_cutter.hpp>

Classes

struct  mask
 
struct  positioned_surface
 

Public Types

typedef std::map< std::string,
mask
mask_map
 
typedef std::multimap
< std::string,
positioned_surface
surface_map
 

Public Member Functions

 cutter ()
 
const config load_config (const std::string &filename)
 
void load_masks (const config &conf)
 
surface_map cut_surface (surface surf, const config &conf)
 
void set_verbose (bool value)
 

Private Member Functions

std::string find_configuration (const std::string &file)
 
void add_sub_image (const surface &surf, surface_map &map, const config *config)
 

Private Attributes

mask_map masks_
 
bool verbose_
 

Detailed Description

Definition at line 22 of file exploder_cutter.hpp.

Member Typedef Documentation

typedef std::map<std::string, mask> cutter::mask_map

Definition at line 43 of file exploder_cutter.hpp.

Definition at line 59 of file exploder_cutter.hpp.

Constructor & Destructor Documentation

cutter::cutter ( )

Definition at line 25 of file exploder_cutter.cpp.

Member Function Documentation

void cutter::add_sub_image ( const surface surf,
surface_map map,
const config config 
)
private
cutter::surface_map cutter::cut_surface ( surface  surf,
const config conf 
)

Definition at line 92 of file exploder_cutter.cpp.

References add_sub_image(), and config::child_range().

Referenced by add_sub_image(), composer::compose(), and main().

std::string cutter::find_configuration ( const std::string file)
private

Definition at line 104 of file exploder_cutter.cpp.

References filesystem::base_name(), and get_exploder_dir().

Referenced by load_config().

const config cutter::load_config ( const std::string filename)
void cutter::load_masks ( const config conf)
void cutter::set_verbose ( bool  value)

Definition at line 161 of file exploder_cutter.cpp.

References verbose_.

Referenced by composer::compose(), and main().

Member Data Documentation

mask_map cutter::masks_
private

Definition at line 72 of file exploder_cutter.hpp.

Referenced by add_sub_image(), and load_masks().

bool cutter::verbose_
private

Definition at line 74 of file exploder_cutter.hpp.

Referenced by add_sub_image(), load_masks(), and set_verbose().


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