|
QCAD Application Framework
CAD Application Development and Automation.
|
Represents a hatch pattern. More...
#include <RPattern.h>
Public Member Functions | |
| QString | getFileName () const |
| const QString | getName () const |
| QList< RPatternLine > | getPatternLines () 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) |
| Loads all patterns in the given file into memory. | |
Private Attributes | |
| QString | description |
| Pattern description. | |
| QString | fileName |
| Pattern file name. | |
| QString | name |
| Pattern name. | |
| QList< RPatternLine > | patternLines |
| List of pattern line definitions. | |
Represents a hatch pattern.
| RPattern::RPattern | ( | ) |
Default constructor.
| RPattern::RPattern | ( | const QString & | name, |
| const QString & | description | ||
| ) |
Constructor.
| RPattern::~RPattern | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
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.
|
private |
Pattern description.
|
private |
Pattern file name.
|
private |
Pattern name.
|
private |
List of pattern line definitions.