Inheritance diagram for cpe::surface_param:
Collaboration diagram for cpe::surface_param:Public Member Functions | |
| surface_param () | |
| empty constructor More... | |
| surface_param (const unsigned int &Nu, const unsigned int &Nv) | |
| direct constructor More... | |
| void | resize (const unsigned int &Nu, const unsigned int &Nv) |
| resize the grid More... | |
| const unsigned int & | size_u () const |
| return the size in u direction More... | |
| const unsigned int & | size_v () const |
| return the size in v direction More... | |
| const vec3 & | operator() (const unsigned int &ku, const unsigned int &kv) const |
| Accessor to the value (ku,kv) More... | |
| vec3 & | operator() (const unsigned int &ku, const unsigned int &kv) |
| Accessor to the value (ku,kv) More... | |
| const vec3 * | pointer () const |
| export internal pointer More... | |
| vec3 * | pointer_unprotected () |
| export internal pointer unprotected, use with care More... | |
Protected Member Functions | |
| const vec3 & | get (const unsigned int &ku, const unsigned int &kv) const |
| getter fast but unprotected for heritage More... | |
| void | assert_size (const unsigned int &ku, const unsigned int &kv) const |
| ensure (ku,kv) is coherent with the size of the grid More... | |
Private Attributes | |
| unsigned int | internal_size_u |
| internal size in u More... | |
| unsigned int | internal_size_v |
| internal size in v More... | |
| std::vector< vec3 > | internal_data |
| internal data More... | |
| cpe::surface_param::surface_param | ( | ) |
empty constructor
| cpe::surface_param::surface_param | ( | const unsigned int & | Nu, |
| const unsigned int & | Nv | ||
| ) |
direct constructor
References internal_data.
|
protected |
ensure (ku,kv) is coherent with the size of the grid
References internal_size_u, internal_size_v, and cpe::string_converter::to_string().
Referenced by operator()(), and cpe::surface_param_drawable::set_normal().
Here is the call graph for this function:
|
protected |
getter fast but unprotected for heritage
References internal_data, and internal_size_u.
| const vec3 & cpe::surface_param::operator() | ( | const unsigned int & | ku, |
| const unsigned int & | kv | ||
| ) | const |
Accessor to the value (ku,kv)
References assert_size(), internal_data, and internal_size_u.
Here is the call graph for this function:| vec3 & cpe::surface_param::operator() | ( | const unsigned int & | ku, |
| const unsigned int & | kv | ||
| ) |
Accessor to the value (ku,kv)
References assert_size(), internal_data, and internal_size_u.
Here is the call graph for this function:| const vec3 * cpe::surface_param::pointer | ( | ) | const |
export internal pointer
References internal_data.
Referenced by cpe::surface_param_drawable::pointer_draw_vertices().
| vec3 * cpe::surface_param::pointer_unprotected | ( | ) |
export internal pointer unprotected, use with care
References internal_data.
| void cpe::surface_param::resize | ( | const unsigned int & | Nu, |
| const unsigned int & | Nv | ||
| ) |
resize the grid
References internal_data, internal_size_u, and internal_size_v.
| const unsigned int & cpe::surface_param::size_u | ( | ) | const |
return the size in u direction
References internal_size_u.
Referenced by cpe::surface_param_drawable::build_connectivity(), cpe::opengl_drawer::draw(), cpe::surface_param_drawable::set_normal(), and cpe::surface_param_drawable::update_connectivity().
| const unsigned int & cpe::surface_param::size_v | ( | ) | const |
return the size in v direction
References internal_size_v.
Referenced by cpe::surface_param_drawable::build_connectivity(), cpe::opengl_drawer::draw(), cpe::surface_param_drawable::set_normal(), and cpe::surface_param_drawable::update_connectivity().
|
private |
internal data
Referenced by get(), operator()(), pointer(), pointer_unprotected(), resize(), and surface_param().
|
private |
internal size in u
Referenced by assert_size(), get(), operator()(), resize(), and size_u().
|
private |
internal size in v
Referenced by assert_size(), resize(), and size_v().