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

Rotation -> PolyPtr

parent 57f45182
No related branches found
No related tags found
1 merge request!2696PolyItem -> PolyPtr, with BaseItem as separate template parameter
......@@ -15,7 +15,7 @@
#ifndef BORNAGAIN_GUI_MODEL_SAMPLE_ITEMWITHPARTICLES_H
#define BORNAGAIN_GUI_MODEL_SAMPLE_ITEMWITHPARTICLES_H
#include "GUI/Model/Descriptor/PolyItem.h"
#include "GUI/Model/Descriptor/PolyPtr.h"
#include "GUI/Model/Descriptor/VectorProperty.h"
#include "GUI/Model/Sample/Item3D.h"
#include "GUI/Model/Sample/RotationCatalog.h"
......@@ -36,7 +36,7 @@ public:
const VectorProperty& position() const { return m_position; }
void setPosition(const R3& position) { m_position.setR3(position); }
PolyItem<RotationCatalog>& rotationSelection() { return m_rotation; }
PolyPtr<RotationItem, RotationCatalog>& rotationSelection() { return m_rotation; }
//! nullptr is allowed and sets to "no rotation"
void setRotationType(RotationItem* p) { m_rotation.setCertainItem(p); }
......@@ -55,7 +55,7 @@ protected:
DoubleProperty m_abundance;
VectorProperty m_position;
PolyItem<RotationCatalog> m_rotation;
PolyPtr<RotationItem, RotationCatalog> m_rotation;
};
#endif // BORNAGAIN_GUI_MODEL_SAMPLE_ITEMWITHPARTICLES_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