Changeset View
Changeset View
Standalone View
Standalone View
plugins/flake/pathshapes/enhancedpath/EnhancedPathShape.h
Context not available. | |||||
103 | /// Converts from shape coordinates to viewbox coordinates | 103 | /// Converts from shape coordinates to viewbox coordinates | ||
---|---|---|---|---|---|
104 | QPointF shapeToViewbox(const QPointF &point) const; | 104 | QPointF shapeToViewbox(const QPointF &point) const; | ||
105 | 105 | | |||
106 | /// Sets if the shape is to be mirrored horizontally before aplying any other transformations | 106 | /// Sets if the shape is to be mirrored horizontally before applying any other transformations | ||
107 | //NOTE: in the standard nothing is mentioned about the priorities of the transformations" | 107 | //NOTE: in the standard nothing is mentioned about the priorities of the transformations" | ||
108 | //it's assumed like this because of the behavior shwon in OOo | 108 | //it's assumed like this because of the behavior shwon in OOo | ||
109 | void setMirrorHorizontally(bool mirrorHorizontally); | 109 | void setMirrorHorizontally(bool mirrorHorizontally); | ||
110 | 110 | | |||
111 | /// Sets if the shape is to be mirrored vertically before aplying any other transformations | 111 | /// Sets if the shape is to be mirrored vertically before applying any other transformations | ||
112 | //NOTE: in the standard nothing is mentioned about the priorities of the transformations" | 112 | //NOTE: in the standard nothing is mentioned about the priorities of the transformations" | ||
113 | //it's assumed like this because of the behavior shwon in OOo | 113 | //it's assumed like this because of the behavior shown in OOo | ||
114 | void setMirrorVertically(bool mirrorVertically); | 114 | void setMirrorVertically(bool mirrorVertically); | ||
115 | 115 | | |||
116 | // Sets member variable representing draw:path-stretchpoint-x attribute | 116 | // Sets member variable representing draw:path-stretchpoint-x attribute | ||
Context not available. | |||||
149 | /// Updates the size and position of an optionally existing text-on-shape text area | 149 | /// Updates the size and position of an optionally existing text-on-shape text area | ||
150 | void updateTextArea(); | 150 | void updateTextArea(); | ||
151 | 151 | | |||
152 | /// Enables chaching results | 152 | /// Enables caching results | ||
153 | void enableResultCache(bool enable); | 153 | void enableResultCache(bool enable); | ||
154 | 154 | | |||
155 | // This function checks if draw:path-stretchpoint-x or draw:path-stretchpoint-y attributes are set. | 155 | // This function checks if draw:path-stretchpoint-x or draw:path-stretchpoint-y attributes are set. | ||
156 | // If the attributes are set the path shape coordinates (m_subpaths) are changed so that the form | 156 | // If the attributes are set the path shape coordinates (m_subpaths) are changed so that the form | ||
157 | // of the shape is preserved after stretching. It is needed for example in round-rectangles, to | 157 | // of the shape is preserved after stretching. It is needed for example in round-rectangles, to | ||
158 | // have the corners round after stretching. Without it the corners would be eliptical. | 158 | // have the corners round after stretching. Without it the corners would be elliptical. | ||
159 | // Returns true if any points were actually changed, otherwise false. | 159 | // Returns true if any points were actually changed, otherwise false. | ||
160 | bool useStretchPoints(const QSizeF &size, qreal &scale); | 160 | bool useStretchPoints(const QSizeF &size, qreal &scale); | ||
161 | 161 | | |||
Context not available. | |||||
170 | QPointF m_viewBoxOffset; | 170 | QPointF m_viewBoxOffset; | ||
171 | QStringList m_textArea; | 171 | QStringList m_textArea; | ||
172 | QList<EnhancedPathCommand *> m_commands; ///< the commands creating the outline | 172 | QList<EnhancedPathCommand *> m_commands; ///< the commands creating the outline | ||
173 | QList<EnhancedPathHandle *> m_enhancedHandles; ///< the handles for modifiying the shape | 173 | QList<EnhancedPathHandle *> m_enhancedHandles; ///< the handles for modifying the shape | ||
174 | FormulaStore m_formulae; ///< the formulae | 174 | FormulaStore m_formulae; ///< the formulae | ||
175 | ModifierStore m_modifiers; ///< the modifier values | 175 | ModifierStore m_modifiers; ///< the modifier values | ||
176 | ParameterStore m_parameters; ///< the shared parameters | 176 | ParameterStore m_parameters; ///< the shared parameters | ||
Context not available. | |||||
178 | bool m_mirrorHorizontally; ///<whether or not the shape is to be mirrored horizontally before transforming it | 178 | bool m_mirrorHorizontally; ///<whether or not the shape is to be mirrored horizontally before transforming it | ||
179 | qreal m_pathStretchPointX; ///< draw:path-stretchpoint-x attribute | 179 | qreal m_pathStretchPointX; ///< draw:path-stretchpoint-x attribute | ||
180 | qreal m_pathStretchPointY; ///< draw:path-stretchpoint-y attribute | 180 | qreal m_pathStretchPointY; ///< draw:path-stretchpoint-y attribute | ||
181 | QHash<QString, qreal> m_resultChache; ///< cache for intermediate results used when evaluating path | 181 | QHash<QString, qreal> m_resultCache; ///< cache for intermediate results used when evaluating path | ||
182 | bool m_cacheResults; ///< indicates if result cache is enabled | 182 | bool m_cacheResults; ///< indicates if result cache is enabled | ||
183 | }; | 183 | }; | ||
184 | 184 | | |||
Context not available. |