All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends
Public Member Functions | Private Attributes
rqt_smach.smach_graph.ContainerNode Class Reference

List of all members.

Public Member Functions

def __init__
def get_dotcode
def set_styles
def update_status
def update_structure

Private Attributes

 _active_states
 _children
 _container_outcomes
 _dir
 _info
 _initial_states
 _internal_outcomes
 _label
 _last_active_states
 _local_data
 _outcomes_from
 _outcomes_to
 _path
 _server_name
 _structure_changed

Detailed Description

This class represents a given container in a running SMACH system. 

Its primary use is to generate dotcode for a SMACH container. It has
methods for responding to structure and status messages from a SMACH
introspection server, as well as methods for updating the styles of a 
graph once it's been drawn.

Definition at line 88 of file smach_graph.py.


Constructor & Destructor Documentation

def rqt_smach.smach_graph.ContainerNode.__init__ (   self,
  server_name,
  msg 
)

Definition at line 97 of file smach_graph.py.


Member Function Documentation

def rqt_smach.smach_graph.ContainerNode.get_dotcode (   self,
  selected_paths,
  closed_paths,
  depth,
  max_depth,
  containers,
  show_all,
  label_wrapper,
  attrs = {} 
)
Generate the dotcode representing this container.

@param selected_paths: The paths to nodes that are selected
@closed paths: The paths that shouldn't be expanded
@param depth: The depth to start traversing the tree
@param max_depth: The depth to which we should traverse the tree
@param containers: A dict of containers keyed by their paths
@param show_all: True if implicit transitions should be shown
@param label_wrapper: A text wrapper for wrapping element names
@param attrs: A dict of dotcode attributes for this cluster

Definition at line 175 of file smach_graph.py.

def rqt_smach.smach_graph.ContainerNode.set_styles (   self,
  selected_paths,
  depth,
  max_depth,
  items,
  subgraph_shapes,
  containers 
)
Update the styles for a list of containers without regenerating the dotcode.

This function is called recursively to update an entire tree.

@param selected_paths: A list of paths to nodes that are currently selected.
@param depth: The depth to start traversing the tree
@param max_depth: The depth to traverse into the tree
@param items: A dict of all the graph items, keyed by url
@param subgraph_shapes: A dictionary of shapes from the rendering engine
@param containers: A dict of all the containers
if depth == 0:
    container_shapes = subgraph_shapes['cluster_'+self._path]
    container_color = (0,0,0,0)
    container_fillcolor = (0,0,0,0)

    for shape in container_shapes:
shape.pen.color = container_color
shape.pen.fillcolor = container_fillcolor

Definition at line 331 of file smach_graph.py.

Update the known userdata and active state set and return True if the graph needs to be redrawn.

Definition at line 140 of file smach_graph.py.

Update the structure of this container from a given message. Return True if anything changes.

Definition at line 119 of file smach_graph.py.


Member Data Documentation

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 97 of file smach_graph.py.

Definition at line 140 of file smach_graph.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


rqt_smach
Author(s): Jonathan Bohren
autogenerated on Wed Jun 26 2013 10:10:53