DisplayArrow

No example available.

Declaration

class declaracad.occ.display.DisplayArrow(parent=None, **kwargs)[source]

Bases: DisplayItem

Add an arrow to the 3d display.

Attributes:
activated
children
color
cone_size
description
destroyed
direction
display
initialized
is_destroyed
is_initialized
name
parent
position
proxy
proxy_is_active
transparency
tube_size

Methods

activate_bottom_up()

Initialize the proxy on the bottom-up activation pass.

activate_proxy()

Activate the proxy object tree.

activate_top_down()

Initialize the proxy on the top-down activation pass.

child_added(child)

A reimplemented child added event handler.

child_moved(child)

A method invoked when a child is moved in the object.

child_removed(child)

A reimplemented child removed event handler.

destroy()

A reimplemented destructor.

find(name[, regex])

Find the first object in the subtree with the given name.

find_all(name[, regex])

Find all objects in the subtree with the given name.

freeze

Freeze the atom to prevent further modifications to its attributes.

get_member

Get the named member for the atom.

has_observer

Get whether the atom has the given observer for a given topic.

has_observers

Get whether the atom has observers for a given topic.

initialize()

A reimplemented initializer.

insert_children(before, insert)

Insert children into this object at the given location.

members()

Get the members dictionary for the type.

notifications_enabled

Get whether notification is enabled for the atom.

notify

Call the registered observers for a given topic with positional and keyword arguments.

observe

Register an observer callback to observe changes on the given topic(s).

parent_changed(old, new)

A method invoked when the parent of the object changes.

root_object()

Get the root object for this hierarchy.

set_notifications_enabled

Enable or disable notifications for the atom.

set_parent(parent)

Set the parent for this object.

show()

Generates the display item

suppress_notifications()

Disable member notifications within in a context.

traverse([depth_first])

Yield all of the objects in the tree, from this object down.

traverse_ancestors([root])

Yield all of the objects in the tree, from this object up.

unobserve

Unregister an observer callback for the given topic(s).

cone_size

A tuple of (radius, length)

proxy

Reference to the implementation control

tube_size

A tuple of (radius, length)

Implementation

class declaracad.occ.impl.occ_display.OccDisplayArrow[source]

Bases: OccDisplayItem, ProxyDisplayArrow

Attributes:
declaration
is_active

Test whether or not the proxy is fully activated.

item

Methods

activate_bottom_up()

Activate the proxy tree for the bottom-up pass.

activate_top_down()

Activate the proxy for the top-down pass.

child_added(child)

Handle a child being added to the object.

child_removed(child)

Handle a child being removed from the object.

children()

Get the child objects for this object.

destroy()

Destroy the proxy and any of its resources.

freeze

Freeze the atom to prevent further modifications to its attributes.

get_member

Get the named member for the atom.

has_observer

Get whether the atom has the given observer for a given topic.

has_observers

Get whether the atom has observers for a given topic.

members()

Get the members dictionary for the type.

notifications_enabled

Get whether notification is enabled for the atom.

notify

Call the registered observers for a given topic with positional and keyword arguments.

observe

Register an observer callback to observe changes on the given topic(s).

parent()

Get the parent proxy object for this object.

set_notifications_enabled

Enable or disable notifications for the atom.

set_position(position)

suppress_notifications()

Disable member notifications within in a context.

unobserve

Unregister an observer callback for the given topic(s).

update_item()

Recreates the dimension catching any errors

clear_focus

create_item

ensure_hidden

ensure_visible

focus_next_child

focus_previous_child

has_focus

request_relayout

restyle

set_background

set_color

set_cone_size

set_direction

set_enabled

set_focus

set_font

set_foreground

set_maximum_size

set_minimum_size

set_status_tip

set_tool_tip

set_transparency

set_tube_size

set_visible

update_color

item

A reference to the toolkit item created by the proxy.