|
A object providing a reference to a stroke in a OMC::DrawingVectorLayer*.
A stroke defines a bezier path in a drawing that can be have a linestyle or fill applied. The strokes form contours that can be filled and joints at intersections.
Detail from a Stroke
Public Member Functions | |
| OMC::DrawingVectorArtLayer * | drawing () const |
| Returns the OMC::DrawingVectorArtLayer* object that owns this stroke. More... | |
| OMC::DrawingVectorLayer * | layer () const |
| Returns the OMC::DrawingVectorLayer* object that owns this stroke. More... | |
| QList< OMC::DrawingVectorStroke * > | strokes_shared () const |
| Provides a list of all strokes that share the bezier path. More... | |
| QList< OMC::DrawingVectorStroke * > | strokes_shared_thickness () const |
| Provides a list of all strokes that share the thickness binder. More... | |
| bool | continuous (OMC::DrawingVectorStroke *stroke) |
| Identifies if a stroke is continuous with this stroke. More... | |
| bool | thickness_sharing (OMC::DrawingVectorStroke *stroke) |
| Identifies if the stroke shares its thickness with another. More... | |
Public Attributes | |
| OMC::BezierPath | bezier_path |
| OMC::AllocatedRect2d * | bounding_box |
| The bounding-box of the stroke. | |
| OMC::AllocatedRect2d * | bounding_box_visible |
| The bounding-box of the drawing's visible content. | |
| OMC::AllocatedRect2d * | bounding_box_inner |
| The bounding-box of the drawing's inner content. | |
| OMC::DrawingVectorColour * | colour_left |
| The color of the stroke on the left side. More... | |
| OMC::DrawingVectorColour * | colour_right |
| The color of the stroke on the right side. More... | |
| OMC::DrawingVectorContour * | contour_left |
| The contour of the stroke on the left side. More... | |
| OMC::DrawingVectorContour * | contour_right |
| The contour of the stroke on the right side. More... | |
| OMC::Point2d * | tail |
| The tail position of the stroke, as a OMC::Point2d object. | |
| bool | tail_cut |
| True if the tail is cut. | |
| OMC::Vector2d | tail_tangent |
| The tail tangent as a OMC::Vector2d. | |
| double | left_thickness_tangent_from |
| The left thickness tangent on the "from" direction. | |
| double | left_thickness_tangent_to |
| The left thickness tangent on the "to" direction. | |
| OMC::Point2d * | head |
| The head position of the stroke, as a OMC::Point2d object. | |
| QString | tip_type_from |
| The tip type of the 'from' portion of the stroke. More... | |
| QString | tip_type_to |
| The tip type of the 'to' portion of the stroke. More... | |
| OMC::Vector2d | head_tangent |
| The head tangent as a OMC::Vector2d. | |
| double | right_thickness_tangent_from |
| The right thickness tangent on the "from" direction. | |
| double | right_thickness_tangent_to |
| The right thickness tangent on the "to" direction. | |
| int64_t | unique_id |
| The unique ID of the stroke. | |
| OMC::DrawingVectorLineStyle * | line_style |
| OMC::DrawingVectorThickness * | thickness |
| The OMC::DrawingVectorThickness* object that defines the thickness of the stroke. More... | |
| double | thickness_max_visible |
| bool | degenerate |
| True if the stroke is degenerate; all points lie on the same line. | |
| bool | thickness_valid |
| True if the stroke has a valid thickness. | |
| bool OMC::DrawingVectorStroke::continuous | ( | OMC::DrawingVectorStroke * | stroke | ) |
Identifies if a stroke is continuous with this stroke.
A stroke is continuous if the following is true: -this.tail == stroke.head -this.lineType == stroke.lineType -this.thicknessBinder.isContinuous(stroke.thicknessBinder)
| OMC::DrawingVectorArtLayer* OMC::DrawingVectorStroke::drawing | ( | ) | const |
Returns the OMC::DrawingVectorArtLayer* object that owns this stroke.
| OMC::DrawingVectorLayer* OMC::DrawingVectorStroke::layer | ( | ) | const |
Returns the OMC::DrawingVectorLayer* object that owns this stroke.
| QList<OMC::DrawingVectorStroke*> OMC::DrawingVectorStroke::strokes_shared | ( | ) | const |
Provides a list of all strokes that share the bezier path.
| QList<OMC::DrawingVectorStroke*> OMC::DrawingVectorStroke::strokes_shared_thickness | ( | ) | const |
Provides a list of all strokes that share the thickness binder.
| bool OMC::DrawingVectorStroke::thickness_sharing | ( | OMC::DrawingVectorStroke * | stroke | ) |
Identifies if the stroke shares its thickness with another.
Identifies if the stroke shares the thickness with the provided stroke.
| OMC::DrawingVectorStroke::bezier_path |
Get the bezier path that defines the stroke. This path is a value object and changes to it must be reingested into the drawing.
Detail from a Stroke's Bezier Path
Modify a Stroke's Bezier Path
| OMC::DrawingVectorStroke::colour_left |
The color of the stroke on the left side.
Provides the color of the stroke on the given side as a DrawingVectorColor*.
| OMC::DrawingVectorStroke::colour_right |
The color of the stroke on the right side.
Provides the color of the stroke on the given side as a DrawingVectorColor*.
| OMC::DrawingVectorStroke::contour_left |
The contour of the stroke on the left side.
Provides the contour of the stroke on the given side as a DrawingVectorContour*.
| OMC::DrawingVectorStroke::contour_right |
The contour of the stroke on the right side.
Provides the contour of the stroke on the given side as a DrawingVectorContour*.
| OMC::DrawingVectorStroke::line_style |
Provides the OMC::DrawingVectorLineStyle* object that defines the style of the stroke.
| OMC::DrawingVectorStroke::thickness |
The OMC::DrawingVectorThickness* object that defines the thickness of the stroke.
Enlarge all lines
Apply a a custom line weight
|
read |
Provides the max thickness of the stroke.
|
read |
The tip type of the 'from' portion of the stroke.
Valid types are as follows:
|
read |
The tip type of the 'to' portion of the stroke.
Valid types are as follows:

