|
| | IlvValue (const char *name=0) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlInt i) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlUInt u) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlFloat f) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlDouble d) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, const char *s) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlBoolean b) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvColor *c) |
| | Verbose: More...
|
| |
| | IlvValue (const char *name, IlvFont *f) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvPattern *p) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvColorPattern *p) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvGradientPattern *p) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvLineStyle *l) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvFillStyle f) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvFillRule f) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvArcMode f) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvAntialiasingMode f) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvDirection d) |
| | Constructor. More...
|
| |
| | IlvValue (const char *name, IlvBitmap *b) |
| | Constructor. More...
|
| |
| IlSymbol * | getName () const |
| | Gets the name of the accessor of the IlvValue. More...
|
| |
| const IlvValueTypeClass * | getType () const |
| | Gets the type of the IlvValue. More...
|
| |
| | operator const char * () const |
| | Returns a copy of a string representation of this object in a. More...
|
| |
| | operator IlBoolean () const |
| | Operator to transform the content of the IlvValue to the IlBoolean type. More...
|
| |
| | operator IlDouble () const |
| | Operator to transform the content of the IlvValue to the IlDouble type. More...
|
| |
| | operator IlFloat () const |
| | Operator to transform the content of the IlvValue to the IlFloat type. More...
|
| |
| | operator IlInt () const |
| | Operator to transform the content of the IlvValue to the IlInt type. More...
|
| |
| | operator IlUInt () const |
| | Operator to transform the content of the IlvValue to the IlUInt type. More...
|
| |
| | operator IlvAntialiasingMode () const |
| | Operator to transform the content of the IlvValue to the IlvAntialiasingMode type. More...
|
| |
| | operator IlvArcMode () const |
| | Operator to transform the content of the IlvValue to the IlvArcMode type. More...
|
| |
| | operator IlvDirection () const |
| | Operator to transform the content of the IlvValue to the IlvDirection type. More...
|
| |
| | operator IlvFillRule () const |
| | Operator to transform the content of the IlvValue to the IlvFillRule type. More...
|
| |
| | operator IlvFillStyle () const |
| | Operator to transform the content of the IlvValue to the IlvIlvFillStyle type. More...
|
| |
| IlvBitmap * | toIlvBitmap (IlvDisplay *display) const |
| | Returns the content of the IlvValue as an IlvBitmap. More...
|
| |
| IlvColor * | toIlvColor (IlvDisplay *display) const |
| | Returns the content of the IlvValue as an IlvColor. More...
|
| |
| IlvColorPattern * | toIlvColorPattern (IlvDisplay *display) const |
| | Returns the content of the IlvValue as an IlvColorPattern. More...
|
| |
| IlvFont * | toIlvFont (IlvDisplay *display) const |
| | Returns the content of the IlvValue as an IlvFont. More...
|
| |
| IlvGradientPattern * | toIlvGradientPattern (IlvDisplay *display) const |
| | Returns the content of the IlvValue as an IlvGradientPattern. More...
|
| |
| IlvLineStyle * | toIlvLineStyle (IlvDisplay *display) const |
| | Returns the content of the IlvValue as an IlvLineStyle. More...
|
| |
| IlvPattern * | toIlvPattern (IlvDisplay *display) const |
| | Returns the content of the IlvValue as an IlvPattern. More...
|
| |
Graphic related class.
Library: views
The IlvValue class allows you to query and change the values of a graphic object. Instances of this class are used in the IlvGraphic::queryValue and IlvGraphic::changeValue methods.
An IlvValue instance is defined by three things:
-
the accessor name, for example "label" to access the label of a button,
-
a value,
-
a type that corresponds to the type of the value.
To query a value from a graphic object, you create an instance of IlvValue with the name of the accessor and call the IlvGraphic::queryValue method. This method fills the value of IlvValue with a copy of the value inside the graphic object.
To change the value of a graphic object, create an instance of IlvValue with the name of the accessor and a new value, and pass this IlvValue to the IlvGraphic::changeValue method.
- Note
- When initializing an
IlvValue with a numeric constant, ensure that the type of the constant is explicitly mentioned, or the numeric constant will default to IlBoolean with the value IlFalse or IlTrue.
For example, if you use the expression IlvValue v("x", 10); the value's type defaults to IlBoolean, thus 10 becomes IlTrue. To keep the value 10, this expression should be replaced with the following: or better: const IlInt position = 10;
The possible types for an IlvValue are:
-
IlvValueNoType for empty IlvValue
-
IlvValueIntType for IlInt value
-
IlvValueUIntType for IlUInt value
-
IlvValueStringType for char* value
-
IlvValueBooleanType for IlBoolean value
-
IlvValueColorType for IlvColor value
-
IlvValueFontType for IlvFont value
-
IlvValuePatternType for IlvPattern value
-
IlvValueColorPatternType for IlvColorPattern value
-
IlvValueGradientPatternType for IlvGradientPattern value
-
IlvValueLineStyleType for IlvLineStyle value
-
IlvValueFillStyleType for IlvFillStyle value
-
IlvValueFillRuleType for IlvFillRule value
-
IlvValueArcModeType for IlvArcMode value
-
IlvValueAntialiasingModeType for IlvAntialiasingMode value
-
IlvValueDirectionType for IlvDirection value
-
IlvValueBitmapType for IlvBitmap value
-
IlvValueFloatType for IlFloat value
-
IlvValueDoubleType for IlDouble value
-
IlvValueStringArrayType for arrays of char*
-
IlvValueUIntArrayType for arrays of IlUInt
-
IlvValueMenuItemArrayType for arrays of IlvMenuItem
-
IlvValueMatrixItemArrayType for arrays of IlvMatrixItems
-
IlvValueNotebookPageArrayType for arrays of IlvNotebookPage
The possible values for the accessors are described in each class where accessors are defined.