Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Switch between different representations. More...
#include <ilviews/protos/condacc.h>
Public Member Functions | |
IlvMultiRepAccessor (const char *name, const IlvValueTypeClass *type, IlUInt count, const char **nodenames) | |
Creates a new multi-representation accessor. | |
Protected Member Functions | |
virtual IlBoolean | changeValue (IlvAccessorHolder *object, const IlvValue &val) |
Called by the method IlvAccessible::changeValue for each IlvAccessor attached to the IlvAccessorHolder . |
Switch between different representations.
Library: ilvproto
IlvMultiRepAccessor
is used to build symbols that have multiple representations depending on a state value. This accessor controls the visibility of the nodes of a group depending on an integer value that represents a state. When the value is changed, the graphic node corresponding to the new value is made visible, and the nodes corresponding to other values are hidden.
IlvMultiRepAccessor::IlvMultiRepAccessor | ( | const char * | name, | |
const IlvValueTypeClass * | type, | |||
IlUInt | count, | |||
const char ** | nodenames | |||
) |
Creates a new multi-representation accessor.
The values of this accessor can range from 0 to count-1. When the value is changed, it is used as an index in nodenames to find the node that is to be made visible. All other nodes in nodenames are hidden.
Name | Name of the attribute. | |
type | Type of the attribute. It should be an integer type such as IlvValueIntType . | |
count | Number of possible values. | |
nodenames | Array of names of graphic objects included in the group |
© Copyright 2012, 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.