1 #ifndef SIMPT_EDITOR_TISSUE_SLICER_H_INCLUDED
2 #define SIMPT_EDITOR_TISSUE_SLICER_H_INCLUDED
22 #include "../editor/EditControlLogic.h"
25 #include <QGraphicsLineItem>
26 #include <QGraphicsScene>
44 TissueSlicer(std::shared_ptr<EditControlLogic> tissue, QGraphicsScene* scene);
71 bool MoveCut(
const QPointF& point);
94 std::shared_ptr<EditControlLogic> m_tissue;
95 QGraphicsScene* m_scene;
97 std::list<SliceItem*> m_slices;
102 #endif // end_of_include_guard
Namespace for SimPT tissue editor package.
bool CutEnded() const
Checks whether the cut-action has ended.
see the online Qt documentation
bool MoveCut(const QPointF &point)
This procedure is for dynamically moving the line in the canvas (the first point is fixed)...
Functionality and visual representation of slicing a cell complex.
void EndCut()
End the cut procedure by putting a second point for the cut.
void Finished()
Emitted when the slicing has finished.
virtual ~TissueSlicer()
Destructor.
void StartCut(const QPointF &point)
Start the cut procedure by putting a starting point for the cut.
TissueSlicer(std::shared_ptr< EditControlLogic > tissue, QGraphicsScene *scene)
Constructor.
see the online Qt documentation