PLaSK library
|
Base class for all the meshes. More...
#include <plask/mesh/mesh.hpp>
Classes | |
struct | Event |
Store information about event connected with mesh. More... | |
Public Member Functions | |
template<typename ClassT , typename methodT > | |
boost::signals2::connection | 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. | |
void | fireResized () |
This method is called when the mesh is resized. | |
virtual std::size_t | size () const =0 |
virtual bool | empty () const |
virtual void | writeXML (XMLElement &object) const |
Write mesh to XML. | |
virtual | ~Mesh () |
Public Member Functions inherited from plask::Printable | |
virtual void | print (std::ostream &out) const =0 |
Print this to stream out . | |
virtual | ~Printable () |
std::string | str () const |
Get string representation of this using print method. | |
Public Member Functions inherited from plask::MeshBase | |
virtual | ~MeshBase () |
Public Attributes | |
boost::signals2::signal< void(Event &)> | changed |
Changed signal, fired when mesh was changed. | |
Protected Member Functions | |
virtual void | onChange (const Event &evt) |
This method is called when the mesh is changed, just before changed signal. | |
Base class for all the meshes.
Mesh represent a set of points in 2D or 3D space and:
|
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:
|
true
only if mesh is empty (there are no points in mesh) Reimplemented in plask::ExtrudedTriangularMesh3D, plask::RectangularMesh2D, plask::RectangularMaskedMeshBase< DIM >::ElementMeshBase< MaskedMeshType >, plask::RectilinearMesh3D, plask::RegularAxis, and plask::TriangularMesh2D.
|
inline |
|
pure virtual |
Implemented in plask::optical::modal::LevelsAdapterRectangular< dim >::Mesh, plask::optical::modal::LevelsAdapterRectangular< dim >::Mesh, plask::MidpointAxis, plask::OnePointAxis, plask::OnePointMesh< DIM >, plask::TranslatedMesh< DIM >, plask::EquilateralMesh3D::Transformed, plask::ExtrudedTriangularMesh3D, plask::ExtrudedTriangularMesh3D::ElementMesh, plask::detail::FlatMesh, plask::LateralMesh3D< MeshT >, plask::MultiLateralMesh3D< MeshT >, plask::OrderedAxis, plask::RectangularMesh2D, plask::RectangularMaskedMeshBase< DIM >::ElementMeshBase< MaskedMeshType >, plask::RectilinearMesh3D, plask::RegularAxis, plask::ReductionTo2DMesh, plask::CylReductionTo2DMesh, plask::CartesianMesh2DTo3D, plask::CartesianMesh2DTo3DExtend, plask::PointsOnCircleMeshExtend, plask::TriangularMesh2D, plask::TriangularMesh2D::ElementMesh, plask::gain::freecarrier::ActiveRegionMesh, plask::optical::modal::LevelsAdapterGeneric< dim >::Mesh, and plask::optical::modal::LevelsAdapterRectangular< dim >::Mesh.
|
virtual |
Write mesh to XML.
object | XML object to write to |
Reimplemented in plask::OnePointMesh< DIM >, plask::OnePointMesh< DIM >, plask::OnePointMesh< DIM >, plask::OnePointMesh< DIM >, plask::OnePointMesh< DIM >, plask::ExtrudedTriangularMesh3D, plask::OrderedAxis, plask::RectangularMesh2D, plask::RectangularMesh3D, plask::RegularAxis, and plask::TriangularMesh2D.