PLaSK library
|
Base class for every mesh generator. More...
#include <plask/mesh/mesh.hpp>
Public Types | |
typedef EventWithSourceAndFlags< MeshGenerator > | Event |
Mesh generator event. | |
Public Member Functions | |
template<typename ClassT , typename methodT > | |
void | changedConnectMethod (ClassT *obj, methodT method, boost::signals2::connect_position at=boost::signals2::at_back) |
Connect a method to changed signal. | |
template<typename ClassT , typename methodT > | |
void | changedDisconnectMethod (ClassT *obj, methodT method) |
template<typename EventT = Event, typename ... Args> | |
void | fireChanged (Args &&... event_constructor_params_without_source) |
Call changed with this as event source. | |
virtual | ~MeshGenerator () |
Public Member Functions inherited from plask::MeshBase | |
virtual | ~MeshBase () |
Public Attributes | |
boost::signals2::signal< void(Event &)> | changed |
Changed signal, fired when space was changed. | |
Protected Member Functions | |
virtual void | onChange (const Event &evt) |
This method is called when the generator is changed, just before changed signal. | |
|
inlinevirtual |
|
inline |
Connect a method to changed signal.
obj,method | slot to connect, object and it's method |
at | specifies where the slot should be connected:
|
This method is called when the generator is changed, just before changed signal.
evt | triggering event |
Reimplemented in plask::MeshGeneratorD< MESH_DIM >, plask::MeshGeneratorD< 1 >, plask::MeshGeneratorD< 2 >, plask::MeshGeneratorD< 3 >, and plask::MeshGeneratorD< dim >.