PLaSK library

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
plask::GeometryObject::DeleteChanger Struct Reference

`#include <plask/geometry/object.hpp>`

Inheritance diagram for plask::GeometryObject::DeleteChanger:
[legend]
Collaboration diagram for plask::GeometryObject::DeleteChanger:
[legend]

## Public Member Functions
| DeleteChanger (shared_ptr< const GeometryObject > toDel)
bool | apply (shared_ptr< GeometryObject > &to_change, Vec< 3, double > *translation=0) const override
| Try to apply changes.
Public Member Functions inherited from plask::GeometryObject::Changer
virtual | ~Changer ()
| Virtual destructor. Do nothing.

## Public Attributes
shared_ptr< const GeometryObject > | toDel

## Detailed Description

Definition at line 424 of file object.hpp.

## Constructor & Destructor Documentation

## ◆ DeleteChanger()

plask::GeometryObject::DeleteChanger::DeleteChanger | ( | shared_ptr< const GeometryObject > | toDel | ) |
| inline

Definition at line 427 of file object.hpp.

## Member Function Documentation

## ◆ apply()

bool plask::GeometryObject::DeleteChanger::apply | ( | shared_ptr< GeometryObject > & | to_change,
|  | Vec< 3, double > * | translation = `0`
| ) |  | const
| override virtual

Try to apply changes.

Parameters

  [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)

Returns
  `true` only if something was changed, `false` if nothing was changed (in such case changer doesn't change arguments)

Implements plask::GeometryObject::Changer.

Definition at line 57 of file object.cpp.

## Member Data Documentation

## ◆ toDel

shared_ptr<const GeometryObject> plask::GeometryObject::DeleteChanger::toDel

Definition at line 425 of file object.hpp.

The documentation for this struct was generated from the following files:

- plask/geometry/object.hpp
- plask/geometry/object.cpp