Data associated with one marker.
More...
#include <QtUtil.h>
|
using | IDType = signed long long |
|
|
|
Not const to ensure move-assignability
|
QGraphicsPolygonItem * | Marker |
| Qt polygon object to draw the marker onto the graphics view.
|
|
QPoint | MarkerPos |
| Position of the marker within the graphics view in pixels.
|
|
bool | UserDeletable |
| Determines whether the user can interact with this marker to delete it.
|
|
IDType | ID |
| ID of the marker to identify it amongst other markers in the same graphics view.
|
|
std::string | Name |
| Name of the marker to describe it.
|
|
QPointF | ImagePos |
| Position in nm (e.g. of a sample under a microscope) where the associated image the marker belongs to was recorded.
|
|
Data associated with one marker.
Definition at line 390 of file QtUtil.h.
◆ IDType
◆ MarkerType()
constexpr Util::MarkerGraphicsView::MarkerType::MarkerType |
( |
QGraphicsPolygonItem * |
Marker, |
|
|
const QPoint & |
MarkerPos, |
|
|
bool |
IsUserDeletable = true , |
|
|
IDType |
ID = -1 , |
|
|
const QPointF & |
ImagePos = {} |
|
) |
| |
|
inlineconstexprnoexcept |
Constructs a marker assigning the properties passed as arguments. Name
will stay empty.
- Parameters
-
Definition at line 402 of file QtUtil.h.
◆ GetID()
constexpr auto Util::MarkerGraphicsView::MarkerType::GetID |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ GetImagePos()
constexpr const auto & Util::MarkerGraphicsView::MarkerType::GetImagePos |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ GetMarker() [1/2]
constexpr const auto Util::MarkerGraphicsView::MarkerType::GetMarker |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ GetMarker() [2/2]
constexpr auto Util::MarkerGraphicsView::MarkerType::GetMarker |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ GetMarkerPos()
constexpr const auto & Util::MarkerGraphicsView::MarkerType::GetMarkerPos |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ GetName()
constexpr std::string_view Util::MarkerGraphicsView::MarkerType::GetName |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ IsUserDeletable()
constexpr bool Util::MarkerGraphicsView::MarkerType::IsUserDeletable |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ SetName()
void Util::MarkerGraphicsView::MarkerType::SetName |
( |
std::string_view |
NewName | ) |
|
◆ ID
IDType Util::MarkerGraphicsView::MarkerType::ID |
|
private |
ID of the marker to identify it amongst other markers in the same graphics view.
Definition at line 431 of file QtUtil.h.
◆ ImagePos
QPointF Util::MarkerGraphicsView::MarkerType::ImagePos |
|
private |
Position in nm (e.g. of a sample under a microscope) where the associated image the marker belongs to was recorded.
Definition at line 433 of file QtUtil.h.
◆ Marker
QGraphicsPolygonItem* Util::MarkerGraphicsView::MarkerType::Marker |
|
private |
Qt polygon object to draw the marker onto the graphics view.
Definition at line 428 of file QtUtil.h.
◆ MarkerPos
QPoint Util::MarkerGraphicsView::MarkerType::MarkerPos |
|
private |
Position of the marker within the graphics view in pixels.
Definition at line 429 of file QtUtil.h.
◆ Name
std::string Util::MarkerGraphicsView::MarkerType::Name |
|
private |
Name of the marker to describe it.
Definition at line 432 of file QtUtil.h.
◆ UserDeletable
bool Util::MarkerGraphicsView::MarkerType::UserDeletable |
|
private |
Determines whether the user can interact with this marker to delete it.
Definition at line 430 of file QtUtil.h.
The documentation for this struct was generated from the following files: