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

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

#include <RPattern.h>

List of all members.

Public Member Functions

QString getFileName () const
const QString getName () const
QList< RPatternLinegetPatternLines () const
bool isLoaded () const
bool isValid () const
void load () const
void rotate (double a)
 Rotates the pattern by the given factor.
 RPattern ()
 Default constructor.
 RPattern (const QString &name, const QString &description)
 Constructor.
void scale (double f)
 Scales the pattern by the given factor.
 ~RPattern ()

Static Public Member Functions

static QList< QPair< QString,
RPattern * > > 
loadAllFrom (const QString &fileName)
 Copyright (c) 2011-2013 by Andrew Mustun.

Private Attributes

QString description
 Pattern description.
QString fileName
 Pattern file name.
QString name
 Pattern name.
QList< RPatternLinepatternLines
 List of pattern line definitions.

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 hatch pattern.

Scriptable:
This class is wrapped for script environments.
Stream Operator:
Script wrappers of this class use the stream operator for the output of toString().

Constructor & Destructor Documentation

RPattern::RPattern ( )

Default constructor.

RPattern::RPattern ( const QString &  name,
const QString &  description 
)

Constructor.

RPattern::~RPattern ( )

Member Function Documentation

QString RPattern::getFileName ( ) const
inline
Returns:
the fileName of this pattern.
const QString RPattern::getName ( ) const
inline
Returns:
the name of this pattern.
QList<RPatternLine> RPattern::getPatternLines ( ) const
inline
bool RPattern::isLoaded ( ) const
inline
Returns:
True if this pattern is already loaded.
bool RPattern::isValid ( ) const
inline
void RPattern::load ( ) const
inline
QList< QPair< QString, RPattern * > > RPattern::loadAllFrom ( const QString &  fileName)
static

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. Loads all patterns in the given file into memory.

void RPattern::rotate ( double  a)

Rotates the pattern by the given factor.

void RPattern::scale ( double  f)

Scales the pattern by the given factor.


Member Data Documentation

QString RPattern::description
private

Pattern description.

QString RPattern::fileName
private

Pattern file name.

QString RPattern::name
private

Pattern name.

QList<RPatternLine> RPattern::patternLines
private

List of pattern line definitions.


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