![]() |
Represents a vector layer in a vector drawing.
Provided as a layer from a vector drawing layer (OMC::DrawingVectorArtLayer*), this layer represents a vector layer within the drawing – composed of a number of strokes. The strokes can be filled and can be treated with a custom linestyle. Some modifications can be made to the layer with methods defined here, more detailed modifications can be made with the OMC::DrawingAccess* object.
Inspect the Vector Layers
Public Member Functions | |
void | transform (const OMC::Matrix *matrix) |
Transform the layer. More... | |
void | translate (const OMC::Vector2d *offset) |
Translates the text layer. More... | |
OMC::DrawingVectorArtLayer * | drawing () const |
Returns the OMC::DrawingVectorArtLayer* object that owns this layer. More... | |
Public Attributes | |
OMC::DrawingVectorContourList * | contours |
The contour list for this vector drawing layer. More... | |
OMC::DrawingVectorStrokeList * | strokes |
The stroke list for this vector drawing layer. More... | |
OMC::DrawingVectorJointList * | joints |
The joint list for this vector drawing layer. More... | |
OMC::AllocatedRect2d * | bounding_box |
The bounding box of the layer. More... | |
OMC::AllocatedRect2d * | bounding_box_visible |
The visible bounding box. More... | |
OMC::AllocatedRect2d * | bounding_box_linestyle |
The bounding box with linestyle. More... | |
QString | type |
The type of the drawing layer. More... | |
|
inherited |
Returns the OMC::DrawingVectorArtLayer* object that owns this layer.
void OMC::DrawingVectorLayer::transform | ( | const OMC::Matrix * | matrix | ) |
Transform the layer.
Transform the vector layer with the provided matrix. Only the 2d components of the matrix are considered.
Randomly transforming each layer
void OMC::DrawingVectorLayer::translate | ( | const OMC::Vector2d * | offset | ) |
Translates the text layer.
Translates the vector layer with the provided vector.
Randomly translating each layer
|
inherited |
The bounding box of the layer.
Get the world bounding-box of the drawing.
|
inherited |
The bounding box with linestyle.
Get the bounding-box of the drawing's visible content, with the linestyle considered.
|
inherited |
The visible bounding box.
Get the world bounding-box of the drawing's visible content.
OMC::DrawingVectorLayer::contours |
The contour list for this vector drawing layer.
Contours are derived regions formed by the strokes. These regions can be filled on the left or right side of the stroke, in relation to the direction in which the stroke is formed.
OMC::DrawingVectorLayer::joints |
The joint list for this vector drawing layer.
Joints are the points at which strokes are connected to each other, or at the extremities of the stroke. Joints have positions and a list of strokes that are ordered counter-clockwise.
OMC::DrawingVectorLayer::strokes |
The stroke list for this vector drawing layer.
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.
|
readinherited |
The type of the drawing layer.
A string representing the type of layer – the following types are supported: