PLaSK library
|
Generator of basic 2D geometry grid with approximately equal spacing. More...
#include <plask/mesh/generator_rectangular.hpp>
Public Member Functions | |
OrderedMesh1DRegularGenerator (double spacing, bool split=false) | |
Create generator. | |
shared_ptr< MeshD< 1 > > | generate (const shared_ptr< GeometryObjectD< 2 > > &geometry) override |
Public Member Functions inherited from plask::OrderedMesh1DSimpleGenerator | |
OrderedMesh1DSimpleGenerator (bool split=false) | |
Create generator. | |
shared_ptr< MeshD< 1 > > | generate (const shared_ptr< GeometryObjectD< 2 > > &geometry) override |
Public Member Functions inherited from plask::MeshGeneratorD< 1 > | |
virtual shared_ptr< MeshType > | generate (const GeometryPtr &geometry)=0 |
Generate new mesh. | |
void | clearCache () |
Clear the cache of generated meshes. | |
shared_ptr< MeshType > | operator() (const GeometryPtr &geometry) |
Get generated mesh if it is cached or create a new one. | |
shared_ptr< RequiredType > | get (const shared_ptr< GeometryObjectD< DIM > > &geometry) |
shared_ptr< RequiredType > | generate_t (const shared_ptr< GeometryObjectD< DIM > > &geometry) |
Public Member Functions inherited from plask::MeshGenerator | |
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 () |
Additional Inherited Members | |
Public Types inherited from plask::MeshGeneratorD< 1 > | |
enum | |
Number of geometry dimensions. More... | |
typedef MeshD< MESH_DIM > | MeshType |
Type of the generated mesh. | |
typedef shared_ptr< GeometryObjectD< DIM > > | GeometryPtr |
Public Types inherited from plask::MeshGenerator | |
typedef EventWithSourceAndFlags< MeshGenerator > | Event |
Mesh generator event. | |
Public Attributes inherited from plask::MeshGenerator | |
boost::signals2::signal< void(Event &)> | changed |
Changed signal, fired when space was changed. | |
Protected Member Functions inherited from plask::MeshGeneratorD< 1 > | |
void | onChange (const Event &) override |
This method is called when the generator is changed, just before changed signal. | |
Static Protected Member Functions inherited from plask::MeshGeneratorD< 1 > | |
static shared_ptr< RequiredType > | cast (const shared_ptr< MeshType > &res) |
Protected Attributes inherited from plask::OrderedMesh1DSimpleGenerator | |
bool | split |
Protected Attributes inherited from plask::MeshGeneratorD< 1 > | |
WeakCache< GeometryObject, MeshType, CacheRemoveOnEachChange > | cache |
Generator of basic 2D geometry grid with approximately equal spacing.
This generator respects existing object boundaries.
Definition at line 142 of file generator_rectangular.hpp.
|
inline |
Create generator.
spacing | approximate distance between mesh lines |
Definition at line 153 of file generator_rectangular.hpp.
|
override |
Definition at line 118 of file generator_rectangular.cpp.