Aurelon Open API 8.1.1
|
Base class for all vector graphics. More...
Public Member Functions | |
void | GetContour (AOI_ContourPtr) const |
AOI_StylePtr | GetFillStyle () const |
AOI_StylePtr | GetStrokeStyle () const |
void | SetFillStyle (AOI_StylePtr) |
void | SetStrokeStyle (AOI_StylePtr) |
bool | GetEOFill () const |
void | SetEOFill (bool) |
float | GetStrokeWidth () const |
void | SetStrokeWidth (float) |
float | GetJoin () const |
void | SetJoin (float) |
uint8_t | GetCaps () const |
void | SetCaps (uint8_t) |
void | GetDash (int32_t *, float **, float *) const |
void | SetDash (int32_t, float *, float) |
uint32_t | GetType () const |
void | GetBounds (AOI_Rectangle &) const |
AOI_Object * | GetNext () const |
void | GetMaskedBounds (AOI_Rectangle &) const |
void | GetPrecisionBounds (AOI_Rectangle &) const |
AOI_BlendMode | GetBlendMode () const |
float | GetBlendValue () const |
AOI_Intent | GetIntent () const |
bool | Visible () const |
void | SetBlendMode (AOI_BlendMode) |
void | SetBlendValue (float) |
void | SetIntent (AOI_Intent) |
void | Map (const AOI_Mapping &mapping) |
void | Scale (const AOI_Mapping &) |
Static Public Member Functions | |
static void | operator delete (void *) |
Base class for all vector graphics.
Definition at line 11 of file AOI_Vector.h.
|
inherited |
Returns the BlendMode of the object.
Possible BlendModes are:
Definition at line 132 of file AOI_Object.cpp.
|
inherited |
Returns the value with which blending should be done. For normal blending this is the opacity value. 0 is transparent and 1 is opaque.
Definition at line 145 of file AOI_Object.cpp.
|
inherited |
Returns the bounds of the object.
This function is quick and will suffice in most situations. It handles bezier curves by adding the complete hull to the bounds. For precise bounds use GetPrecisionBounds
r | Receives the bounds |
Definition at line 40 of file AOI_Object.cpp.
uint8_t AOI_Object_Vector::GetCaps | ( | ) | const |
Return the caps type of the nodes of the path.
Possible values:
Definition at line 153 of file AOI_Vector.cpp.
void AOI_Object_Vector::GetContour | ( | AOI_ContourPtr | outContour | ) | const |
Returns the AOI_Contour.
All AOI_Objects derived from AOI_Object_Vector have a contour. So if the contour information ao an AOI_Object_Text is needed, caal this function.
outContour | Receives the contour. Should be a pointer to an existing empty AOI_Contour. |
Definition at line 23 of file AOI_Vector.cpp.
void AOI_Object_Vector::GetDash | ( | int32_t * | nrOffDashes, |
float ** | dashes, | ||
float * | fase ) const |
Returns the dash definition of this Vector.
The dashes parameter is filled with a pointer to an existing dashes array. Do not supply an array nor delete this after use.
nrOffDashes | Recieves the number of alternating values. |
dashes | Recieves the alternating values. |
fase | Recieves the offset in the alternating values to start with at the beginning of the vector. |
Definition at line 180 of file AOI_Vector.cpp.
bool AOI_Object_Vector::GetEOFill | ( | ) | const |
Returns if the fill should be done with EOFill or winding fill filling rule
Definition at line 81 of file AOI_Vector.cpp.
AOI_StylePtr AOI_Object_Vector::GetFillStyle | ( | ) | const |
Returns the fill style of an object.
Definition at line 36 of file AOI_Vector.cpp.
|
inherited |
Returns the intent with which this object should be rendered.
Possible values:
Definition at line 161 of file AOI_Object.cpp.
float AOI_Object_Vector::GetJoin | ( | ) | const |
Returns the value used at joins beyond which to switch to bevel.
Definition at line 126 of file AOI_Vector.cpp.
|
inherited |
Returns the bounds of the object, taking into account the clipping.
r | Receives the bounds |
Definition at line 63 of file AOI_Object.cpp.
|
inherited |
Returns the next object.
The objects are stored in a tree with parents and children. The next object is the next kid of a parent. If there are no more kids, NULL will be returned.
Definition at line 104 of file AOI_Object.cpp.
|
inherited |
Returns the bounds of the object. Beziers are handled completely, unlike in GetBounds.
r | Receives the bounds |
Definition at line 52 of file AOI_Object.cpp.
AOI_StylePtr AOI_Object_Vector::GetStrokeStyle | ( | ) | const |
Returns the stroke style of an object.
Definition at line 48 of file AOI_Vector.cpp.
float AOI_Object_Vector::GetStrokeWidth | ( | ) | const |
Returns the stroke width.
Definition at line 103 of file AOI_Vector.cpp.
|
inherited |
Returns the type of the object.
Possible types are:
Definition at line 90 of file AOI_Object.cpp.
|
inherited |
Maps the object.
mapping | The mapping which should be applied to this object. |
Definition at line 192 of file AOI_Object.cpp.
|
staticinherited |
Deletes the object, after removing it from the object tree.
Definition at line 181 of file AOI_Object.cpp.
|
inherited |
Scale the objects while retaining properties like line-width and dash distance proportional to the supplied scale.
mapping | The mapping which should be applied to this object. The mapping should only contain a scale to avoid unwanted side effect. |
Definition at line 206 of file AOI_Object.cpp.
|
inherited |
Sets the object its blendmode.
blendmode | The blend mode to use. |
Definition at line 217 of file AOI_Object.cpp.
|
inherited |
Sets the object its blendmode.
blendValue | The amount of opacity. For normal blending this is the opacity value. 0 is transparent and 1 is opaque. |
Definition at line 230 of file AOI_Object.cpp.
void AOI_Object_Vector::SetCaps | ( | uint8_t | caps | ) |
Set the caps type of the nodes of the path.
caps | kButtCap, kRoundCap, kSquareCap are valid values. |
Definition at line 164 of file AOI_Vector.cpp.
void AOI_Object_Vector::SetDash | ( | int32_t | nrOffDashes, |
float * | dashes, | ||
float | fase ) |
Sets the dash definition of this path.
nrOffDashes | Set the number of alternating values; the size of the dashes array. |
dashes | Array containing the alternating values. |
fase | The offset in the alternating values to start with at the beginning of the vector. |
Definition at line 198 of file AOI_Vector.cpp.
void AOI_Object_Vector::SetEOFill | ( | bool | eoFill | ) |
Set the EOFill or window fill.
eoFill | True will set EOFill and false will set winding fill. |
Definition at line 92 of file AOI_Vector.cpp.
void AOI_Object_Vector::SetFillStyle | ( | AOI_StylePtr | style | ) |
Replaces the fill style.
style | The fill style to use. |
Definition at line 60 of file AOI_Vector.cpp.
|
inherited |
Sets the object its blendmode.
intent | Intent to be used to convert to the device when a ICC based colorspace is assigned to this object. |
Definition at line 242 of file AOI_Object.cpp.
void AOI_Object_Vector::SetJoin | ( | float | join | ) |
Set the join type of the nodes of the path.
join | < 0 : round join, 0 : bevel join, > 0 mitter join (x line width) |
Definition at line 137 of file AOI_Vector.cpp.
void AOI_Object_Vector::SetStrokeStyle | ( | AOI_StylePtr | style | ) |
Replaces the stroke style.
style | The stroke style to use. |
Definition at line 71 of file AOI_Vector.cpp.
void AOI_Object_Vector::SetStrokeWidth | ( | float | width | ) |
Set the width of the stroke in units.
width | Width of the stroke. 0 represents a hairline. Negative values are not allowed. |
Definition at line 115 of file AOI_Vector.cpp.
|
inherited |
Returns if this object is visible.
Definition at line 171 of file AOI_Object.cpp.