Rogue Wave Views
Maps Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvProjectionInterface Class Reference

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>

Inheritance diagram for IlvProjectionInterface:
IlvValueInterface

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 IlvValueTypeClassgetValueType (const IlvSymbol *valueName) const
 Returns the type of the accessor parameter. More...
 
IlBoolean isValueReadOnly (const IlvSymbol *valueName) const
 
virtual IlvValuequeryValue (IlvValue &value) const
 Returns the value of a projection parameter in value. More...
 

Detailed Description

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.

See also
IlvProjection, IlvProjectionDictionary, IlvProjectionClassInfo, IlvValue.

Member Function Documentation

§ getAccessors()

virtual void IlvProjectionInterface::getAccessors ( const IlvSymbol *const **  accessors,
const IlvValueTypeClass *const **  types,
IlUInt count 
) const
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
Parameters
accessorsThe resulting array of symbols.
typesThe array of the types of accessors.
countThe number of accessors.

§ getValueType()

virtual const IlvValueTypeClass* IlvProjectionInterface::getValueType ( const IlvSymbol valueName) const
virtual

Returns the type of the accessor parameter.

If parameter is not an accessor of the projection class, the function returns 0.

Parameters
valueNameThe name of the parameter to fetch.
Returns
The type of the accessor.

§ isValueReadOnly()

IlBoolean IlvProjectionInterface::isValueReadOnly ( const IlvSymbol valueName) const

Returns IlTrue if parameter cannot be changed.

Parameters
valueNameThe name of the parameter to check.
Returns
IlTrue if the value is read only, IlFalse otherwise.

§ queryValue()

virtual IlvValue& IlvProjectionInterface::queryValue ( IlvValue value) const
virtual

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);
Note
See the Rogue Wave Views Foundation Package Reference Manual for complete information on the IlvValue class.
Parameters
valueThe projection parameter.
Returns
The value of the parameter.

Reimplemented from IlvValueInterface.


© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.