ReadFramework
rdf::ScaleFactoryConfig Class Reference

Class that configures the ScaleFactory More...

#include <ScaleFactory.h>

Inheritance diagram for rdf::ScaleFactoryConfig:
Collaboration diagram for rdf::ScaleFactoryConfig:

Public Types

enum  ScaleSideMode { scale_max_side = 0, scale_height, scale_end }
 

Public Member Functions

 ScaleFactoryConfig ()
 
virtual QString toString () const override
 
void setMaxImageSide (int maxSide)
 
int maxImageSide () const
 
void setScaleMode (const ScaleFactoryConfig::ScaleSideMode &mode)
 
ScaleFactoryConfig::ScaleSideMode scaleMode () const
 
int dpi () const
 
- Public Member Functions inherited from rdf::ModuleConfig
 ModuleConfig (const QString &moduleName="Generic Module")
 
void loadSettings ()
 
void loadSettings (QSettings &settings)
 
void saveSettings () const
 
void saveSettings (QSettings &settings) const
 
void saveDefaultSettings () const
 
virtual void saveDefaultSettings (QSettings &settings) const
 
QString name () const
 

Protected Member Functions

void load (const QSettings &settings) override
 
void save (QSettings &settings) const override
 
- Protected Member Functions inherited from rdf::ModuleConfig
template<class num >
num checkParam (num param, num min, num max, const QString &name) const
 

Protected Attributes

int mMaxImageSide = 1000
 
int mDpi = 300
 
ScaleFactoryConfig::ScaleSideMode mScaleMode = ScaleFactoryConfig::scale_height
 
- Protected Attributes inherited from rdf::ModuleConfig
QString mModuleName
 

Detailed Description

Class that configures the ScaleFactory

See also
ModuleConfig

Member Enumeration Documentation

Enumerator
scale_max_side 
scale_height 
scale_end 

Constructor & Destructor Documentation

rdf::ScaleFactoryConfig::ScaleFactoryConfig ( )

Member Function Documentation

int rdf::ScaleFactoryConfig::dpi ( ) const

Here is the caller graph for this function:

void rdf::ScaleFactoryConfig::load ( const QSettings &  settings)
overrideprotectedvirtual

Reimplemented from rdf::ModuleConfig.

int rdf::ScaleFactoryConfig::maxImageSide ( ) const

Here is the caller graph for this function:

void rdf::ScaleFactoryConfig::save ( QSettings &  settings) const
overrideprotectedvirtual

Reimplemented from rdf::ModuleConfig.

ScaleFactoryConfig::ScaleSideMode rdf::ScaleFactoryConfig::scaleMode ( ) const

Here is the caller graph for this function:

void rdf::ScaleFactoryConfig::setMaxImageSide ( int  maxSide)
void rdf::ScaleFactoryConfig::setScaleMode ( const ScaleFactoryConfig::ScaleSideMode mode)
QString rdf::ScaleFactoryConfig::toString ( ) const
overridevirtual

Reimplemented from rdf::ModuleConfig.

Member Data Documentation

int rdf::ScaleFactoryConfig::mDpi = 300
protected
int rdf::ScaleFactoryConfig::mMaxImageSide = 1000
protected
ScaleFactoryConfig::ScaleSideMode rdf::ScaleFactoryConfig::mScaleMode = ScaleFactoryConfig::scale_height
protected

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