Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfSecreteUptake.h
Go to the documentation of this file.
1/*******************************************************************************
2 * This file is part of mdcore.
3 * Copyright (c) 2022-2024 T.J. Sego
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 ******************************************************************************/
19
25#ifndef _MDCORE_INCLUDE_TFSECRETEUPTAKE_H_
26#define _MDCORE_INCLUDE_TFSECRETEUPTAKE_H_
27
28#include <mdcore_config.h>
29#include <state/tfSpeciesValue.h>
30#include "tfParticleList.h"
31
32#include <set>
33
34
35namespace TissueForge {
36
37
38 // Simple methods container
39 struct CAPI_EXPORT SecreteUptake {
40
41 static FPTYPE secrete(state::SpeciesValue *species, const FPTYPE &amount, const ParticleList &to);
42 static FPTYPE secrete(state::SpeciesValue *species, const FPTYPE &amount, const FPTYPE &distance);
43
44 };
45
46 CAPI_FUNC(HRESULT) Secrete_AmountToParticles(
47 struct state::SpeciesValue* species,
48 FPTYPE amount,
49 uint16_t nr_parts, int32_t *parts,
50 FPTYPE *secreted
51 );
52
53 CAPI_FUNC(HRESULT) Secrete_AmountWithinDistance(
54 struct state::SpeciesValue* species,
55 FPTYPE amount,
56 FPTYPE radius,
57 const std::set<short int> *typeIds,
58 FPTYPE *secreted
59 );
60
61};
62
63#endif // _MDCORE_INCLUDE_TFSECRETEUPTAKE_H_
Include Python header, disable linking to pythonX_d.lib on Windows in debug mode.
Definition tfAngleConfig.h:26
A special list with convenience methods for working with sets of particles.
Definition tfParticleList.h:52
Definition tfSecreteUptake.h:39
A working valued-object of an underlying Species attached to an object.
Definition tfSpeciesValue.h:43
int32_t HRESULT
Definition tf_port.h:255