ChartTooth

This class is a fusion between python and Qt functionality.

When an active QPainter is passed into draw_structure, this is drawn

../../../_images/ChartTooth1.png
When an active QPainter is passed into draw_restorations, something like this

is drawn.

../../../_images/ChartTooth2.png

methods and attributes

class lib_openmolar.client.qt4.widgets.chart_widgets.teeth.ChartTooth(tooth_id, model)[source]

Bases: lib_openmolar.client.classes.tooth.Tooth

custom class which acts as a view to the data stored in ChartDataModel for a tooth

__init__(tooth_id, model)[source]
Param :int (should conform to Tooth Notation)
Param :ChartDataModel
add_property(prop)[source]

convience method to add data to the underlying model

draw_restorations(painter)[source]
draw_structure(painter)[source]
has_properties[source]
init_restoration_shapes()[source]
line_edit_text[source]
properties[source]
properties_as_string[source]
ref_left[source]

returns the appropriate ref for the left arrow_key

ref_next[source]

returns the next tooth in a forward direction (eg if return is pressed)

ref_prev[source]

returns the next tooth in a backward direction

ref_right[source]

returns the appropriate ref for the left arrow_key

restorations[source]
row_down[source]

returns the appropriate tooth in a downwards direction

row_up[source]

returns the appropriate tooth in a downwards direction

select_rect(include_root=False)[source]
set_graphics_points()[source]
set_ignore(boolean)[source]
set_is_present(boolean)[source]
set_rect(rect)[source]

update the rectangle of the tooth

set_selected(boolean)[source]
toggle_is_present()[source]
toggle_selection()[source]

Table Of Contents

Previous topic

ChartRoot

Next topic

ChartWidgetBase