Open Source 2D CAD
RDirected Class Referenceabstract

Copyright (c) 2011-2015 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 RVector getStartPoint () const =0
virtual RS::Ending getTrimEnd (const RVector &coord, const RVector &trimPoint)=0
virtual bool reverse ()=0
virtual void trimEndPoint (const RVector &p)=0
virtual void trimStartPoint (const RVector &p)=0
virtual ~RDirected ()

Detailed Description

Copyright (c) 2011-2015 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.

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

Constructor & Destructor Documentation

virtual RDirected::~RDirected ( )

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
Distance of given point to start point of shape along shape.
pPoint (assumed to be on shape).

Reimplemented in RArc, and RLine.

virtual RVector RDirected::getEndPoint ( ) const
pure virtual
virtual RVector RDirected::getStartPoint ( ) const
pure virtual
virtual RS::Ending RDirected::getTrimEnd ( const RVector coord,
const RVector trimPoint 
pure virtual
coordClicked coordinate
trimPointTrim start point or end point to this coordinate.

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

virtual bool RDirected::reverse ( )
pure virtual
virtual void RDirected::trimEndPoint ( const RVector p)
pure virtual
virtual void RDirected::trimStartPoint ( const RVector p)
pure virtual

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