PLaSK library
|
This class is a 2D mesh which wraps 3D mesh (sourceMesh
), reduce each point of sourceMesh (in cylinder) to 2D and translate it by given vector (translation
).
More...
#include <plask/mesh/transformed.hpp>
Public Types | |
enum | { SRC_DIM = 3 } |
Number of source dimensions. More... | |
typedef Geometry3D | SourceGeometry |
Source geometry. | |
typedef Geometry2DCylindrical | TargetGeometry |
Target geometry. | |
Public Types inherited from plask::MeshD< 2 > | |
enum | |
Number of dimensions. More... | |
typedef Primitive< DIM >::DVec | LocalCoords |
Type of vector representing coordinates in local space. | |
typedef IndexedIterator< const MeshD< dimension >, LocalCoords > | const_iterator |
Random access iterator type which allow iterate over all points in this mesh, in order appointed by operator[]. | |
typedef const_iterator | iterator |
typedef const_iterator | Iterator |
Public Member Functions | |
CylReductionTo2DMesh (const shared_ptr< const MeshD< 3 > > sourceMesh, const Vec< 3, double > &translation=Primitive< 3 >::ZERO_VEC) | |
Vec< 2, double > | at (std::size_t index) const override |
Get point with given mesh index. | |
std::size_t | size () const override |
Vec< 3, double > | rVector (std::size_t index) const |
Public Member Functions inherited from plask::MeshD< 2 > | |
LocalCoords | operator[] (std::size_t index) const |
Get point with given mesh index. | |
const_iterator | begin () const |
const_iterator | end () const |
MeshD (const MeshD &PLASK_UNUSED(to_copy)) | |
Initialize this to be the same as to_copy but don't copy any changes observer. | |
MeshD () | |
MeshD & | operator= (const MeshD &PLASK_UNUSED(to_copy)) |
Set this to be the same as to_copy but doesn't changed changes observer. | |
bool | operator== (const MeshD &to_compare) const |
Check if this mesh and to_compare represent the same sequence of points (have exactly the same points in the same order). | |
bool | operator!= (const MeshD &to_compare) const |
Check if this mesh and to_compare represent different sequences of points. | |
void | print (std::ostream &out) const override |
Print this to stream out . | |
Public Member Functions inherited from plask::Mesh | |
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 bool | empty () const |
virtual void | writeXML (XMLElement &object) const |
Write mesh to XML. | |
virtual | ~Mesh () |
Public Member Functions inherited from plask::Printable | |
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 | |
Vec< 3, double > | translation |
const shared_ptr< const MeshD< 3 > > | sourceMesh |
Public Attributes inherited from plask::Mesh | |
boost::signals2::signal< void(Event &)> | changed |
Changed signal, fired when mesh was changed. | |
Additional Inherited Members | |
Protected Member Functions inherited from plask::MeshD< 2 > | |
virtual bool | hasSameNodes (const MeshD< dimension > &to_compare) const |
Check if this mesh and to_compare represent the same sequence of points (have exactly the same points in the same order). | |
Protected Member Functions inherited from plask::Mesh | |
virtual void | onChange (const Event &evt) |
This method is called when the mesh is changed, just before changed signal. | |
This class is a 2D mesh which wraps 3D mesh (sourceMesh
), reduce each point of sourceMesh (in cylinder) to 2D and translate it by given vector (translation
).
Definition at line 60 of file transformed.hpp.
Source geometry.
Definition at line 63 of file transformed.hpp.
Target geometry.
Definition at line 66 of file transformed.hpp.
|
inline |
Definition at line 75 of file transformed.hpp.
Get point with given mesh index.
index | index of point, from 0 to size()-1 |
index
Implements plask::MeshD< 2 >.
Definition at line 78 of file transformed.hpp.
Definition at line 86 of file transformed.hpp.
|
inlineoverridevirtual |
Implements plask::Mesh.
Definition at line 82 of file transformed.hpp.
Definition at line 73 of file transformed.hpp.
Definition at line 71 of file transformed.hpp.