PLaSK library
|
Base class for geometry changers. More...
#include <plask/geometry/object.hpp>
Public Member Functions | |
virtual | ~Changer () |
Virtual destructor. Do nothing. | |
virtual bool | apply (shared_ptr< GeometryObject > &to_change, Vec< 3, double > *translation=0) const =0 |
Try to apply changes. | |
Base class for geometry changers.
Geometry changer can change GeometryObject to another one.
Definition at line 325 of file object.hpp.
|
inlinevirtual |
Virtual destructor. Do nothing.
Definition at line 327 of file object.hpp.
|
pure virtual |
Try to apply changes.
[in,out] | to_change | pointer to object which eventually will be changed (in such case pointer after call can point to another geometry object) |
[out] | translation | optional, extra translation for object after change (in case of 2d object caller reads only tran and up components of this vector) |
true
only if something was changed, false
if nothing was changed (in such case changer doesn't change arguments) Implemented in plask::GeometryObject::CompositeChanger, plask::GeometryObject::ReplaceChanger, and plask::GeometryObject::DeleteChanger.