
Public Member Functions | |
| grid () | |
| empty constructor | |
| grid (const unsigned int &Nu, const unsigned int &Nv) | |
| direct constructor with size | |
| 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). | |
| patch4 | get_patch (const unsigned int &k_patch_u, const unsigned int &k_patch_v) const |
| get a 4x4 patch | |
| void | build_meshgrid () |
| build Matlab meshgrid style from 1 to size | |
| void | build_sphere () |
| build spherical distribution | |
| grid & | operator*= (const double &s) |
| scale the grid homogeneously by a scalar | |
| grid & | operator+= (const v3 &t) |
| translate the grid | |
| grid & | operator-= (const v3 &t) |
| translate the grid | |
| grid | operator- () const |
| negation positions of the grid | |
| void | add_back_u () |
| add a line of grid in the u direction at the end | |
| void | add_front_u () |
| add a line of grid in the u direction at the beginning | |
| void | add_back_v () |
| add a line of grid in the v direction at the end | |
| void | add_front_v () |
| add a line of grid in the v direction at the beginning | |
| void | suppress_back_u () |
| suppress a line of grid in the u direction at the end | |
| void | suppress_front_u () |
| suppress a line of grid in the u direction at the beginning | |
| void | suppress_back_v () |
| suppress a line of grid in the v direction at the end | |
| void | suppress_front_v () |
| suppress a line of grid in the v direction at the beginning | |
| void | duplicate_boundary () |
| duplicate positions at the boundaries | |
| void | write (const std::string &filename) |
| Write grid into a file. | |
Static Public Member Functions | |
| static grid | read (const std::string &filename) |
| Read grid from a file. | |
Private Member Functions | |
| 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 u | |
| unsigned int | internal_size_v |
| internal size v | |
| std::vector< v3 > | internal_data |
| Internal storage under the form: ku+Nu*kv. | |
Friends | |
| grid | operator* (const double &s, const grid &g) |
| scale the grid homogeneously by a scalar | |
| grid | operator* (const grid &g, const double &s) |
| scale the grid homogeneously by a scalar | |
| grid | operator+ (const grid &g, const v3 &t) |
| translate the grid | |
| grid | operator+ (const v3 &t, const grid &g) |
| translate the grid | |
| grid | operator- (const grid &g, const v3 &t) |
| translate the grid | |
| grid | operator- (const v3 &t, const grid &g) |
| translate the grid | |
| cpe::grid::grid | ( | ) |
empty constructor
| cpe::grid::grid | ( | const unsigned int & | Nu, | |
| const unsigned int & | Nv | |||
| ) |
direct constructor with size
References internal_data.
| void cpe::grid::add_back_u | ( | ) |
add a line of grid in the u direction at the end
References internal_size_u, and internal_size_v.
| void cpe::grid::add_back_v | ( | ) |
add a line of grid in the v direction at the end
References internal_size_u, and internal_size_v.
| void cpe::grid::add_front_u | ( | ) |
add a line of grid in the u direction at the beginning
References internal_size_u, and internal_size_v.
| void cpe::grid::add_front_v | ( | ) |
add a line of grid in the v direction at the beginning
References internal_size_u, and internal_size_v.
| void cpe::grid::assert_size | ( | const unsigned int & | ku, | |
| const unsigned int & | kv | |||
| ) | const [private] |
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 get_patch(), and operator()().

| void cpe::grid::build_meshgrid | ( | ) |
build Matlab meshgrid style from 1 to size
References internal_data, internal_size_u, internal_size_v, cpe::v3::x(), and cpe::v3::y().

| void cpe::grid::build_sphere | ( | ) |
build spherical distribution
References internal_size_u, and internal_size_v.
| void cpe::grid::duplicate_boundary | ( | ) |
duplicate positions at the boundaries
References internal_size_u, and internal_size_v.
| patch4 cpe::grid::get_patch | ( | const unsigned int & | k_patch_u, | |
| const unsigned int & | k_patch_v | |||
| ) | const |
get a 4x4 patch
References assert_size(), internal_data, and internal_size_u.

| v3 & cpe::grid::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::grid::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.

| grid & cpe::grid::operator*= | ( | const double & | s | ) |
scale the grid homogeneously by a scalar
References internal_data.
translate the grid
References internal_data.
| grid cpe::grid::operator- | ( | ) | const |
negation positions of the grid
translate the grid
References internal_data.
| grid cpe::grid::read | ( | const std::string & | filename | ) | [static] |
Read grid from a file.
| void cpe::grid::resize | ( | const unsigned int & | Nu, | |
| const unsigned int & | Nv | |||
| ) |
resize the grid
References internal_data, internal_size_u, and internal_size_v.
Referenced by scene::load_model().
| const unsigned int cpe::grid::size_u | ( | ) | const |
return the size in u direction
References internal_size_u.
Referenced by cpe::opengl_drawer::draw(), and scene::draw_scene().
| const unsigned int cpe::grid::size_v | ( | ) | const |
return the size in v direction
References internal_size_v.
Referenced by cpe::opengl_drawer::draw(), and scene::draw_scene().
| void cpe::grid::suppress_back_u | ( | ) |
suppress a line of grid in the u direction at the end
References internal_size_u, and internal_size_v.
| void cpe::grid::suppress_back_v | ( | ) |
suppress a line of grid in the v direction at the end
References internal_size_u, and internal_size_v.
| void cpe::grid::suppress_front_u | ( | ) |
suppress a line of grid in the u direction at the beginning
References internal_size_u, and internal_size_v.
| void cpe::grid::suppress_front_v | ( | ) |
suppress a line of grid in the v direction at the beginning
References internal_size_u, and internal_size_v.
| void cpe::grid::write | ( | const std::string & | filename | ) |
Write grid into a file.
References internal_data, internal_size_u, internal_size_v, cpe::v3::x(), cpe::v3::y(), and cpe::v3::z().

scale the grid homogeneously by a scalar
scale the grid homogeneously by a scalar
std::vector<v3> cpe::grid::internal_data [private] |
Internal storage under the form: ku+Nu*kv.
Referenced by build_meshgrid(), get_patch(), grid(), operator()(), operator*=(), operator+=(), operator-=(), resize(), and write().
unsigned int cpe::grid::internal_size_u [private] |
internal size u
Referenced by add_back_u(), add_back_v(), add_front_u(), add_front_v(), assert_size(), build_meshgrid(), build_sphere(), duplicate_boundary(), get_patch(), operator()(), resize(), size_u(), suppress_back_u(), suppress_back_v(), suppress_front_u(), suppress_front_v(), and write().
unsigned int cpe::grid::internal_size_v [private] |
internal size v
Referenced by add_back_u(), add_back_v(), add_front_u(), add_front_v(), assert_size(), build_meshgrid(), build_sphere(), duplicate_boundary(), resize(), size_v(), suppress_back_u(), suppress_back_v(), suppress_front_u(), suppress_front_v(), and write().
1.6.3