rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Prototypes Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMultiRepAccessor Class Reference

Switch between different representations. More...

#include <ilviews/protos/condacc.h>

Inheritance diagram for IlvMultiRepAccessor:
IlvUserAccessor IlvAccessor

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
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
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.