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

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

#include <RLinetypePattern.h>

List of all members.

Public Member Functions

double getDashLengthAt (int i) const
double getDelta (double pos) const
double getLargestGap () const
int getNumDashes () const
double getPatternLength () const
QVector< qreal > getScreenBasedLinetype ()
bool hasDashAt (double pos) const
bool isSymmetrical (int i) const
bool isValid () const
RLinetypePatternoperator= (const RLinetypePattern &other)
bool operator== (const RLinetypePattern &other) const
 RLinetypePattern (const QString &name, int num...)
 Copyright (c) 2011-2013 by Andrew Mustun.
 RLinetypePattern ()
 RLinetypePattern (const QString &name)
 RLinetypePattern (const RLinetypePattern &other)
void scale (double factor)
void set (const QList< double > dashes)
 ~RLinetypePattern ()

Private Attributes

QString name
int num
double * pattern
bool * symmetrical

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. Represents a linetype pattern which can be used to draw dashed graphical elements.

Scriptable:
This class is wrapped for script environments.
Copyable:
Script wrappers of this class should pass objects by reference.

Constructor & Destructor Documentation

RLinetypePattern::RLinetypePattern ( const QString &  name,
int  num... 
)

Copyright (c) 2011-2013 by Andrew Mustun.

   \par Non-Scriptable:

This function is not available in script environments.

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.

RLinetypePattern::RLinetypePattern ( )
RLinetypePattern::RLinetypePattern ( const QString &  name)
RLinetypePattern::RLinetypePattern ( const RLinetypePattern other)
RLinetypePattern::~RLinetypePattern ( )

Member Function Documentation

double RLinetypePattern::getDashLengthAt ( int  i) const
double RLinetypePattern::getDelta ( double  pos) const
double RLinetypePattern::getLargestGap ( ) const
int RLinetypePattern::getNumDashes ( ) const
double RLinetypePattern::getPatternLength ( ) const
QVector< qreal > RLinetypePattern::getScreenBasedLinetype ( )
Returns:
Line pattern that can be used for a QPen to render screen optimized patterns. Empty vector for continuous.
bool RLinetypePattern::hasDashAt ( double  pos) const
bool RLinetypePattern::isSymmetrical ( int  i) const
bool RLinetypePattern::isValid ( ) const
RLinetypePattern & RLinetypePattern::operator= ( const RLinetypePattern other)
bool RLinetypePattern::operator== ( const RLinetypePattern other) const
void RLinetypePattern::scale ( double  factor)
void RLinetypePattern::set ( const QList< double >  dashes)

Member Data Documentation

QString RLinetypePattern::name
private
int RLinetypePattern::num
private
double* RLinetypePattern::pattern
private
bool* RLinetypePattern::symmetrical
private

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