open_iA 2024.9
Loading...
Searching...
No Matches
iAValueType.h File Reference
#include "iabase_export.h"

Enumerations

enum class  iAValueType {
  Invalid = -1 , Continuous , Discrete , Categorical ,
  String , Text , Boolean , FilterName ,
  FilterParameters , Folder , FileNameOpen , FileNamesOpen ,
  FileNameSave , Color , Vector2 , Vector3 ,
  Vector2i , Vector3i
}
 Value types that can be used for parameters and attributes. More...
 

Functions

iAbase_API QVariant colorToVariant (QColor const &c)
 Convert a given QColor to its internally used QVariant representation (a string)
 
iAValueType Str2ValueType (QString const &str)
 
iAbase_API QString ValueType2Str (iAValueType type)
 
iAbase_API QColor variantToColor (QVariant const &v)
 Convert QVariant with value type iAValueType::Color (internally stored as string) to a QColor.
 
iAbase_API QString variantValueToString (iAValueType valueType, QVariant value)
 convert the QVariant of the given iAValueType to a string (describing its content, for human-readable output)
 

Enumeration Type Documentation

◆ iAValueType

enum class iAValueType
strong

Value types that can be used for parameters and attributes.

See also
iAAttributeDescriptor
Enumerator
Invalid 
Continuous 
Discrete 
Categorical 
String 
Text 
Boolean 
FilterName 
FilterParameters 
Folder 
FileNameOpen 
FileNamesOpen 
FileNameSave 
Color 

color value; use variantToColor/colorToVariant functions to get/set!

Vector2 

vector of 2 continuous values (see iAValueTypeVectorHelpers for functions to convert to/from QVariant!

Vector3 

vector of 3 continuous values (see iAValueTypeVectorHelpers for functions to convert to/from QVariant!

Vector2i 

vector of 2 discrete values (see iAValueTypeVectorHelpers for functions to convert to/from QVariant!

Vector3i 

vector of 3 discrete values (see iAValueTypeVectorHelpers for functions to convert to/from QVariant!

Function Documentation

◆ colorToVariant()

iAbase_API QVariant colorToVariant ( QColor const & c)

Convert a given QColor to its internally used QVariant representation (a string)

◆ Str2ValueType()

iAValueType Str2ValueType ( QString const & str)

◆ ValueType2Str()

iAbase_API QString ValueType2Str ( iAValueType type)

◆ variantToColor()

iAbase_API QColor variantToColor ( QVariant const & v)

Convert QVariant with value type iAValueType::Color (internally stored as string) to a QColor.

◆ variantValueToString()

iAbase_API QString variantValueToString ( iAValueType valueType,
QVariant value )

convert the QVariant of the given iAValueType to a string (describing its content, for human-readable output)