28 #include <boost/polymorphic_cast.hpp>
30 using boost::polymorphic_downcast;
40 result =
new MaskContainerView(polymorphic_downcast<ProjectionContainerItem*>(item));
44 result =
new RectangleView(polymorphic_downcast<RectangleItem*>(item));
48 result =
new PolygonView(polymorphic_downcast<PolygonItem*>(item));
52 result =
new PolygonPointView(polymorphic_downcast<PolygonPointItem*>(item));
56 result =
new VerticalLineView(polymorphic_downcast<VerticalLineItem*>(item));
64 result =
new EllipseView(polymorphic_downcast<EllipseItem*>(item));
68 result =
new MaskAllView(polymorphic_downcast<MaskAllItem*>(item));
76 throw Error(
"MaskViewFactory::createSampleView() -> Error! "
77 "Can't create a view for "
Defines EllipseView class.
Defines classes VerticalLineView and HorizontalLineView.
Defines MaskAllView class.
Defines MaskContainerView class.
Defines MaskItems classes.
Defines class MaskViewFactory.
Defines PolygonPointView class.
Defines PolygonView class.
Defines items related to projections over color map.
Defines RegionOfInterestView class.
Defines class SessionItem.
This is a View of ellipse mask (represented by EllipseItem) on GraphicsScene. Given view follows stan...
This is a view of HorizontalLineItem mask.
Interface to adapt MaskItems coordinates (expressed in units of IntensityDataItem) to/from scene coor...
Main interface class for views representing MaskItems, Projections on graphics scene.
void setSceneAdaptor(const ISceneAdaptor *adaptor)
This is a view of MaskAllItem which covers whole detector plane with mask value=true.
Container holding various masks as children.
The MaskContainerView is nothing more than just transparent rectangle to cover axes area of ColorMapP...
static IShape2DView * createMaskView(SessionItem *item, ISceneAdaptor *adaptor=nullptr)
This is a View of polygon point for PolygonMaskItem.
This is a View of polygon mask (represented by PolygonItem) on GraphicsScene.
A container to hold ProjectionItems, intended to store projections of color map on X,...
This is a View of rectangular mask (represented by RectangleItem) on GraphicsScene....
The RegionOfInterest class represent view of RegionOfInterestItem on graphics scene.
Base class for a GUI data item.
bool hasModelType() const
QString modelType() const
Get model type.
This is a view of VerticalLineItem mask.