Computer Assited Medical Intervention Tool Kit  version 5.0
ParameterGenerator Class Reference

Generate parameters. More...

#include <ParameterGenerator.h>

+ Collaboration diagram for ParameterGenerator:

Public Types

enum  ParameterTypeGenerator {
  INT, DOUBLE, BOOLEAN, QSTRING,
  QDATE, QTIME, QCOLOR, QPOINT,
  QPOINTF, QVECTOR3D, QVECTOR4D, UNKNOWN
}
 

Public Member Functions

QString getAdditionalInclude () const
 
QString getCppName () const
 create a name that can be used as C++ variable name (remove all white space) More...
 
QString getDefaultValue () const
 
QString getDescription () const
 
QString getName () const
 
QString getPropertyQVariant () const
 
QString getQVariantConversion () const
 
QString getToString () const
 
QString getType () const
 
QString getUnit () const
 
bool isEditable () const
 
bool needsAdditionalInclude () const
 
 ParameterGenerator (cepcoreschema::Parameter &domParameter)
 

Static Public Member Functions

static QString getTypeDefaultValue (QString typeName)
 

Static Private Member Functions

static QMap< ParameterGenerator::ParameterTypeGenerator, QString > & getDefaultValues ()
 
static QMap< ParameterGenerator::ParameterTypeGenerator, QString > & getTypeNames ()
 
static void initNamesAndValues ()
 

Private Attributes

QString defaultValue
 
QString description
 
bool editable
 
QString name
 
ParameterTypeGenerator type
 
QString unit
 

Detailed Description

Generate parameters.

Member Enumeration Documentation

◆ ParameterTypeGenerator

Enumerator
INT 
DOUBLE 
BOOLEAN 
QSTRING 
QDATE 
QTIME 
QCOLOR 
QPOINT 
QPOINTF 
QVECTOR3D 
QVECTOR4D 
UNKNOWN 

Constructor & Destructor Documentation

◆ ParameterGenerator()

ParameterGenerator::ParameterGenerator ( cepcoreschema::Parameter &  domParameter)

References description, and initNamesAndValues().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAdditionalInclude()

QString ParameterGenerator::getAdditionalInclude ( ) const

◆ getCppName()

QString ParameterGenerator::getCppName ( ) const

create a name that can be used as C++ variable name (remove all white space)

◆ getDefaultValue()

QString ParameterGenerator::getDefaultValue ( ) const

◆ getDefaultValues()

QMap< ParameterGenerator::ParameterTypeGenerator, QString > & ParameterGenerator::getDefaultValues ( )
staticprivate

◆ getDescription()

QString ParameterGenerator::getDescription ( ) const

References description.

◆ getName()

QString ParameterGenerator::getName ( ) const

◆ getPropertyQVariant()

QString ParameterGenerator::getPropertyQVariant ( ) const

◆ getQVariantConversion()

QString ParameterGenerator::getQVariantConversion ( ) const

◆ getToString()

QString ParameterGenerator::getToString ( ) const

◆ getType()

QString ParameterGenerator::getType ( ) const

◆ getTypeDefaultValue()

QString ParameterGenerator::getTypeDefaultValue ( QString  typeName)
static

References initNamesAndValues().

Referenced by ComponentPropertyWidget::typeChanged(), and ActionParameterWidget::typeChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTypeNames()

QMap< ParameterGenerator::ParameterTypeGenerator, QString > & ParameterGenerator::getTypeNames ( )
staticprivate

◆ getUnit()

QString ParameterGenerator::getUnit ( ) const

◆ initNamesAndValues()

void ParameterGenerator::initNamesAndValues ( )
staticprivate

References BOOLEAN, DOUBLE, INT, isInitialized, QCOLOR, QDATE, QPOINT, QPOINTF, QSTRING, QTIME, QVECTOR3D, QVECTOR4D, and UNKNOWN.

Referenced by getTypeDefaultValue(), and ParameterGenerator().

+ Here is the caller graph for this function:

◆ isEditable()

bool ParameterGenerator::isEditable ( ) const

◆ needsAdditionalInclude()

bool ParameterGenerator::needsAdditionalInclude ( ) const

Member Data Documentation

◆ defaultValue

QString ParameterGenerator::defaultValue
private

◆ description

QString ParameterGenerator::description
private

◆ editable

bool ParameterGenerator::editable
private

◆ name

QString ParameterGenerator::name
private

◆ type

ParameterTypeGenerator ParameterGenerator::type
private

◆ unit

QString ParameterGenerator::unit
private

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