Views Foundation Package API Reference Guide |
Views Documentation Home |
Graphic related class. More...
#include <ilviews/base/value.h>
Public Member Functions | |
IlvValue (const char *name, const char *s) | |
Constructor. More... | |
IlvValue (const char *name, IlBoolean b) | |
Constructor. More... | |
IlvValue (const char *name, IlDouble d) | |
Constructor. More... | |
IlvValue (const char *name, IlFloat f) | |
Constructor. More... | |
IlvValue (const char *name, IlInt i) | |
Constructor. More... | |
IlvValue (const char *name, IlUInt u) | |
Constructor. More... | |
IlvValue (const char *name, IlvAntialiasingMode f) | |
Constructor. More... | |
IlvValue (const char *name, IlvArcMode f) | |
Constructor. More... | |
IlvValue (const char *name, IlvBitmap *b) | |
Constructor. More... | |
IlvValue (const char *name, IlvColor *c) | |
Verbose: More... | |
IlvValue (const char *name, IlvColorPattern *p) | |
Constructor. More... | |
IlvValue (const char *name, IlvDirection d) | |
Constructor. More... | |
IlvValue (const char *name, IlvFillRule f) | |
Constructor. More... | |
IlvValue (const char *name, IlvFillStyle f) | |
Constructor. More... | |
IlvValue (const char *name, IlvFont *f) | |
Constructor. More... | |
IlvValue (const char *name, IlvGradientPattern *p) | |
Constructor. More... | |
IlvValue (const char *name, IlvLineStyle *l) | |
Constructor. More... | |
IlvValue (const char *name, IlvPattern *p) | |
Constructor. More... | |
IlvValue (const char *name=0) | |
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... | |
operator long long int () const | |
Operator to transform the content of the IlvValue to the long long int type.. | |
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: xviews or winviews or mviews (mutually exclusive)
The IlvValue
class allows you to query and change the attributes of an object. Instances of this class are used in the methods IlvValueInterface::queryValue()
, IlvValueInterface::changeValue()
, and in IlvValueInterface
subclasses, such as IlvGraphic
, IlvView
and more.
An IlvValue
instance is defined by three things:
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.
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
.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: The possible types for an IlvValue
are:
Type identifier | Corresponding type |
---|---|
IlvValueNoType | empty IlvValue |
IlvValueBooleanType | IlBoolean |
IlvValueIntType | IlInt |
IlvValueUIntType | IlUInt |
IlvValueFloatType | IlFloat |
IlvValueDoubleType | IlDouble |
IlvValueStringType | char* |
IlvValueDirectionType | IlvDirection |
IlvValueColorType | IlvColor |
IlvValueFontType | IlvFont |
IlvValuePatternType | IlvPattern |
IlvValueColorPatternType | IlvColorPattern |
IlvValueGradientPatternType | IlvGradientPattern |
IlvValueLineStyleType | IlvLineStyle |
IlvValueFillStyleType | IlvFillStyle |
IlvValueFillRuleType | IlvFillRule |
IlvValueArcModeType | IlvArcMode |
IlvValueAntialiasingModeType | IlvAntialiasingMode |
IlvValueBitmapType | IlvBitmap |
IlvValueStringArrayType | array of char* |
IlvValueUIntArrayType | array of IlUInt |
IlvValueMenuItemArrayType | array of IlvMenuItem |
IlvValueMatrixItemArrayType | array of IlvMatrixItem |
IlvValueNotebookPageArrayType | array of IlvNotebookPage |
The possible values for the accessors are described in each class where accessors are defined.
IlvValue::IlvValue | ( | const char * | name = 0 | ) |
IlvValue::IlvValue | ( | const char * | name, |
IlInt | i | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlUInt | u | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlFloat | f | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlDouble | d | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
const char * | s | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlBoolean | b | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlvColor * | c | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlvFont * | f | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlvPattern * | p | ||
) |
Constructor.
This constructor creates an IlvValue
instance for the accessor name. It can be used in the following way:
name | The accessor name. |
p | The new value that you want to set to the object |
IlvValue::IlvValue | ( | const char * | name, |
IlvColorPattern * | p | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlvGradientPattern * | p | ||
) |
Constructor.
This constructor creates an IlvValue
instance for the accessor name. It can be used in the following way:
name | The accessor name. |
p | The new value that you want to set to the object |
IlvValue::IlvValue | ( | const char * | name, |
IlvLineStyle * | l | ||
) |
Constructor.
This constructor creates an IlvValue
instance for the accessor name. It can be used in the following way:
name | The accessor name. |
l | The new value that you want to set to the object |
IlvValue::IlvValue | ( | const char * | name, |
IlvFillStyle | f | ||
) |
Constructor.
This constructor creates an IlvValue
instance for the accessor name. It can be used in the following way:
name | The accessor name. |
f | The new value that you want to set to the object |
IlvValue::IlvValue | ( | const char * | name, |
IlvFillRule | f | ||
) |
Constructor.
This constructor creates an IlvValue
instance for the accessor name. It can be used in the following way:
name | The accessor name. |
f | The new value that you want to set to the object |
IlvValue::IlvValue | ( | const char * | name, |
IlvArcMode | f | ||
) |
Constructor.
This constructor creates an IlvValue
instance for the accessor name. It can be used in the following way:
name | The accessor name. |
f | The new value that you want to set to the object |
IlvValue::IlvValue | ( | const char * | name, |
IlvAntialiasingMode | f | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlvDirection | d | ||
) |
IlvValue::IlvValue | ( | const char * | name, |
IlvBitmap * | b | ||
) |
IlSymbol* IlvValue::getName | ( | ) | const |
const IlvValueTypeClass* IlvValue::getType | ( | ) | const |
IlvValue::operator const char * | ( | ) | const |
Returns a copy of a string representation of this object in a.
static buffer. This operator returns a copy of a string representation of this object in a static buffer. The user must not modify or delete this buffer. The returned string may be overwritten by any subsequent call to the library.
IlvValue::operator IlBoolean | ( | ) | const |
IlvValue::operator IlDouble | ( | ) | const |
IlvValue::operator IlFloat | ( | ) | const |
IlvValue::operator IlInt | ( | ) | const |
IlvValue::operator IlUInt | ( | ) | const |
IlvValue::operator IlvAntialiasingMode | ( | ) | const |
IlvValue::operator IlvArcMode | ( | ) | const |
IlvValue::operator IlvDirection | ( | ) | const |
IlvValue::operator IlvFillRule | ( | ) | const |
IlvValue::operator IlvFillStyle | ( | ) | const |
IlvBitmap* IlvValue::toIlvBitmap | ( | IlvDisplay * | display | ) | const |
IlvColor* IlvValue::toIlvColor | ( | IlvDisplay * | display | ) | const |
IlvColorPattern* IlvValue::toIlvColorPattern | ( | IlvDisplay * | display | ) | const |
Returns the content of the IlvValue
as an IlvColorPattern
.
display | The display that creates the color-pattern. |
IlvValue
as an IlvColorPattern
IlvFont* IlvValue::toIlvFont | ( | IlvDisplay * | display | ) | const |
IlvGradientPattern* IlvValue::toIlvGradientPattern | ( | IlvDisplay * | display | ) | const |
Returns the content of the IlvValue
as an IlvGradientPattern
.
display | The display that creates the gradient-pattern. |
IlvValue
as an IlvGradientPattern
IlvLineStyle* IlvValue::toIlvLineStyle | ( | IlvDisplay * | display | ) | const |
Returns the content of the IlvValue
as an IlvLineStyle
.
display | The display that creates the line style. |
IlvValue
as an IlvLineStyle
. IlvPattern* IlvValue::toIlvPattern | ( | IlvDisplay * | display | ) | const |
Returns the content of the IlvValue
as an IlvPattern
.
display | The display that creates the pattern. |
IlvValue
as an IlvPattern
.