rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Prototypes Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvZoomXAccessor Class Reference

Behavior to set the X scaling factor of a graphic object. More...

#include <ilviews/protos/graphacc.h>

Inheritance diagram for IlvZoomXAccessor:
IlvUserAccessor IlvAccessor

List of all members.

Public Member Functions

 IlvZoomXAccessor (const char *name, const char *nodename, const char *centerX)
 Creates a new zoom accessor.
virtual IlBoolean changeValue (IlvAccessorHolder *object, const IlvValue &val)
 Called by the method IlvAccessible::changeValue for each IlvAccessor attached to the IlvAccessorHolder.
virtual IlvValuequeryValue (const IlvAccessorHolder *object, IlvValue &val) const
 Called by the method IlvAccessible::queryValue for each IlvAccessor attached to the IlvAccessorHolder.

Detailed Description

Behavior to set the X scaling factor of a graphic object.

Library: ilvproto

IlvZoomXAccessor controls the horizontal scaling factor of a graphic object. Each time the attribute is changed, the object is scaled to the attribute value and the new scale setting is stored.


Constructor & Destructor Documentation

IlvZoomXAccessor::IlvZoomXAccessor ( const char *  name,
const char *  nodename,
const char *  centerX 
)

Creates a new zoom accessor.

This accessor includes an IlvValueAccessor of type float that holds the current scaling factor of the node. It is therefore implicitly typed to IlvFloatValueType.

Parameters:
name Name of the attribute.
nodename Specifies the name of the node that contains the graphic object to be scaled.
centerX Defines the scale center. centerX can contain a constant value, the name of another attribute, or an arithmetic expression that can contain attribute names and/or constants (see IlvUserAccessor::getValue).
 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.