NodeDelegateAttributeDelegate

Inheritance diagram of rumba.NodeDelegateAttributeDelegate
class NodeDelegateAttributeDelegate

Methods

accepts_overrides()

Return true is the attribute accepts overrides.

add_override()

Add add override.

channel()

If this attribute has a single channel, return it, return nullptr otherwise.

channels()

Return all the attribute's channels.

create_observer(func, in_interactive)

Return an observer which will call the func function when the attribute is possibly modified.

description()

Return the description for this attribute (see Plug description).

has_node_delegate()

Return true if this attribute has a dedicated node delegate to traverse its structure.

is_animable()

Return true is the attribute is animable.

is_mutable()

Return true is the attribute can be modified.

is_overridden()

Return true is the attribute is overridden.

is_plug()

Return true if this attribute is a Rumba Plug.

is_visible()

Return true is the attribute is visible.

name()

Return the attribute name.

node_delegate()

Return the dedicated node delegate.

owner()

Returns the owner node.

plug()

Return the plug behind this attribute.

remove_override()

Remove the override.

set_value(value, mc)

Set the attribute value.

type_name()

Get the attribute type name, without evaluating the attribute.

value(qc)

Return the attribute value.

__init__(*args, **kwargs)
accepts_overrides() bool

Return true is the attribute accepts overrides.

The default implementation returns false.

Return type

bool

add_override() None

Add add override.

The default implementation does nothing.

channel() Channel

If this attribute has a single channel, return it, return nullptr otherwise.

Return type

Channel

channel(sc: ChannelType) -> Channel

Return the specified channel if available, return nullptr otherwise.

Return type

Channel

channel() -> Channel

If this attribute has a single channel, return it, return nullptr otherwise.

Return type

Channel

channel(sc: ChannelType) -> Channel

Return the specified channel if available, return nullptr otherwise.

Return type

Channel

channels()

Return all the attribute’s channels.

Return type

list(Channel)

create_observer(func, in_interactive: bool) Observer

Return an observer which will call the func function when the attribute is possibly modified.

The observer is called when the attribute is modified. It may be called more than necessary in some implementation, like with the Values’s attributes.

To stop the function to be called, un-reference the Observer shared pointer.

If no observer can be created, returns nullptr.

Return type

Observer

description() AttributeDescriptor

Return the description for this attribute (see Plug description).

Return type

AttributeDescriptor

has_node_delegate() bool

Return true if this attribute has a dedicated node delegate to traverse its structure.

The default implementation returns false

Return type

bool

is_animable() bool

Return true is the attribute is animable.

The default implementation returns false.

Return type

bool

is_mutable() bool

Return true is the attribute can be modified.

The default implementation returns false.

Return type

bool

is_overridden() bool

Return true is the attribute is overridden.

The default implementation returns false.

Return type

bool

is_plug() bool

Return true if this attribute is a Rumba Plug.

Return type

bool

is_visible() bool

Return true is the attribute is visible.

The default implementation returns true.

Return type

bool

name() unicode

Return the attribute name.

Return type

unicode

node_delegate() NodeDelegate

Return the dedicated node delegate.

Implemented by the plug-in.

Return type

NodeDelegate

owner() NodeDelegate

Returns the owner node.

Implemented by the plug-in.

Return type

NodeDelegate

plug() Plug

Return the plug behind this attribute.

Return type

Plug

Raises

RuntimeError – if the attribute is not mapped to a Plug

remove_override() None

Remove the override.

The default implementation does nothing.

set_value(value: Value, mc: ModificationContext) None

Set the attribute value.

type_name() StringView

Get the attribute type name, without evaluating the attribute.

Return type

StringView

value(qc: QueryContext) Value

Return the attribute value.

Return type

Value