ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
script_interface/shapes/SimplePore.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017-2022 The ESPResSo project
3 *
4 * This file is part of ESPResSo.
5 *
6 * ESPResSo is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ESPResSo is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef SCRIPT_INTERFACE_SHAPES_SIMPLE_PORE_HPP
21#define SCRIPT_INTERFACE_SHAPES_SIMPLE_PORE_HPP
22
23#include "Shape.hpp"
24
25#include <shapes/SimplePore.hpp>
26
27#include <memory>
28
29namespace ScriptInterface {
30namespace Shapes {
31
32class SimplePore : public Shape {
34 std::shared_ptr<::Shapes::SimplePore> m_simple_pore;
35
36public:
37 SimplePore() : m_simple_pore(std::make_shared<::Shapes::SimplePore>()) {
39 {{"radius", m_simple_pore, &CoreShape::set_radius, &CoreShape::radius},
40 {"length", m_simple_pore, &CoreShape::set_length, &CoreShape::length},
41 {"smoothing_radius", m_simple_pore, &CoreShape::set_smoothing_radius,
42 &CoreShape::smoothing_radius},
43 {"axis", m_simple_pore, &CoreShape::set_axis, &CoreShape::axis},
44 {"center", m_simple_pore, &CoreShape::center}});
45 }
46
47 std::shared_ptr<::Shapes::Shape> shape() const override {
48 return m_simple_pore;
49 }
50};
51} // namespace Shapes
52} // namespace ScriptInterface
53
54#endif
void add_parameters(std::vector< AutoParameter > &&params)
std::shared_ptr<::Shapes::Shape > shape() const override