Unit tests for testing seam allowance.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-18 12:58:47 +02:00
parent a284ac024e
commit 726d8614dc
8 changed files with 1998 additions and 3 deletions

View File

@ -0,0 +1,162 @@
<?xml version='1.0' encoding='UTF-8'?>
<pattern>
<!--Pattern created with Valentina (http://www.valentina-project.org/).-->
<version>0.4.0</version>
<unit>cm</unit>
<author/>
<description/>
<notes/>
<measurements>merki27.vit</measurements>
<increments/>
<draw name="Чертеж 1">
<calculation>
<point type="single" x="0.79375" y="1.05833" id="1" name="А" mx="0.132292" my="0.264583"/>
<point type="endLine" typeLine="hair" id="2" name="А1" basePoint="1" mx="0.132292" lineColor="black" angle="270" my="0.264583" length="neck_back_to_waist_b"/>
<point type="endLine" typeLine="hair" id="3" name="А2" basePoint="2" mx="0.132292" lineColor="black" angle="0" my="0.264583" length="lowbust_circ/2+6"/>
<point type="alongLine" typeLine="none" id="4" name="А3" firstPoint="1" secondPoint="2" mx="0.0821985" lineColor="black" my="0.21449" length="lowbust_circ/12+13.7"/>
<point type="pointOfIntersection" id="5" name="А4" firstPoint="3" secondPoint="4" mx="0.132292" my="0.264583"/>
<line typeLine="hair" id="6" firstPoint="5" secondPoint="3" lineColor="black"/>
<point type="endLine" typeLine="hair" id="7" name="А5" basePoint="4" mx="0.132292" lineColor="black" angle="0" my="0.264583" length="lowbust_circ/8+7.4"/>
<point type="pointOfIntersection" id="8" name="А6" firstPoint="7" secondPoint="1" mx="0.132292" my="0.264583"/>
<line typeLine="hair" id="9" firstPoint="1" secondPoint="8" lineColor="black"/>
<point type="alongLine" typeLine="none" id="10" name="А7" firstPoint="1" secondPoint="4" mx="0.132292" lineColor="black" my="0.264583" length="8"/>
<point type="pointOfIntersection" id="11" name="А8" firstPoint="8" secondPoint="10" mx="0.132292" my="0.264583"/>
<line typeLine="hair" id="12" firstPoint="10" secondPoint="11" lineColor="black"/>
<line typeLine="hair" id="14" firstPoint="11" secondPoint="7" lineColor="black"/>
<point type="alongLine" typeLine="none" id="15" name="А9" firstPoint="11" secondPoint="7" mx="0.132292" lineColor="black" my="0.264583" length="(Line_А8_А5/2)+0.5"/>
<point type="endLine" typeLine="hair" id="16" name="А10" basePoint="5" mx="0.132292" lineColor="black" angle="90" my="0.264583" length="lowbust_circ/5+8.3+1"/>
<point type="endLine" typeLine="hair" id="17" name="А11" basePoint="5" mx="0.132292" lineColor="black" angle="180" my="0.264583" length="lowbust_circ/8+6.2"/>
<point type="pointOfIntersection" id="18" name="А12" firstPoint="17" secondPoint="16" mx="0.132292" my="0.264583"/>
<line typeLine="hair" id="19" firstPoint="18" secondPoint="17" lineColor="black"/>
<line typeLine="hair" id="20" firstPoint="18" secondPoint="16" lineColor="black"/>
<point type="alongLine" typeLine="none" id="21" name="А13" firstPoint="17" secondPoint="7" mx="0.132292" lineColor="black" my="0.264583" length="lowbust_circ/32"/>
<point type="pointOfIntersection" id="22" name="А14" firstPoint="21" secondPoint="15" mx="0.132292" my="0.264583"/>
<point type="alongLine" typeLine="none" id="23" name="А15" firstPoint="5" secondPoint="17" mx="0.182385" lineColor="black" my="0.264583" length="(Line_А4_А11/2)+0.7"/>
<line typeLine="hair" id="24" firstPoint="22" secondPoint="23" lineColor="black"/>
<line typeLine="hair" id="25" firstPoint="21" secondPoint="17" lineColor="black"/>
<line typeLine="hair" id="26" firstPoint="21" secondPoint="22" lineColor="black"/>
<line typeLine="hair" id="27" firstPoint="11" secondPoint="8" lineColor="black"/>
<line typeLine="hair" id="28" firstPoint="7" secondPoint="21" lineColor="black"/>
<point type="alongLine" typeLine="none" id="29" name="А16" firstPoint="7" secondPoint="21" mx="0.132292" lineColor="black" my="0.264583" length="Line_А5_А13/2"/>
<point type="pointOfIntersection" id="30" name="А17" firstPoint="29" secondPoint="2" mx="0.132292" my="0.264583"/>
<line typeLine="hair" id="31" firstPoint="29" secondPoint="30" lineColor="black"/>
<point type="alongLine" typeLine="none" id="32" name="А18" firstPoint="10" secondPoint="11" mx="0.132292" lineColor="black" my="0.264583" length="(Line_А7_А8/2)+1"/>
<point type="alongLine" typeLine="none" id="33" name="А19" firstPoint="16" secondPoint="18" mx="0.172819" lineColor="black" my="0.264583" length="lowbust_circ/24+3.4"/>
<point type="alongLine" typeLine="none" id="34" name="А20" firstPoint="16" secondPoint="5" mx="0.132292" lineColor="black" my="0.264583" length="Line_А10_А19+0.5"/>
<point type="pointOfIntersection" id="35" name="А21" firstPoint="33" secondPoint="34" mx="0.132292" my="0.264583"/>
<line typeLine="hair" id="38" firstPoint="35" secondPoint="16" lineColor="black"/>
<point type="alongLine" typeLine="none" id="39" name="А22" firstPoint="35" secondPoint="16" mx="0.132292" lineColor="black" my="0.264583" length="(Line_А21_А10/3)-0.5"/>
<spline point4="34" type="simpleInteractive" angle1="cos=270" angle2="sin=180" id="40" length1="4.89524" color="black" length2="4.34579" point1="33"/>
<line typeLine="hair" id="41" firstPoint="34" secondPoint="35" lineColor="black"/>
<line typeLine="hair" id="42" firstPoint="33" secondPoint="35" lineColor="black"/>
<point type="alongLine" typeLine="none" id="43" name="А23" firstPoint="33" secondPoint="18" mx="0.132292" lineColor="black" my="0.264583" length="8"/>
<point type="endLine" typeLine="none" id="44" name="А24" basePoint="43" mx="0.132292" lineColor="black" angle="270" my="0.264583" length="3.2"/>
<point type="lineIntersect" id="45" name="А25" p2Line1="44" p2Line2="17" p1Line1="33" p1Line2="18" mx="0.132292" my="0.264583"/>
<point type="alongLine" typeLine="none" id="46" name="А26" firstPoint="33" secondPoint="45" mx="0.132292" lineColor="black" my="0.264583" length="Line_А19_А25+1.8"/>
<point type="alongLine" typeLine="none" id="47" name="А27" firstPoint="1" secondPoint="8" mx="-0.514964" lineColor="black" my="0.552252" length="Line_А10_А19+0.2"/>
<point type="endLine" typeLine="hair" id="48" name="А28" basePoint="47" mx="-1.00881" lineColor="black" angle="90" my="-1.66652" length="Line_А_А27/3"/>
<spline point4="48" type="simpleInteractive" angle1="max=0" angle2="235.888" id="49" length1="2.42673" color="black" length2="3.03166" point1="1"/>
<point type="endLine" typeLine="none" id="50" name="А29" basePoint="48" mx="-0.745481" lineColor="black" angle="0" my="-1.52022" length="8"/>
<point type="endLine" typeLine="none" id="51" name="А30" basePoint="50" mx="0.132292" lineColor="black" angle="270" my="0.264583" length="2.6"/>
<point type="pointOfIntersection" id="52" name="А31" firstPoint="32" secondPoint="48" mx="-0.921036" my="-1.57874"/>
<point type="lineIntersect" id="53" name="А32" p2Line1="51" p2Line2="32" p1Line1="48" p1Line2="52" mx="-2.0914" my="-1.31541"/>
<point type="alongLine" typeLine="none" id="54" name="А33" firstPoint="53" secondPoint="51" mx="-1.82807" lineColor="black" my="0.0305105" length="1.5"/>
<point type="alongLine" typeLine="none" id="55" name="А34" firstPoint="54" secondPoint="51" mx="0.34558" lineColor="black" my="4.05045" length="lowbust_circ/32-0.8"/>
<point type="alongLine" typeLine="none" id="56" name="А35" firstPoint="48" secondPoint="51" mx="0.132292" lineColor="black" my="0.264583" length="Line_А19_А26+Line_А33_А34"/>
<point dartP3="55" type="trueDarts" my1="-1.63726" my2="-2.89101" id="57" mx1="-0.423631" mx2="2.30483" name1="А36" point1="58" baseLineP1="48" point2="59" name2="А37" dartP1="54" baseLineP2="56" dartP2="32"/>
<line typeLine="hair" id="60" firstPoint="48" secondPoint="58" lineColor="black"/>
<line typeLine="hair" id="61" firstPoint="32" secondPoint="58" lineColor="black"/>
<line typeLine="hair" id="62" firstPoint="32" secondPoint="59" lineColor="black"/>
<line typeLine="hair" id="63" firstPoint="59" secondPoint="56" lineColor="black"/>
<point type="alongLine" typeLine="none" id="64" name="А38" firstPoint="33" secondPoint="44" mx="0.132292" lineColor="black" my="0.264583" length="Line_А28_А36"/>
<line typeLine="hair" id="65" firstPoint="33" secondPoint="64" lineColor="black"/>
<line typeLine="hair" id="66" firstPoint="23" secondPoint="64" lineColor="black"/>
<arc type="simple" angle1="AngleLine_А15_А38" angle2="180" id="67" radius="Line_А14_А15" center="23" color="black"/>
<point type="cutArc" arc="67" id="68" name="А39" mx="0.132292" my="0.264583" length="lowbust_circ/12-3.2"/>
<point type="alongLine" typeLine="none" id="69" name="А40" firstPoint="23" secondPoint="68" mx="-1.12242" lineColor="black" my="-1.69277" length="Line_А15_А38"/>
<line typeLine="hair" id="70" firstPoint="23" secondPoint="69" lineColor="black"/>
<operation type="rotation" suffix="а1" id="71" center="23" angle="AngleLine_А15_А40-AngleLine_А15_А38">
<source>
<item idObject="46"/>
</source>
<destination>
<item idObject="72" mx="0.132292" my="0.264583"/>
</destination>
</operation>
<line typeLine="hair" id="73" firstPoint="69" secondPoint="72" lineColor="black"/>
<point type="normal" typeLine="hair" id="74" name="А41" firstPoint="56" secondPoint="59" mx="0.132292" lineColor="black" angle="0" my="0.264583" length="7"/>
<point type="normal" typeLine="hair" id="75" name="А42" firstPoint="72" secondPoint="69" mx="0.132292" lineColor="black" angle="180" my="0.264583" length="7"/>
<point type="bisector" typeLine="hair" id="77" thirdPoint="22" name="А43" firstPoint="29" secondPoint="21" mx="0.132292" lineColor="black" my="0.264583" length="Line_А5_А16/3+0.5"/>
<point type="bisector" typeLine="hair" id="78" thirdPoint="29" name="А44" firstPoint="15" secondPoint="7" mx="0.132292" lineColor="black" my="0.264583" length="Line_А5_А16/3+0.8"/>
<spline type="pathInteractive" id="100" color="black">
<pathPoint angle1="180.19" pSpline="29" angle2="0.189514" length1="0" length2="5.5002"/>
<pathPoint angle1="261.299" pSpline="22" angle2="81.2993" length1="2.57033" length2="5.3812"/>
<pathPoint angle1="327.914" pSpline="72" angle2="147.914" length1="8.44184" length2="13.3029"/>
</spline>
<point type="alongLine" typeLine="none" id="116" name="А45" firstPoint="11" secondPoint="15" mx="0.132292" lineColor="black" my="0.264583" length="(Line_А8_А5/2)"/>
<spline type="pathInteractive" id="117" color="black">
<pathPoint angle1="63.8459" pSpline="56" angle2="243.846" length1="0" length2="8.76616"/>
<pathPoint angle1="95.8866" pSpline="116" angle2="275.887" length1="1.32614" length2="2.74113"/>
<pathPoint angle1="180" pSpline="29" angle2="0" length1="5.03118" length2="1.36011"/>
</spline>
<operation type="moving" suffix="a1" id="149" angle="90.6703" length="40.35">
<source>
<item idObject="117"/>
<item idObject="100"/>
</source>
<destination>
<item idObject="150" mx="2.14748e+09" my="2.14748e+09"/>
<item idObject="151" mx="2.14748e+09" my="2.14748e+09"/>
</destination>
</operation>
</calculation>
<modeling>
<point type="modeling" inUse="true" id="155" idObject="4" mx="0.0821985" my="0.21449"/>
<point type="modeling" inUse="true" id="156" idObject="1" mx="0.132292" my="0.264583"/>
<spline type="modelingSpline" inUse="true" id="157" idObject="49"/>
<point type="modeling" inUse="true" id="158" idObject="48" mx="-1.00881" my="-1.66652"/>
<point type="modeling" inUse="true" id="159" idObject="58" mx="-0.423631" my="-1.63726"/>
<point type="modeling" inUse="true" id="160" idObject="32" mx="0.132292" my="0.264583"/>
<point type="modeling" inUse="true" id="161" idObject="59" mx="2.30483" my="-2.89101"/>
<point type="modeling" inUse="true" id="162" idObject="56" mx="0.132292" my="0.264583"/>
<spline type="modelingPath" inUse="true" id="163" idObject="117"/>
<point type="modeling" inUse="true" id="164" idObject="29" mx="0.132292" my="0.264583"/>
</modeling>
<details>
<detail id="165" name="" forbidFlipping="true" seamAllowance="true" mx="1.41527" inLayout="true" width="1" my="3.02812" version="2">
<nodes>
<node before="2" type="NodePoint" after="0" idObject="155"/>
<node before="0" type="NodePoint" idObject="156"/>
<node type="NodeSpline" reverse="0" idObject="157"/>
<node type="NodePoint" after="0" idObject="158"/>
<node before="0" type="NodePoint" idObject="159"/>
<node type="NodePoint" idObject="160"/>
<node type="NodePoint" after="0" idObject="161"/>
<node before="0" type="NodePoint" after="5" idObject="162"/>
<node type="NodeSplinePath" reverse="0" idObject="163"/>
<node before="5" type="NodePoint" after="0" idObject="164"/>
</nodes>
</detail>
</details>
<groups/>
</draw>
<draw name="Чертеж 2">
<calculation>
<point type="single" x="36.3125" y="34.6144" id="141" name="Б" mx="0.132292" my="0.264583"/>
<point type="endLine" typeLine="hair" id="142" name="Б1" basePoint="141" mx="0.132292" lineColor="black" angle="0" my="0.264583" length="Line_А5_А16"/>
<point type="endLine" typeLine="hair" id="143" name="Б2" basePoint="141" mx="0.132292" lineColor="black" angle="90" my="0.264583" length="Line_А8_А5/2"/>
<point type="endLine" typeLine="hair" id="144" name="Б3" basePoint="143" mx="0.132292" lineColor="black" angle="90" my="0.264583" length="Line_Б_Б2"/>
<point type="endLine" typeLine="hair" id="145" name="Б4" basePoint="144" mx="0.132292" lineColor="black" angle="180" my="0.264583" length="Line_А18_А8"/>
<point type="endLine" typeLine="hair" id="146" name="Б5" basePoint="145" mx="0.132292" lineColor="black" angle="AngleLine_А18_А37" my="0.264583" length="Line_А18_А37"/>
<point type="endLine" typeLine="hair" id="147" name="Б6" basePoint="146" mx="0.132292" lineColor="black" angle="AngleLine_А37_А35" my="0.264583" length="Line_А37_А35"/>
<spline type="pathInteractive" id="148" color="black">
<pathPoint angle1="64.6053" pSpline="147" angle2="243.846" length1="0" length2="8.76616"/>
<pathPoint angle1="Angle2SplPath_А35_А16_Seg_1" pSpline="143" angle2="275.887" length1="C2LengthSplPath_А35_А16_Seg_1" length2="2.74113"/>
<pathPoint angle1="Angle2SplPath_А35_А16" pSpline="142" angle2="0.12" length1="4.97078" length2="1.36701"/>
</spline>
</calculation>
<modeling/>
<details/>
<groups/>
</draw>
</pattern>

View File

@ -0,0 +1,42 @@
<?xml version='1.0' encoding='UTF-8'?>
<pattern>
<!--Pattern created with Valentina (http://www.valentina-project.org/).-->
<version>0.4.0</version>
<unit>cm</unit>
<author/>
<description/>
<notes/>
<measurements/>
<increments/>
<draw name="Pattern piece 1">
<calculation>
<point type="single" x="0.79375" y="1.05833" id="1" name="A" mx="0.132292" my="0.264583"/>
<point type="endLine" typeLine="hair" id="2" name="A1" basePoint="1" mx="0.132292" lineColor="black" my="0.264583" angle="0" length="10"/>
<point type="normal" typeLine="hair" id="3" name="A2" firstPoint="2" secondPoint="1" mx="0.132292" lineColor="black" my="0.264583" angle="0" length="5"/>
<point type="alongLine" typeLine="none" id="4" name="A3" firstPoint="1" secondPoint="3" mx="0.132292" lineColor="black" my="0.264583" length="CurrentLength/2"/>
<spline type="simpleInteractive" point4="3" angle1="236.89" angle2="209.202" id="5" color="black" length1="1.06381" length2="2.9538" point1="4"/>
<spline type="simpleInteractive" point4="4" angle1="241.792" angle2="241.791" id="6" color="black" length1="2.22517" length2="2.12741" point1="1"/>
</calculation>
<modeling>
<point type="modeling" inUse="true" id="12" idObject="1" mx="0.132292" my="0.264583"/>
<point type="modeling" inUse="true" id="13" idObject="2" mx="0.132292" my="0.264583"/>
<point type="modeling" inUse="true" id="14" idObject="3" mx="0.132292" my="0.264583"/>
<spline type="modelingSpline" inUse="true" id="15" idObject="5"/>
<point type="modeling" inUse="true" id="16" idObject="4" mx="0.132292" my="0.264583"/>
<spline type="modelingSpline" inUse="true" id="17" idObject="6"/>
</modeling>
<details>
<detail id="18" name="" forbidFlipping="true" seamAllowance="true" mx="0" inLayout="true" width="1" my="0" version="2">
<nodes>
<node type="NodePoint" idObject="12"/>
<node type="NodePoint" idObject="13"/>
<node type="NodePoint" idObject="14"/>
<node type="NodeSpline" reverse="1" idObject="15"/>
<node before="1.01" type="NodePoint" after="1.01" idObject="16"/>
<node type="NodeSpline" reverse="1" idObject="17"/>
</nodes>
</detail>
</details>
<groups/>
</draw>
</pattern>

View File

@ -0,0 +1,57 @@
<?xml version='1.0' encoding='UTF-8'?>
<pattern>
<!--Pattern created with Valentina (http://www.valentina-project.org/).-->
<version>0.4.0</version>
<unit>cm</unit>
<author/>
<description/>
<notes/>
<measurements/>
<increments/>
<draw name="Pattern piece 1">
<calculation>
<point type="single" x="0.79375" y="1.05833" id="1" name="A" mx="0.132292" my="0.264583"/>
<point type="endLine" typeLine="hair" id="2" name="A1" basePoint="1" mx="0.132292" lineColor="black" my="0.264583" angle="0" length="10"/>
<point type="normal" typeLine="hair" id="3" name="A2" firstPoint="2" secondPoint="1" mx="0.132292" lineColor="black" my="0.264583" angle="0" length="5"/>
<point type="alongLine" typeLine="none" id="4" name="A3" firstPoint="1" secondPoint="3" mx="0.132292" lineColor="black" my="0.264583" length="CurrentLength/2"/>
<point type="alongLine" typeLine="none" id="5" name="A4" firstPoint="4" secondPoint="3" mx="0.132292" lineColor="black" my="0.264583" length="CurrentLength/2"/>
<point type="alongLine" typeLine="none" id="6" name="A5" firstPoint="1" secondPoint="4" mx="0.132292" lineColor="black" my="0.264583" length="CurrentLength/2"/>
<spline type="pathInteractive" id="7" color="black">
<pathPoint angle1="65.3764" pSpline="3" angle2="245.376" length1="0" length2="2.1538"/>
<pathPoint angle1="248.531" pSpline="5" angle2="68.531" length1="1.80107" length2="2.63289"/>
<pathPoint angle1="42.0794" pSpline="4" angle2="222.079" length1="0.714555" length2="3.76242"/>
<pathPoint angle1="50.1229" pSpline="6" angle2="230.123" length1="2.19303" length2="2.72501"/>
<pathPoint angle1="228.872" pSpline="1" angle2="48.872" length1="0.486869" length2="0"/>
</spline>
</calculation>
<modeling>
<point type="modeling" inUse="true" id="8" idObject="1" mx="0.132292" my="0.264583"/>
<point type="modeling" inUse="true" id="9" idObject="2" mx="0.132292" my="0.264583"/>
<point type="modeling" inUse="true" id="10" idObject="3" mx="0.132292" my="0.264583"/>
<spline type="modelingPath" inUse="true" id="11" idObject="7"/>
<point type="modeling" inUse="true" id="12" idObject="5" mx="0.132292" my="0.264583"/>
<spline type="modelingPath" inUse="true" id="13" idObject="7"/>
<point type="modeling" inUse="true" id="14" idObject="4" mx="0.132292" my="0.264583"/>
<spline type="modelingPath" inUse="true" id="15" idObject="7"/>
<point type="modeling" inUse="true" id="16" idObject="6" mx="0.132292" my="0.264583"/>
<spline type="modelingPath" inUse="true" id="17" idObject="7"/>
</modeling>
<details>
<detail id="18" name="" forbidFlipping="true" seamAllowance="true" mx="0" inLayout="true" width="1" my="0" version="2">
<nodes>
<node type="NodePoint" idObject="8"/>
<node type="NodePoint" idObject="9"/>
<node type="NodePoint" idObject="10"/>
<node type="NodeSplinePath" reverse="0" idObject="11"/>
<node before="0.5" type="NodePoint" after="0.5" idObject="12"/>
<node type="NodeSplinePath" reverse="0" idObject="13"/>
<node type="NodePoint" idObject="14"/>
<node type="NodeSplinePath" reverse="0" idObject="15"/>
<node before="0.2" type="NodePoint" idObject="16"/>
<node type="NodeSplinePath" reverse="0" idObject="17"/>
</nodes>
</detail>
</details>
<groups/>
</draw>
</pattern>

View File

@ -52,6 +52,7 @@ class VSAPoint : public QPointF
{ {
public: public:
Q_DECL_CONSTEXPR VSAPoint(); Q_DECL_CONSTEXPR VSAPoint();
Q_DECL_CONSTEXPR VSAPoint(qreal xpos, qreal ypos);
Q_DECL_CONSTEXPR VSAPoint(const QPointF &p); Q_DECL_CONSTEXPR VSAPoint(const QPointF &p);
Q_DECL_CONSTEXPR qreal GetSABefore() const; Q_DECL_CONSTEXPR qreal GetSABefore() const;
@ -65,6 +66,7 @@ private:
qreal m_after; qreal m_after;
}; };
Q_DECLARE_METATYPE(VSAPoint)
Q_DECLARE_TYPEINFO(VSAPoint, Q_MOVABLE_TYPE); Q_DECLARE_TYPEINFO(VSAPoint, Q_MOVABLE_TYPE);
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -74,6 +76,13 @@ Q_DECL_CONSTEXPR inline VSAPoint::VSAPoint()
m_after(-1) m_after(-1)
{} {}
//---------------------------------------------------------------------------------------------------------------------
Q_DECL_CONSTEXPR inline VSAPoint::VSAPoint(qreal xpos, qreal ypos)
: QPointF(xpos, ypos),
m_before(-1),
m_after(-1)
{}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
Q_DECL_CONSTEXPR inline VSAPoint::VSAPoint(const QPointF &p) Q_DECL_CONSTEXPR inline VSAPoint::VSAPoint(const QPointF &p)
: QPointF(p), : QPointF(p),

View File

@ -53,7 +53,8 @@ SOURCES += \
tst_vcubicbezierpath.cpp \ tst_vcubicbezierpath.cpp \
tst_vgobject.cpp \ tst_vgobject.cpp \
tst_vsplinepath.cpp \ tst_vsplinepath.cpp \
tst_vpointf.cpp tst_vpointf.cpp \
tst_vabstractpiece.cpp
win32-msvc*:SOURCES += stable.cpp win32-msvc*:SOURCES += stable.cpp
@ -77,7 +78,8 @@ HEADERS += \
tst_vcubicbezierpath.h \ tst_vcubicbezierpath.h \
tst_vgobject.h \ tst_vgobject.h \
tst_vsplinepath.h \ tst_vsplinepath.h \
tst_vpointf.h tst_vpointf.h \
tst_vabstractpiece.h
# Set using ccache. Function enable_ccache() defined in common.pri. # Set using ccache. Function enable_ccache() defined in common.pri.
$$enable_ccache() $$enable_ccache()

View File

@ -30,6 +30,7 @@
#include "tst_vposter.h" #include "tst_vposter.h"
#include "tst_vabstractdetail.h" #include "tst_vabstractdetail.h"
#include "tst_vabstractpiece.h"
#include "tst_vspline.h" #include "tst_vspline.h"
#include "tst_nameregexp.h" #include "tst_nameregexp.h"
#include "tst_vlayoutdetail.h" #include "tst_vlayoutdetail.h"
@ -66,7 +67,8 @@ int main(int argc, char** argv)
ASSERT_TEST(new TST_FindPoint()); ASSERT_TEST(new TST_FindPoint());
ASSERT_TEST(new TST_VDetail()); ASSERT_TEST(new TST_VDetail());
ASSERT_TEST(new TST_VPoster()); ASSERT_TEST(new TST_VPoster());
ASSERT_TEST(new TST_VAbstractDetail()); //ASSERT_TEST(new TST_VAbstractDetail());
ASSERT_TEST(new TST_VAbstractPiece());
ASSERT_TEST(new TST_VSpline()); ASSERT_TEST(new TST_VSpline());
ASSERT_TEST(new TST_VSplinePath()); ASSERT_TEST(new TST_VSplinePath());
ASSERT_TEST(new TST_NameRegExp()); ASSERT_TEST(new TST_NameRegExp());

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,56 @@
/************************************************************************
**
** @file
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 17 11, 2016
**
** @brief
** @copyright
** This source code is part of the Valentine project, a pattern making
** program, whose allow create and modeling patterns of clothing.
** Copyright (C) 2016 Valentina project
** <https://bitbucket.org/dismine/valentina> All Rights Reserved.
**
** Valentina is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** Valentina is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with Valentina. If not, see <http://www.gnu.org/licenses/>.
**
*************************************************************************/
#ifndef TST_VABSTRACTPIECE_H
#define TST_VABSTRACTPIECE_H
#include "../vmisc/abstracttest.h"
class VSAPoint;
class TST_VAbstractPiece : public AbstractTest
{
Q_OBJECT
public:
explicit TST_VAbstractPiece(QObject *parent = nullptr);
private slots:
void EquidistantRemoveLoop_data();
void EquidistantRemoveLoop() const;
private:
QVector<VSAPoint> InputPointsCase1() const;
QVector<QPointF> OutputPointsCase1() const;
QVector<VSAPoint> InputPointsCase2() const;
QVector<QPointF> OutputPointsCase2() const;
QVector<VSAPoint> InputPointsCase3() const;
QVector<QPointF> OutputPointsCase3() const;
};
#endif // TST_VABSTRACTPIECE_H