QCAD
Open Source 2D CAD
RDirected Class Referenceabstract

Copyright (c) 2011-2016 by Andrew Mustun. More...

#include <RDirected.h>

Inheritance diagram for RDirected:
RArc REllipse RLine RPolyline RSpline RXLine RArcData REllipseData RLineData RLeaderData RPolylineData RSolidData RSplineData RRay RXLineData

Public Member Functions

virtual double getDirection1 () const =0
 
virtual double getDirection2 () const =0
 
virtual double getDistanceFromStart (const RVector &p) const
 
virtual RVector getEndPoint () const =0
 
virtual RS::Side getSideOfPoint (const RVector &point) const =0
 
virtual RVector getStartPoint () const =0
 
virtual RS::Ending getTrimEnd (const RVector &trimPoint, const RVector &clickPoint)=0
 
virtual bool reverse ()=0
 
virtual bool trimEndPoint (const RVector &trimPoint, const RVector &clickPoint=RVector::invalid)=0
 
virtual bool trimStartPoint (const RVector &trimPoint, const RVector &clickPoint=RVector::invalid)=0
 
virtual ~RDirected ()
 

Detailed Description

Copyright (c) 2011-2016 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD 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.

QCAD 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 QCAD. Interface for directed shape classes.

Scriptable:
This class is available in script environments.
Shared Pointer Support:
Objects can be used in QSharedPointer.

Constructor & Destructor Documentation

virtual RDirected::~RDirected ( )
inlinevirtual

Member Function Documentation

virtual double RDirected::getDirection1 ( ) const
pure virtual
virtual double RDirected::getDirection2 ( ) const
pure virtual
virtual double RDirected::getDistanceFromStart ( const RVector p) const
inlinevirtual
Returns
Distance of given point to start point of shape along shape.
Parameters
pPoint (assumed to be on shape).

Reimplemented in RArc, and RLine.

virtual RVector RDirected::getEndPoint ( ) const
pure virtual
virtual RS::Side RDirected::getSideOfPoint ( const RVector point) const
pure virtual
virtual RVector RDirected::getStartPoint ( ) const
pure virtual
virtual RS::Ending RDirected::getTrimEnd ( const RVector trimPoint,
const RVector clickPoint 
)
pure virtual
Parameters
trimPointTrim start point or end point to this coordinate.
clickPointPoint that was clicked by user.

Implemented in RSpline, REllipse, RPolyline, RArc, RSplineData, RLine, RXLine, RArcData, RXLineData, RLineData, RRayData, and RSolidData.

virtual bool RDirected::reverse ( )
pure virtual
virtual bool RDirected::trimEndPoint ( const RVector trimPoint,
const RVector clickPoint = RVector::invalid 
)
pure virtual
Parameters
trimPointTrim start point or end point to this coordinate.
clickPointPoint that was clicked by user.

Implemented in RSpline, REllipse, RPolyline, RArc, RSplineData, RLine, RXLine, RArcData, RXLineData, RLineData, RRayData, RSolidData, and RRay.

virtual bool RDirected::trimStartPoint ( const RVector trimPoint,
const RVector clickPoint = RVector::invalid 
)
pure virtual
Parameters
trimPointTrim start point or end point to this coordinate.
clickPointPoint that was clicked by user.

Implemented in RSpline, REllipse, RPolyline, RArc, RSplineData, RLine, RXLine, RArcData, RXLineData, RLineData, RRayData, and RSolidData.


The documentation for this class was generated from the following file: