cutter Class Reference

#include <exploder_cutter.hpp>

List of all members.

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_

Classes

struct  mask
struct  positioned_surface


Detailed Description

Definition at line 23 of file exploder_cutter.hpp.


Member Typedef Documentation

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

Definition at line 37 of file exploder_cutter.hpp.

typedef std::multimap<std::string, positioned_surface> cutter::surface_map

Definition at line 47 of file exploder_cutter.hpp.


Constructor & Destructor Documentation

cutter::cutter (  ) 

Definition at line 23 of file exploder_cutter.cpp.


Member Function Documentation

const config cutter::load_config ( const std::string &  filename  ) 

void cutter::load_masks ( const config conf  ) 

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::get_children().

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

void cutter::set_verbose ( bool  value  ) 

Definition at line 161 of file exploder_cutter.cpp.

References verbose_.

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

std::string cutter::find_configuration ( const std::string &  file  )  [private]

Definition at line 107 of file exploder_cutter.cpp.

References file_name(), and get_exploder_dir().

Referenced by load_config().

void cutter::add_sub_image ( const surface surf,
surface_map map,
const config config 
) [private]


Member Data Documentation

Definition at line 60 of file exploder_cutter.hpp.

Referenced by add_sub_image(), and load_masks().

bool cutter::verbose_ [private]

Definition at line 62 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:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs