From 2a91cddd37145bd5ecc5915d629ab461f25daaa1 Mon Sep 17 00:00:00 2001 From: Daniele Bariletti Date: Fri, 24 Oct 2025 11:53:52 +0200 Subject: [PATCH] =?UTF-8?q?Include=20:=20-=20aggiunta=20modalit=C3=A0=20di?= =?UTF-8?q?=20creazione=20di=20una=20polyline.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EGkPolyLine.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/EGkPolyLine.h b/EGkPolyLine.h index 52a659b..75406a1 100644 --- a/EGkPolyLine.h +++ b/EGkPolyLine.h @@ -122,6 +122,11 @@ class PolyLine m_nTempProp[nPropInd] = nProp ; } EGK_EXPORT int GetTempProp( int nPropInd = 0) const { return (( nPropInd >= 0 && nPropInd < 2) ? m_nTempProp[nPropInd] : 0) ; } + EGK_EXPORT bool FromPointVector( const PNTVECTOR& vPnt) + { Clear() ; + for( int i = 0 ; i < int( vPnt.size()) ; ++i) + { AddUPoint( i, vPnt[i]) ; } + return GetPointNbr() > 0 ; } private : bool MyChangeStart( int nPos) ;