Skip to content
Snippets Groups Projects
Commit 10bf772e authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

IAbstractParticle: add Pargs based c'tor

parent ff8e6611
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,10 @@
#include "Core/Particle/IAbstractParticle.h"
IAbstractParticle::IAbstractParticle() : m_abundance(1.0) {}
IAbstractParticle::~IAbstractParticle() {}
IAbstractParticle::IAbstractParticle(const NodeMeta& meta, const std::vector<double>& PValues)
: ISample(meta, PValues)
{
}
void IAbstractParticle::accept(INodeVisitor* visitor) const
{
......
......@@ -29,8 +29,9 @@ class IRotation;
class BA_CORE_API_ IAbstractParticle : public ISample
{
public:
IAbstractParticle();
virtual ~IAbstractParticle();
IAbstractParticle() = default;
IAbstractParticle(const NodeMeta& meta, const std::vector<double>& PValues);
virtual ~IAbstractParticle() = default;
virtual IAbstractParticle* clone() const = 0;
......@@ -50,7 +51,7 @@ public:
virtual void rotate(const IRotation& rotation) = 0;
protected:
double m_abundance;
double m_abundance { 1.0 }; // not a Parameter
};
#endif // BORNAGAIN_CORE_PARTICLE_IABSTRACTPARTICLE_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment