Skip to content
Snippets Groups Projects
Commit 4d72a5da authored by Matthias Puchner's avatar Matthias Puchner
Browse files

use SelectionDescriptor in MesoCrystalItem

parent 84e6c96c
No related branches found
No related tags found
1 merge request!393Selection descriptor
......@@ -125,6 +125,11 @@ std::unique_ptr<IFormFactor> MesoCrystalItem::getOuterShape() const
return ff_item.createFormFactor();
}
SelectionDescriptor<FormFactorItem*> MesoCrystalItem::outerShape()
{
return SelectionDescriptor<FormFactorItem*>(item<GroupItem>(P_OUTER_SHAPE));
}
ItemWithParticles* MesoCrystalItem::basisParticle() const
{
return dynamic_cast<ItemWithParticles*>(getItem(T_BASIS_PARTICLE));
......
......@@ -17,6 +17,7 @@
#include "Base/Vector/Vectors3D.h"
#include "GUI/Models/ItemWithParticles.h"
#include "GUI/Models/SelectionDescriptor.h"
#include "Sample/Lattice/Lattice3D.h"
class FormFactorItem;
......@@ -46,6 +47,9 @@ public:
std::unique_ptr<IFormFactor> getOuterShape() const;
template <typename T> T* setOuterShapeType();
SelectionDescriptor<FormFactorItem*> outerShape();
ItemWithParticles* basisParticle() const;
void setVectorA(const R3& vector_a);
......
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