VPTissue Reference Manual
SimPT_Editor::TissueSlicer Class Reference

Functionality and visual representation of slicing a cell complex. More...

#include <TissueSlicer.h>

Inheritance diagram for SimPT_Editor::TissueSlicer:
Inheritance graph
Collaboration diagram for SimPT_Editor::TissueSlicer:
Collaboration graph

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...
 

Detailed Description

Functionality and visual representation of slicing a cell complex.

Definition at line 34 of file TissueSlicer.h.

Constructor & Destructor Documentation

SimPT_Editor::TissueSlicer::TissueSlicer ( std::shared_ptr< EditControlLogic tissue,
QGraphicsScene *  scene 
)

Constructor.

Parameters
tissueThe tissue that will be sliced.
sceneThe scene for the representation (no ownership will be passed).

Definition at line 31 of file TissueSlicer.cpp.

Member Function Documentation

bool SimPT_Editor::TissueSlicer::CutEnded ( ) const

Checks whether the cut-action has ended.

Returns
True if 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.

Parameters
pointThe second point of the cut.

Definition at line 50 of file TissueSlicer.cpp.

References SimPT_Editor::PolygonUtils::SlicePolygon().

Here is the call graph for this function:

void SimPT_Editor::TissueSlicer::Finished ( )
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).

Parameters
pointThe new second point of the cut.
Returns
True if the cut can be moved (if the first point is different and the cut-action hasn't ended yet).

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.

Parameters
pointThe first point of the cut.

Definition at line 42 of file TissueSlicer.cpp.


The documentation for this class was generated from the following files: