Incomplete documentation - sorry!
Note
Neil - please put some data in technical/class_headings/ChartDataModel.rst
Bases: object
a custom set of dictionaries which holds data about all teeth in the mouth.
ChartWidgets hold no data, but are “views” to this model.
Note
Summary and static chart share one instance of this class. the treatment chart and completed chart have an instance each.
add comment from the database orm fill is an instance of QtSqlQRecord, with some customisations see lib_openmolar.common.db_orm.static_comments for details
add crown from the database orm crown is an instance of QtSqlQRecord, with some customisations see lib_openmolar.common.db_orm.static_crowns for details
add fill from the database orm fill is an instance of QtSqlQRecord, with some customisations see lib_openmolar.common.db_orm.static_fills for details
Param : | int |
---|---|
Param : | string |
allows the addition of a fill in the form “MOD,CO”
add root data from the database orm root_record is an instance of QtSqlQRecord, with some customisations see lib_openmolar.common.db_orm.static_roots for details
call this function after altering the data if you need to inform registered views of the change
a generator returning all ToothData objects of type Comment which are NOT in the database (ie have been added by client)
a generator returning all ToothData objects of type Crown which are NOT in the database (ie have been added by client)
a generator returning all ToothData objects of type Filling which are NOT in the database (ie have been added by client)
a generator returning all ToothData objects of type Root which are NOT in the database (ie have been added by client)
Param : | tooth_id (int) |
---|
a generator returning all PerioData for this tooth
Param : | tooth_id (int) |
---|
a generator returning all ToothData objects for this tooth
Param : | tooth_id (int) |
---|
a generator returning all ToothData objects of type Filling or Crown for this tooth
Param : | tooth_id (int) |
---|
a generator returning all ToothData objects of type Root for this tooth
Param : | tooth_id (int) |
---|
returns True if this model has data for tooth with this id
register all widgets which are attached to this model, so that when “endResetModel” is called, they get notified
Note
widgets registered this way must have a method model_changed()
a list of widgets which need to be informed whenever this model changes