1 #ifndef VTESTBED_GUI_PLAINWAVEPANEL_HH 2 #define VTESTBED_GUI_PLAINWAVEPANEL_HH 7 #include <vtestbed/core/plain_wave_generator.hh> 8 #include <vtestbed/core/types.hh> 9 #include <vtestbed/core/units.hh> 25 using policy_type = vtb::core::Policy;
29 using constructor_type =
39 int _selectedIndex = 1;
45 inline void set_waves(
bool b) { this->_waves = b; }
46 inline bool get_waves() {
return this->_waves; }
52 inline amplitude_type amplitude()
const {
return this->_amplitude; }
53 inline length_type length()
const {
return this->_length; }
54 inline direction_type direction()
const {
return this->_direction; }
62 inline void add_wave(
const char* name) {
64 this->_names.emplace_back(name);
67 return make_plain_wave_generator<T,3>(
68 Wave(p->amplitude(), p->length(), p->direction()), policy);
70 this->_constructors.emplace_back(ctr);
78 #endif // vim:filetype=cpp
Wavy surface generator that produces elevation grid for individual wave.
Base class for wavy surface generators.
Base class for water waves.