DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Data associated with one marker. More...
Public Types | |
using | IDType = signed long long |
Public Member Functions | |
constexpr | MarkerType (QGraphicsPolygonItem *Marker, const QPoint &MarkerPos, bool IsUserDeletable=true, IDType ID=-1, const QPointF &ImagePos={}) noexcept |
Constructs a marker assigning the properties passed as arguments. Name will stay empty. More... | |
Getters | |
constexpr auto | GetMarker () noexcept |
constexpr const auto | GetMarker () const noexcept |
constexpr const auto & | GetMarkerPos () const noexcept |
constexpr bool | IsUserDeletable () const noexcept |
constexpr auto | GetID () const noexcept |
constexpr std::string_view | GetName () const noexcept |
constexpr const auto & | GetImagePos () const noexcept |
Setters | |
void | SetName (std::string_view NewName) |
Private Attributes | |
Non-const properties | |
Not const to ensure move-assignability | |
QGraphicsPolygonItem * | Marker |
Qt polygon object to draw the marker onto the graphics view. More... | |
QPoint | MarkerPos |
Position of the marker within the graphics view in pixels. More... | |
bool | UserDeletable |
Determines whether the user can interact with this marker to delete it. More... | |
IDType | ID |
ID of the marker to identify it amongst other markers in the same graphics view. More... | |
std::string | Name |
Name of the marker to describe it. More... | |
QPointF | ImagePos |
Position in nm (e.g. of a sample under a microscope) where the associated image the marker belongs to was recorded. More... | |
using Util::MarkerGraphicsView::MarkerType::IDType = signed long long |
|
inlineconstexprnoexcept |
Constructs a marker assigning the properties passed as arguments. Name
will stay empty.
Marker | Refer to MarkerType::Marker. |
MarkerPos | Refer to MarkerType::MarkerPos. |
IsUserDeletable | Refer to MarkerType::UserDeletable. |
ID | Refer to MarkerType::ID. |
ImagePos | Refer to MarkerType::ImagePos. |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
void Util::MarkerGraphicsView::MarkerType::SetName | ( | std::string_view | NewName | ) |
Definition at line 291 of file QtUtil.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |