Computer Assisted Medical Intervention Tool Kit  version 5.2
 
Loading...
Searching...
No Matches
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)
 
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)
 

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)

Member Function Documentation

◆ getAdditionalInclude()

QString ParameterGenerator::getAdditionalInclude ( ) const

References needsAdditionalInclude().

+ Here is the call graph for this function:

◆ getCppName()

QString ParameterGenerator::getCppName ( ) const

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

Referenced by getToString().

+ Here is the caller graph for this function:

◆ getDefaultValue()

QString ParameterGenerator::getDefaultValue ( ) const

◆ getDescription()

QString ParameterGenerator::getDescription ( ) const

◆ getName()

QString ParameterGenerator::getName ( ) const

◆ getPropertyQVariant()

QString ParameterGenerator::getPropertyQVariant ( ) const

References QCOLOR, and QVECTOR3D.

◆ getQVariantConversion()

QString ParameterGenerator::getQVariantConversion ( ) const

References BOOLEAN, DOUBLE, and INT.

◆ getToString()

QString ParameterGenerator::getToString ( ) const

References BOOLEAN, DOUBLE, getCppName(), INT, QCOLOR, QDATE, QPOINT, QPOINTF, QSTRING, QVECTOR3D, and QVECTOR4D.

+ Here is the call graph for this function:

◆ getType()

QString ParameterGenerator::getType ( ) const

◆ getTypeDefaultValue()

QString ParameterGenerator::getTypeDefaultValue ( QString  typeName)
static

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

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

+ Here is the caller graph for this function:

◆ getUnit()

QString ParameterGenerator::getUnit ( ) const

◆ isEditable()

bool ParameterGenerator::isEditable ( ) const

◆ needsAdditionalInclude()

bool ParameterGenerator::needsAdditionalInclude ( ) const

References BOOLEAN, DOUBLE, and INT.

Referenced by getAdditionalInclude().

+ Here is the caller graph for this function:

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