ChartRoot

This class is a fusion between python and Qt functionality.

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

../../../_images/ChartRoot.png

methods and attributes

class lib_openmolar.client.qt4.widgets.chart_widgets.roots.ChartRoot(tooth_id, model)[source]

Bases: lib_openmolar.client.qt4.widgets.chart_widgets.teeth.ChartTooth

custom class which holds data about a root

__init__(tooth_id, model)[source]
draw_restorations(painter)[source]

overwrite this function, which is base class specific

draw_structure(painter)[source]
draw_svg(painter)[source]
has_rct[source]
is_implant[source]
is_root = None

a boolean so that it’s clear this is a ChartRoot, not the parent class ChartTooth

opacity = None

this variable determines the opacity of any painting

perio_properties[source]
properties[source]
set_rect(rect)[source]

update the rectangle of the root

svg[source]

returns an appropriate svg or None (in which case self.svg_renderer is used)

presently, I only have an SVG for an implant.

svg_renderer = None

a reference to a QtSvg.QSvgRenderer with the correct svg

Table Of Contents

Previous topic

ChartOptionsWidget

Next topic

ChartTooth