![]() |
VPTissue Reference Manual
|
Functionality and visual representation of slicing a cell complex. More...
#include <TissueSlicer.h>


Signals | |
| void | Finished () |
| Emitted when the slicing has finished. More... | |
Public Member Functions | |
| TissueSlicer (std::shared_ptr< EditControlLogic > tissue, QGraphicsScene *scene) | |
| Constructor. More... | |
| virtual | ~TissueSlicer () |
| Destructor. | |
| bool | CutEnded () const |
| Checks whether the cut-action has ended. More... | |
| void | EndCut () |
| End the cut procedure by putting a second point for the cut. More... | |
| bool | MoveCut (const QPointF &point) |
| This procedure is for dynamically moving the line in the canvas (the first point is fixed). More... | |
| void | StartCut (const QPointF &point) |
| Start the cut procedure by putting a starting point for the cut. More... | |
Functionality and visual representation of slicing a cell complex.
Definition at line 34 of file TissueSlicer.h.
| SimPT_Editor::TissueSlicer::TissueSlicer | ( | std::shared_ptr< EditControlLogic > | tissue, |
| QGraphicsScene * | scene | ||
| ) |
Constructor.
| tissue | The tissue that will be sliced. |
| scene | The scene for the representation (no ownership will be passed). |
Definition at line 31 of file TissueSlicer.cpp.
| bool SimPT_Editor::TissueSlicer::CutEnded | ( | ) | const |
Checks whether the cut-action has ended.
Definition at line 78 of file TissueSlicer.cpp.
| void SimPT_Editor::TissueSlicer::EndCut | ( | ) |
End the cut procedure by putting a second point for the cut.
| point | The second point of the cut. |
Definition at line 50 of file TissueSlicer.cpp.
References SimPT_Editor::PolygonUtils::SlicePolygon().

|
signal |
Emitted when the slicing has finished.
The object has to be deleted later.
| bool SimPT_Editor::TissueSlicer::MoveCut | ( | const QPointF & | point | ) |
This procedure is for dynamically moving the line in the canvas (the first point is fixed).
| point | The new second point of the cut. |
Definition at line 66 of file TissueSlicer.cpp.
| void SimPT_Editor::TissueSlicer::StartCut | ( | const QPointF & | point | ) |
Start the cut procedure by putting a starting point for the cut.
| point | The first point of the cut. |
Definition at line 42 of file TissueSlicer.cpp.