Euphoria
eu::core::dump2d::Dumper Struct Reference

#include <dump.h>

Inheritance diagram for eu::core::dump2d::Dumper:
eu::core::dump2d::AddWrapper< Dumper >

Public Member Functions

Dumperadd_axis ()
 
Dumperadd_grid (float xy)
 
Dumperenable_points_rendering (int size=3)
 
Dumperadd (const Item &item)
 
void write (const std::string &path, int width=1280, int height=1024, int space=6) const
 
std::pair< vec2f, vec2fcalc_size_and_offset () const
 calculate total area size and offset so that x+offset will never be lower than 0 More...
 
- Public Member Functions inherited from eu::core::dump2d::AddWrapper< Dumper >
Dumperoperator<< (const TItem &sub_item)
 

Public Attributes

Rgbi canvas_color = NamedColor::white
 
std::vector< Itemitems
 
bool add_axis_when_writing = false
 
int point_size = -1
 
bool point_text = false
 
float grid_x =-1
 
float grid_y =-1
 

Detailed Description

Definition at line 102 of file dump.h.

Member Function Documentation

◆ add()

Dumper & eu::core::dump2d::Dumper::add ( const Item item)

Definition at line 275 of file dump.cc.

◆ add_axis()

Dumper & eu::core::dump2d::Dumper::add_axis ( )

Definition at line 256 of file dump.cc.

◆ add_grid()

Dumper & eu::core::dump2d::Dumper::add_grid ( float  xy)

Definition at line 262 of file dump.cc.

◆ calc_size_and_offset()

std::pair< vec2f, vec2f > eu::core::dump2d::Dumper::calc_size_and_offset ( ) const

calculate total area size and offset so that x+offset will never be lower than 0

Definition at line 282 of file dump.cc.

◆ enable_points_rendering()

Dumper & eu::core::dump2d::Dumper::enable_points_rendering ( int  size = 3)

Definition at line 269 of file dump.cc.

◆ write()

void eu::core::dump2d::Dumper::write ( const std::string &  path,
int  width = 1280,
int  height = 1024,
int  space = 6 
) const

Definition at line 300 of file dump.cc.

Member Data Documentation

◆ add_axis_when_writing

bool eu::core::dump2d::Dumper::add_axis_when_writing = false

Definition at line 106 of file dump.h.

◆ canvas_color

Rgbi eu::core::dump2d::Dumper::canvas_color = NamedColor::white

Definition at line 104 of file dump.h.

◆ grid_x

float eu::core::dump2d::Dumper::grid_x =-1

Definition at line 109 of file dump.h.

◆ grid_y

float eu::core::dump2d::Dumper::grid_y =-1

Definition at line 110 of file dump.h.

◆ items

std::vector<Item> eu::core::dump2d::Dumper::items

Definition at line 105 of file dump.h.

◆ point_size

int eu::core::dump2d::Dumper::point_size = -1

Definition at line 107 of file dump.h.

◆ point_text

bool eu::core::dump2d::Dumper::point_text = false

Definition at line 108 of file dump.h.


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