This class provides facilities to get run-time information about the parameters of a projection, and to set or modify their values. More...
#include <ilviews/maps/projection/projitf.h>
Public Member Functions | |
virtual void | getAccessors (const IlvSymbol *const **accessors, const IlvValueTypeClass *const **types, IlUInt &count) const |
Returns the list of accessors of a projection. More... | |
virtual const IlvValueTypeClass * | getValueType (const IlvSymbol *valueName) const |
Returns the type of the accessor parameter. More... | |
IlBoolean | isValueReadOnly (const IlvSymbol *valueName) const |
virtual IlvValue & | queryValue (IlvValue &value) const |
Returns the value of a projection parameter in value. More... | |
This class provides facilities to get run-time information about the parameters of a projection, and to set or modify their values.
Library: ilvmaps
It can be used, for example, to create projection editors in a map application.
To get the projection interface of a projection instance, use the IlvProjection::getInterface
method.
|
virtual |
Returns the list of accessors of a projection.
accessors is the resulting array of symbols. Each symbol is the name of a projection parameter types is the array of the types of accessors, count is the number of accessors.
The existing types for accessors that are relevant for a projection parameter are the following:
IlvValueIntType
IlvValueUIntType
IlvValueStringType
IlvValueBooleanType
IlvValueDoubleType
accessors | The resulting array of symbols. |
types | The array of the types of accessors. |
count | The number of accessors. |
|
virtual |
Returns the type of the accessor parameter.
If parameter is not an accessor of the projection class, the function returns 0
.
valueName | The name of the parameter to fetch. |
Returns IlTrue
if parameter cannot be changed.
valueName | The name of the parameter to check. |
IlTrue
if the value is read only, IlFalse
otherwise. Returns the value of a projection parameter in value.
This method can be used in the following way:
IlvValue arg("centralParallel"); char* label = (char*)projection->queryValue(arg);
IlvValue
class. value | The projection parameter. |
Reimplemented from IlvValueInterface.