Helper class to store picking parameters. More...
Public Member Functions | |
picking_data () | |
Defaut constructor. | |
const bool & | get_is_picked () const |
get the is_picked value | |
void | set_is_picked (const bool &value) |
set the is_picked value | |
const std::map< unsigned int, std::pair< unsigned int, unsigned int > > & | get_picked_index () const |
get the picked indices | |
void | set_picked_index (const std::map< unsigned int, std::pair< unsigned int, unsigned int > > &value) |
set the picked indices | |
const bool & | get_is_up_to_date () const |
get the is_up_to_date value | |
void | set_is_up_to_date (const bool &value) |
set the is_up_to_date value | |
Private Attributes | |
bool | is_picked |
Internal storage to know if the picking mode is active. | |
bool | is_up_to_date |
Internal storage to know if the surface is up to date and at high resolution. | |
std::map< unsigned int, std::pair< unsigned int, unsigned int > > | picked_index |
Internal storage of the picked indices (unique ID,<u_index,v_index>) The unique ID is given by u_index+N_u*v_index;. |
Helper class to store picking parameters.
cpe::picking_data::picking_data | ( | ) |
Defaut constructor.
const bool & cpe::picking_data::get_is_picked | ( | ) | const |
get the is_picked value
References is_picked.
Referenced by scene::draw_scene(), and scene::translate_picking().
const bool & cpe::picking_data::get_is_up_to_date | ( | ) | const |
get the is_up_to_date value
References is_up_to_date.
Referenced by scene::draw_scene(), and scene::update_high_res().
const std::map< unsigned int, std::pair< unsigned int, unsigned int > > & cpe::picking_data::get_picked_index | ( | ) | const |
get the picked indices
References picked_index.
Referenced by scene::draw_scene(), scene::picking_grid(), and scene::translate_picking().
void cpe::picking_data::set_is_picked | ( | const bool & | value | ) |
void cpe::picking_data::set_is_up_to_date | ( | const bool & | value | ) |
set the is_up_to_date value
References is_up_to_date.
Referenced by scene::load_grid(), scene::translate_picking(), scene::update_high_res(), and scene::update_low_res().
void cpe::picking_data::set_picked_index | ( | const std::map< unsigned int, std::pair< unsigned int, unsigned int > > & | value | ) |
bool cpe::picking_data::is_picked [private] |
Internal storage to know if the picking mode is active.
Referenced by get_is_picked(), and set_is_picked().
bool cpe::picking_data::is_up_to_date [private] |
Internal storage to know if the surface is up to date and at high resolution.
Referenced by get_is_up_to_date(), and set_is_up_to_date().
std::map<unsigned int,std::pair<unsigned int,unsigned int> > cpe::picking_data::picked_index [private] |
Internal storage of the picked indices (unique ID,<u_index,v_index>) The unique ID is given by u_index+N_u*v_index;.
Referenced by get_picked_index(), and set_picked_index().