Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Allows user actions that trigger a callback to, in turn, set an attribute. More...
#include <ilviews/protos/callbacc.h>
Public Member Functions | |
IlvCallbackAccessor (const char *name, const IlvValueTypeClass *type, const char *nodename, const char *callback, const char *queryacc, IlvDisplay *display=0) | |
Creates a callback accessor. | |
virtual IlBoolean | isOutputValue (const IlSymbol *name) const |
Queries if the accessor is an output accessor. | |
Protected Member Functions | |
virtual void | initialize (const IlvAccessorHolder *object) |
Attachment method to an IlvAccessorHolder . |
Allows user actions that trigger a callback to, in turn, set an attribute.
Library: ilvproto
This class lets you define a notifying attribute (also called output value) for your group. This notifying value is triggered when the callback of one of the graphic objects of the prototype is executed.
IlvCallbackAccessor::IlvCallbackAccessor | ( | const char * | name, | |
const IlvValueTypeClass * | type, | |||
const char * | nodename, | |||
const char * | callback, | |||
const char * | queryacc, | |||
IlvDisplay * | display = 0 | |||
) |
Creates a callback accessor.
name | Name of the attribute. | |
type | Type of the attribute. Used only for initialization purposes. | |
nodename | Name of the graphic node that defines the callback, or "[All Nodes]" if the accessor is to be called for all callbacks triggered by all nodes. | |
callback | The name of the callback (usually "Generic"). | |
queryacc | Value that will be queried and copied to the output value. This can be an expression. |
virtual void IlvCallbackAccessor::initialize | ( | const IlvAccessorHolder * | object | ) | [protected, virtual] |
Attachment method to an IlvAccessorHolder
.
This method is called when the accessor object is attached to a group. You can redefine it in subclasses of IlvUserAccessor
to perform any kind of initialization.
object | The object the accessor is attached to. |
Reimplemented from IlvUserAccessor.
Queries if the accessor is an output accessor.
IlTrue
if the accessor is an output accessor, and IlFalse
otherwize. Reimplemented from IlvUserAccessor.
© 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.