ToothData

Incomplete documentation - sorry!

Note

Neil - please put some data in technical/class_headings/ToothData.rst

methods and attributes

class lib_openmolar.client.qt4.widgets.chart_widgets.tooth_data.ToothData(tooth_id)[source]

Bases: object

a custom object which holds information about a filling, crown or comment NOTE - filled surfaces are stored as MODBL - so I and P surfaces are translated if used for user interaction.

This class can be displayed by a variety of views, namely ChartWidgetBase (and it’s ancestors) or ToothDataEditor

__init__(tooth_id)[source]
Param :int

Note

tooth id should comply with Tooth Notation

COMMENT = 3
CROWN = 1
FILLING = 0
ROOT = 2
brush[source]

a QtGui.QBrush instance

comment[source]
crown_type[source]
display_surfaces[source]

convert from om_datatype (where P and I are stored as L and O respcetively)

error_message = None
fill_material[source]
from_fill_string(fill_string)[source]
Param :fill_string (string)

takes “MOD,CO” and converts it to a property

from_treatment_item_metadata(t_i_meta)[source]

this input has come from a treatment_item (which is a class generated by a dialog which adds necessary data to a procedure code)

from_user_input(input)[source]
Param :input (QString)

this input has come from a line edit.. so has to be checked for sanity

icon[source]
in_database = None
is_comment[source]
is_crown[source]
is_fill[source]
is_fissure_sealant[source]
is_root[source]
is_valid[source]
material[source]
parse_comment_input(input)[source]
parse_crown_input(input)[source]
parse_fill_input(input, decode=True)[source]
parse_root_input(input)[source]
proc_code = None
root_type = None

attributes when data is a root

set_comment(comment)[source]
set_crown_type(crown_type)[source]
set_material(material)[source]
set_root_type(root_type)[source]
set_surfaces(surfaces)[source]
set_technition(technition)[source]
set_type(type)[source]
surfaces[source]
surfaces_to_draw[source]

this value is the surfaces mirrored to allow quadrant agnostic values.

essentially this converts the surfaces to what they would be if the tooth were in the upper right quadrant.

svg = None
technition[source]
text[source]

a human readable description of this data

tooth[source]

the Tooth for this data

tooth_id = None
type = None

default is None

Table Of Contents

Previous topic

Tooth

Next topic

ToothDataEditor