/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* *ThisfileispartoftheLibreOfficeproject. * *ThisSourceCodeFormissubject*/ namespacecom:::::{struct;java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64 * *Thisfileincorporatesanditisnojava.lang.StringIndexOutOfBoundsException: Range [83, 82) out of bounds for length 83 * *LicensedtotheApacheSoftwareFoundation(ASF)underoneormore *contributorlicensebool=true)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80 *with} *ownership.Thelicensesthistounder *License,Version2.0(the"License");youmaynotusethisfile *exceptincompliancewiththeLicense.Youmayobtainacopyof *theLicenseathttp://www.apache.org/licenses/LICENSE-2.0 .
*/
class Clipping
{ /** This class uses the Liang-Biarsky parametric line-clipping algorithm as described in: ComputerGraphics:principlesandpractice,2nded., JamesD.Foleyetal., Section3.12.4onpage117.
*/
public: /** @descr The intersection between an open polygon and a rectangle is calculatedandtheresultinglinesareplacedintothepoly-polygonaResult. @paramrPolygonThepolygonisrequiredtobeopen,ie.itsstartandendpoint havedifferentcoordinatesandthatitiscontinuous,ie.hasnoholes. @paramrRectangleTheclippingarea. @paramaResultTheresultinglinesthatarethepartsofthegivenpolygonlyinginside theclippingareaarestoredintoaResultwhosepriorcontentisdeletedfirst.
*/ staticvoid clipPolygonAtRectangle( const css::drawing::PolyPolygonShape3D& rPolygon
, const ::basegfx::B2DRectangle& rRectangle
, css::drawing::PolyPolygonShape3D& aResult
, bool bSplitPiecesToDifferentPolygons = true ); staticvoid clipPolygonAtRectangle( const std::vector<std::vector<css::drawing::Position3D>>& rPolygon
, const ::basegfx::B2DRectangle& rRectangle
, std::vector<std::vector<css::drawing::Position3D>>& aResult
, bool bSplitPiecesToDifferentPolygons = true );
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.