X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_information.h;h=57175e24960c4de1207e29bc14e8ba2200a9c3e4;hb=20cce16e98fc9b052c5862efa6394a285971e846;hp=3a6fea6d5e7acbfaf054999e9a0273ac5939bbd3;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_information.h b/src/base/rs_information.h index 3a6fea6..57175e2 100644 --- a/src/base/rs_information.h +++ b/src/base/rs_information.h @@ -1,29 +1,3 @@ -/**************************************************************************** -** $Id: rs_information.h 1926 2004-11-20 00:42:21Z andrew $ -** -** Copyright (C) 2001-2003 RibbonSoft. All rights reserved. -** -** This file is part of the qcadlib Library project. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** Licensees holding valid qcadlib Professional Edition licenses may use -** this file in accordance with the qcadlib Commercial License -** Agreement provided with the Software. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.ribbonsoft.com for further details. -** -** Contact info@ribbonsoft.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - #ifndef RS_INFORMATION_H #define RS_INFORMATION_H @@ -48,19 +22,16 @@ class RS_Information static bool isDimension(RS2::EntityType type); static bool isTrimmable(RS_Entity * e); static bool isTrimmable(RS_Entity * e1, RS_Entity * e2); - Vector getNearestEndpoint(const Vector & point, double * dist = NULL) const; Vector getNearestPointOnEntity(const Vector & point, bool onEntity = true, double * dist = NULL, RS_Entity ** entity = NULL) const; RS_Entity * getNearestEntity(const Vector & point, double * dist = NULL, RS2::ResolveLevel level = RS2::ResolveAll) const; - static VectorSolutions getIntersection(RS_Entity * e1, RS_Entity * e2, bool onEntities = false); static VectorSolutions getIntersectionLineLine(RS_Line * e1, RS_Line * e2); static VectorSolutions getIntersectionLineArc(RS_Line * line, RS_Arc * arc); static VectorSolutions getIntersectionArcArc(RS_Arc * e1, RS_Arc * e2); static VectorSolutions getIntersectionLineEllipse(RS_Line * line, RS_Ellipse * ellipse); - static bool isPointInsideContour(const Vector & point, RS_EntityContainer * contour, bool * onContour = NULL);