Skip to content
Snippets Groups Projects
Commit ef61f30c authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

fix limits

parent 281d1499
No related branches found
No related tags found
1 merge request!2214Mask coordinates are mostly limitless (#877)
Pipeline #122911 passed
......@@ -118,10 +118,10 @@ void MaskItem::readFrom(QXmlStreamReader* r)
RectangleItem::RectangleItem()
{
setMaskName("RectangleMask");
m_xLow.init("x left", "left x coordinate", 0, 4, RealLimits::limited(0., 4091.), "xLow");
m_xUp.init("x right", "right x coordinate", 0, 4, RealLimits::limited(0., 4091.), "xUp");
m_yLow.init("y bottom", "bottom y coordinate", 0, 4, RealLimits::limited(0., 4091.), "yLow");
m_yUp.init("y top", "top y coordinate", 0, 4, RealLimits::limited(0., 4091.), "yUp");
m_xLow.init("x left", "left x coordinate", 0, 4, RealLimits::limitless(), "xLow");
m_xUp.init("x right", "right x coordinate", 0, 4, RealLimits::limitless(), "xUp");
m_yLow.init("y bottom", "bottom y coordinate", 0, 4, RealLimits::limitless(), "yLow");
m_yUp.init("y top", "top y coordinate", 0, 4, RealLimits::limitless(), "yUp");
}
std::unique_ptr<IShape2D> RectangleItem::createShape() const
......@@ -237,8 +237,8 @@ std::unique_ptr<IShape2D> RegionOfInterestItem::createShape() const
PolygonPointItem::PolygonPointItem()
{
m_posX.init("x", "x coordinate", 0, 4, RealLimits::limited(0., 4091.), "xPos");
m_posY.init("y", "y coordinate", 0, 4, RealLimits::limited(0., 4091.), "yPos");
m_posX.init("x", "x coordinate", 0, 4, RealLimits::limitless(), "xPos");
m_posY.init("y", "y coordinate", 0, 4, RealLimits::limitless(), "yPos");
}
void PolygonPointItem::setPosX(double val)
......@@ -366,7 +366,7 @@ void PolygonItem::readFrom(QXmlStreamReader* r)
VerticalLineItem::VerticalLineItem()
{
setMaskName("VerticalLineMask");
m_posX.init("x", "x coordinate", 0, 4, RealLimits::limited(0., 4091.), "xPos");
m_posX.init("x", "x coordinate", 0, 4, RealLimits::limitless(), "xPos");
}
std::unique_ptr<IShape2D> VerticalLineItem::createShape() const
......@@ -422,7 +422,7 @@ void VerticalLineItem::readFrom(QXmlStreamReader* r)
HorizontalLineItem::HorizontalLineItem()
{
setMaskName("HorizontalLineMask");
m_posY.init("y", "y coordinate", 0, 4, RealLimits::limited(0., 4091.), "yPos");
m_posY.init("y", "y coordinate", 0, 4, RealLimits::limitless(), "yPos");
}
std::unique_ptr<IShape2D> HorizontalLineItem::createShape() const
......@@ -478,10 +478,10 @@ void HorizontalLineItem::readFrom(QXmlStreamReader* r)
EllipseItem::EllipseItem()
{
setMaskName("EllipseMask");
m_xCenter.init("x center", "x center", 0, 4, RealLimits::limited(0., 4091.), "xCenter");
m_yCenter.init("y center", "y center", 0, 4, RealLimits::limited(0., 4091.), "yCenter");
m_xRadius.init("x radius", "x radius", 0, 4, RealLimits::limited(0., 4091.), "xRadius");
m_yRadius.init("y radius", "y radius", 0, 4, RealLimits::limited(0., 4091.), "yRadius");
m_xCenter.init("x center", "x center", 0, 4, RealLimits::limitless(), "xCenter");
m_yCenter.init("y center", "y center", 0, 4, RealLimits::limitless(), "yCenter");
m_xRadius.init("x radius", "x radius", 0, 4, RealLimits::lowerLimited(0.), "xRadius");
m_yRadius.init("y radius", "y radius", 0, 4, RealLimits::lowerLimited(0.), "yRadius");
m_angle.init("angle", "angle", 0, 4, RealLimits::limited(0., 360.), "angle");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment