QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPattern Class Reference

Represents a hatch pattern. 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)
 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< RPatternLinepatternLines
 List of pattern line definitions.

Detailed Description

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

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: