Public Member Functions | |
surface_param () | |
empty constructor | |
surface_param (const unsigned int &Nu, const unsigned int &Nv) | |
direct constructor | |
void | resize (const unsigned int &Nu, const unsigned int &Nv) |
resize the grid | |
const unsigned int & | size_u () const |
return the size in u direction | |
const unsigned int & | size_v () const |
return the size in v direction | |
const v3 & | operator() (const unsigned int &ku, const unsigned int &kv) const |
Accessor to the value (ku,kv). | |
v3 & | operator() (const unsigned int &ku, const unsigned int &kv) |
Accessor to the value (ku,kv). | |
const v3 * | pointer () const |
export internal pointer | |
v3 * | pointer_unprotected () |
export internal pointer unprotected, use with care | |
Protected Member Functions | |
const v3 & | get (const unsigned int &ku, const unsigned int &kv) const |
getter fast but unprotected for heritage | |
void | assert_size (const unsigned int &ku, const unsigned int &kv) const |
ensure (ku,kv) is coherent with the size of the grid | |
Private Attributes | |
unsigned int | internal_size_u |
internal size in u | |
unsigned int | internal_size_v |
internal size in v | |
std::vector< v3 > | internal_data |
internal data |
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.
void cpe::surface_param::assert_size | ( | const unsigned int & | ku, | |
const unsigned int & | kv | |||
) | const [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().
const v3 & cpe::surface_param::get | ( | const unsigned int & | ku, | |
const unsigned int & | kv | |||
) | const [protected] |
getter fast but unprotected for heritage
References internal_data, and internal_size_u.
v3 & 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.
const v3 & 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.
const v3 * cpe::surface_param::pointer | ( | ) | const |
export internal pointer
References internal_data.
Referenced by cpe::surface_param_drawable::pointer_draw_vertices().
v3 * 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().
std::vector<v3> cpe::surface_param::internal_data [private] |
internal data
Referenced by get(), operator()(), pointer(), pointer_unprotected(), resize(), and surface_param().
unsigned int cpe::surface_param::internal_size_u [private] |
internal size in u
Referenced by assert_size(), get(), operator()(), resize(), and size_u().
unsigned int cpe::surface_param::internal_size_v [private] |
internal size in v
Referenced by assert_size(), resize(), and size_v().