1 #ifndef SIMPT_EDITOR_SLICE_ITEM_H_INCLUDED
2 #define SIMPT_EDITOR_SLICE_ITEM_H_INCLUDED
24 #include <QGraphicsPolygonItem>
25 #include <QGraphicsScene>
38 SliceItem(
const QPolygonF& polygon,
const QLineF& cut, std::shared_ptr<EditControlLogic> tissue, QGraphicsScene* scene);
47 virtual QVariant itemChange(GraphicsItemChange change,
const QVariant& value);
49 virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event);
51 virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event);
57 std::shared_ptr<EditControlLogic> m_tissue;
58 QGraphicsScene* m_scene;
60 static constexpr
double g_accuracy = 1.0e-12;
65 #endif // end_of_include_guard
Represents a slice of a cell complex.
Namespace for SimPT tissue editor package.
see the online Qt documentation
SliceItem(const QPolygonF &polygon, const QLineF &cut, std::shared_ptr< EditControlLogic > tissue, QGraphicsScene *scene)
Constructor.
virtual ~SliceItem()
Destructor.
see the online Qt documentation
Interface for LeafControlLogic.