QCAD
Open Source 2D CAD
RPatternLine Class Reference

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

#include <RPatternLine.h>

Public Member Functions

double getAngle () const
 
RVector getBasePoint () const
 
QList< double > getDashes () const
 
double getLength () const
 
QList< RLinegetLines (bool includeDashes=false) const
 \returen Line shapes for this pattern line. More...
 
RVector getOffset () const
 
RPainterPath getPainterPath () const
 Copyright (c) 2011-2018 by Andrew Mustun. More...
 
bool hasDots () const
 
void rotate (double a)
 
void scale (double f)
 

Public Attributes

double angle
 
RVector basePoint
 
QList< double > dashes
 
RVector offset
 

Detailed Description

Copyright (c) 2011-2018 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. Represents a hatch pattern line.

Scriptable:\nThis class is available in script environments.\n
Copyable:\nObjects are cleaned up automatically by the garbage collector of the script engine.\n
Stream Operator:\nObject has a stream operator to present itself as string, for example when using toString() in a script.\n

Member Function Documentation

◆ getAngle()

double RPatternLine::getAngle ( ) const
inline

◆ getBasePoint()

RVector RPatternLine::getBasePoint ( ) const
inline

◆ getDashes()

QList<double> RPatternLine::getDashes ( ) const
inline

◆ getLength()

double RPatternLine::getLength ( ) const

◆ getLines()

QList< RLine > RPatternLine::getLines ( bool  includeDashes = false) const

\returen Line shapes for this pattern line.

No offset applied.

◆ getOffset()

RVector RPatternLine::getOffset ( ) const
inline

◆ getPainterPath()

RPainterPath RPatternLine::getPainterPath ( ) const

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

◆ hasDots()

bool RPatternLine::hasDots ( ) const

◆ rotate()

void RPatternLine::rotate ( double  a)

◆ scale()

void RPatternLine::scale ( double  f)

Member Data Documentation

◆ angle

double RPatternLine::angle

◆ basePoint

RVector RPatternLine::basePoint

◆ dashes

QList<double> RPatternLine::dashes

◆ offset

RVector RPatternLine::offset

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