Public Member Functions | |
def | __init__ |
def | bring_band_to_front |
def | get_band_item_attributes |
def | get_block_item_attributes |
def | get_snap_item_attributes |
def | reorder_bands |
def | reorder_blocks |
def | reorder_snaps |
Private Member Functions | |
def | _update_view |
Private Attributes | |
_cached_band_item_altitudes | |
_cached_block_item_indexes | |
_cached_snap_item_snapkeys |
Basic implementation of the adapter interface. This should not have any QT or non-standard topology specific code.
Definition at line 12 of file base_adapter.py.
def diarc.diarc.base_adapter.BaseAdapter.__init__ | ( | self, | |
model, | |||
view | |||
) |
Definition at line 15 of file base_adapter.py.
def diarc.diarc.base_adapter.BaseAdapter._update_view | ( | self | ) | [private] |
updates the view - compute each items neigbors and then calls linking.
Definition at line 221 of file base_adapter.py.
def diarc.diarc.base_adapter.BaseAdapter.bring_band_to_front | ( | self, | |
altitude | |||
) |
Definition at line 192 of file base_adapter.py.
def diarc.diarc.base_adapter.BaseAdapter.get_band_item_attributes | ( | self, | |
band_altitude | |||
) |
Default method for providing some stock settings for bands
Reimplemented in diarc.ros.ros_adapter.RosAdapter.
Definition at line 37 of file base_adapter.py.
def diarc.diarc.base_adapter.BaseAdapter.get_block_item_attributes | ( | self, | |
block_index | |||
) |
Default method for providing some stock settings for blocks
Reimplemented in diarc.ros.ros_adapter.RosAdapter.
Definition at line 25 of file base_adapter.py.
def diarc.diarc.base_adapter.BaseAdapter.get_snap_item_attributes | ( | self, | |
snapkey | |||
) |
Default method for providing some stock settings for snaps
Reimplemented in diarc.ros.ros_adapter.RosAdapter.
Definition at line 47 of file base_adapter.py.
def diarc.diarc.base_adapter.BaseAdapter.reorder_bands | ( | self, | |
srcAlt, | |||
lowerAlt, | |||
upperAlt | |||
) |
Reorders the altitude values of bands
Definition at line 103 of file base_adapter.py.
def diarc.diarc.base_adapter.BaseAdapter.reorder_blocks | ( | self, | |
srcIdx, | |||
lowerIdx, | |||
upperIdx | |||
) |
reorders the index values of blocks and triggers the view to redraw. This also requires updating the corresponding block_items.
Definition at line 59 of file base_adapter.py.
def diarc.diarc.base_adapter.BaseAdapter.reorder_snaps | ( | self, | |
blockIdx, | |||
container, | |||
srcIdx, | |||
lowerIdx, | |||
upperIdx | |||
) |
Definition at line 144 of file base_adapter.py.
Definition at line 15 of file base_adapter.py.
Definition at line 15 of file base_adapter.py.
Definition at line 15 of file base_adapter.py.