Skip to main content
Version: Next

Scene

class compolyx.Scene(graph, model=None, name='', id=None, title='', view=None, parent=None, active_set=None)

Class to represent scene.

Attributes

NameDescription
Scene.active_setSet of active entities
Scene.backgroundBackground color
Scene.background2Background color 2
Scene.cameraCamera settings
Scene.changedStatus boolean
Scene.continuous_pick_enabled
Scene.deformed
Scene.descriptions_changedSet to True if descriptions should be updated
Scene.display_data
Scene.event_snapshot
Scene.fit_to_windowReset the zoom of the window
Scene.foregroundForeground color
Scene.id
Scene.is_dict_itemSpecifies whether the object is an item of a dict
Scene.is_list_itemSpecifies whether the object is an item of a list
Scene.lighting_mode
Scene.link_pathRoot path of the current node in the tree for links to this object
Scene.logo_typeLogo type: default or black
Scene.modeCurrent ACP mode (pre)
Scene.model
Scene.nameName of object
Scene.parentParent object in tree
Scene.projectionProjection method: 'parallel' or 'perspective'
Scene.root_pathRoot path of the current node in the tree
Scene.scale_factorScale factor of the deformed mesh
Scene.show_contour_and_direction_in_front
Scene.show_draped_fiber_directions
Scene.show_draped_transverse_directions
Scene.show_edges
Scene.show_element_selection_through_mesh
Scene.show_element_typeHighlight "shell" or "solid" elements, or use "automatic" to select solid elements if the object belongs to a solid model. Note that only analysis plies have solid elements.
Scene.show_fiber_directions
Scene.show_global_coordinate_systemToggle visibility of global coordinate system marker
Scene.show_labeled_bounding_boxToggle visibility of labeled bounding box
Scene.show_legend
Scene.show_material_1_directions
Scene.show_measure
Scene.show_mesh_silhouette
Scene.show_minmax
Scene.show_normals
Scene.show_orientations
Scene.show_ref_directions
Scene.show_section_cut_plots
Scene.show_selected_meshSpecify whether to show/highlight currently selected Elements
Scene.show_silhouetteWhether to show the silhouette of currently selected elements
Scene.show_surface
Scene.show_transverse_directions
Scene.static_display_data
Scene.static_plots
Scene.statusStatus of the object
Scene.titleScene title
Scene.uptodateApply a view to the scene
Scene.viewApply a view to the scene

Methods

NameDescription
Scene.connect()
Scene.disconnect()
Scene.find_parent(type)Function steps up the tree and returns the first parent with given type
Scene.get_display_data_for(obj)
Scene.save_snapshot(path[, width, height, ...])Create a snapshot of the scene
Scene.serialize()Serialize to Python string
Scene.update()
Scene.update_direction_display_data(entities)Function syncronizes the following direction plots with the added/removed entities given: "orientations," "ref_directions," "fiber_directions," "draped_fiber_directions"
Scene.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node