|
Krita Source Code Documentation
|
Inheritance diagram for ShapeLayerContainerModel:Private Attributes | |
| qreal | m_xRes {72.0} |
| qreal | m_yRes {72.0} |
| KisShapeLayer * | q |
Additional Inherited Members | |
Protected Member Functions inherited from KoShapeContainerModel | |
| KoShapeContainerModel (const KoShapeContainerModel &rhs) | |
Definition at line 74 of file kis_shape_layer.cc.
|
inline |
Definition at line 77 of file kis_shape_layer.cc.
Add a shape to this models store.
| shape | the shape to be managed in the container. |
The shape is always added with the absolute transformation set appropriately. Here we should just squeeze it into the layer's transformation.
Implements KoShapeContainerModel.
Definition at line 82 of file kis_shape_layer.cc.
References KoShape::absoluteTransformation(), SimpleShapeContainerModel::add(), KoShape::applyAbsoluteTransformation(), SimpleShapeContainerModel::inheritsTransform(), KIS_SAFE_ASSERT_RECOVER_NOOP, m_xRes, m_yRes, q, and KoShape::setResolution().
Remove a shape to be completely separated from the model.
| shape | the shape to be removed. |
Implements KoShapeContainerModel.
Definition at line 97 of file kis_shape_layer.cc.
References KoShape::absoluteTransformation(), KoShape::applyAbsoluteTransformation(), SimpleShapeContainerModel::inheritsTransform(), KIS_SAFE_ASSERT_RECOVER_NOOP, q, and SimpleShapeContainerModel::remove().
|
inline |
Definition at line 107 of file kis_shape_layer.cc.
References m_xRes, m_yRes, qFuzzyCompare(), KoShape::setResolution(), and SimpleShapeContainerModel::shapes().
|
private |
Definition at line 119 of file kis_shape_layer.cc.
|
private |
Definition at line 120 of file kis_shape_layer.cc.
|
private |
Definition at line 118 of file kis_shape_layer.cc.