QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RDirected Class Reference

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

List of all members.

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-2013 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 wrapped for script environments.
Shared Pointer Support:
Script wrappers of this class support wrapping 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 RVector RDirected::getStartPoint ( ) const
pure virtual
virtual RS::Ending RDirected::getTrimEnd ( const RVector coord,
const RVector trimPoint 
)
pure virtual
Parameters:
coordClicked coordiante
trimPointTrim start point or end point to this coordiante.

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

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: