Aurelon Open API 8.1.1
Loading...
Searching...
No Matches
AOI_Object_Vector Class Reference

Base class for all vector graphics. More...

Inheritance diagram for AOI_Object_Vector:
AOI_Object AOI_Object_Ellipse AOI_Object_Multigon AOI_Object_Path AOI_Object_Rectangle AOI_Object_Text AOI_Object_PathText

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_ObjectGetNext () 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 *)
 

Detailed Description

Base class for all vector graphics.

Definition at line 11 of file AOI_Vector.h.

Member Function Documentation

◆ GetBlendMode()

AOI_BlendMode AOI_Object::GetBlendMode ( ) const
inherited

Returns the BlendMode of the object.

Possible BlendModes are:

  • eBMNormal
  • eBMMultiply
  • eBMScreen
  • eBMOverlay
  • eBMSoftLight
  • eBMHardLight
  • eBMColorDodge
  • eBMColorBurn
  • eBMDarken
  • eBMLighten
  • eBMDifference
  • eBMExclusion
  • eBMHue
  • eBMSaturation
  • eBMColor
  • eBMLuminosity
Returns
The BlendMode.

Definition at line 132 of file AOI_Object.cpp.

◆ GetBlendValue()

float AOI_Object::GetBlendValue ( ) const
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.

Returns
The BlendValue.
See also
GetBlendMode

Definition at line 145 of file AOI_Object.cpp.

◆ GetBounds()

void AOI_Object::GetBounds ( AOI_Rectangle & r) const
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

Parameters
rReceives the bounds
See also
GetPrecisionBounds GetMaskedBounds

Definition at line 40 of file AOI_Object.cpp.

◆ GetCaps()

uint8_t AOI_Object_Vector::GetCaps ( ) const

Return the caps type of the nodes of the path.

Possible values:

  • kButtCap
  • kRoundCap
  • kSquareCap
Returns
The type of caps used.
See also
SetCaps

Definition at line 153 of file AOI_Vector.cpp.

◆ GetContour()

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.

Parameters
outContourReceives the contour. Should be a pointer to an existing empty AOI_Contour.
See also
AOI_Contour

Definition at line 23 of file AOI_Vector.cpp.

◆ GetDash()

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.

Parameters
nrOffDashesRecieves the number of alternating values.
dashesRecieves the alternating values.
faseRecieves the offset in the alternating values to start with at the beginning of the vector.
See also
SetDash

Definition at line 180 of file AOI_Vector.cpp.

◆ GetEOFill()

bool AOI_Object_Vector::GetEOFill ( ) const

Returns if the fill should be done with EOFill or winding fill filling rule

Returns
True if the filling rule is EOFill ( Even/Odd )
See also
SetEOFill

Definition at line 81 of file AOI_Vector.cpp.

◆ GetFillStyle()

AOI_StylePtr AOI_Object_Vector::GetFillStyle ( ) const

Returns the fill style of an object.

Returns
The fill style.
See also
AOI_Style

Definition at line 36 of file AOI_Vector.cpp.

◆ GetIntent()

AOI_Intent AOI_Object::GetIntent ( ) const
inherited

Returns the intent with which this object should be rendered.

Possible values:

  • ePerceptual
  • eRelativeColorimetric
  • eSaturation
  • eAbsoluteColorimetric
Returns
The intent.

Definition at line 161 of file AOI_Object.cpp.

◆ GetJoin()

float AOI_Object_Vector::GetJoin ( ) const

Returns the value used at joins beyond which to switch to bevel.

Returns
Join value.
See also
SetJoin

Definition at line 126 of file AOI_Vector.cpp.

◆ GetMaskedBounds()

void AOI_Object::GetMaskedBounds ( AOI_Rectangle & r) const
inherited

Returns the bounds of the object, taking into account the clipping.

Parameters
rReceives the bounds
See also
GetBounds GetPrecisionBounds

Definition at line 63 of file AOI_Object.cpp.

◆ GetNext()

AOI_ObjectPtr AOI_Object::GetNext ( ) const
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.

Returns
The next object.

Definition at line 104 of file AOI_Object.cpp.

◆ GetPrecisionBounds()

void AOI_Object::GetPrecisionBounds ( AOI_Rectangle & r) const
inherited

Returns the bounds of the object. Beziers are handled completely, unlike in GetBounds.

Parameters
rReceives the bounds
See also
GetBounds GetMaskedBounds

Definition at line 52 of file AOI_Object.cpp.

◆ GetStrokeStyle()

AOI_StylePtr AOI_Object_Vector::GetStrokeStyle ( ) const

Returns the stroke style of an object.

Returns
The fill style.
See also
AOI_Style

Definition at line 48 of file AOI_Vector.cpp.

◆ GetStrokeWidth()

float AOI_Object_Vector::GetStrokeWidth ( ) const

Returns the stroke width.

Returns
The stroke width.
See also
SetStrokeWidth

Definition at line 103 of file AOI_Vector.cpp.

◆ GetType()

uint32_t AOI_Object::GetType ( ) const
inherited

Returns the type of the object.

Possible types are:

  • gDimensionType
  • gGroupType
  • gRasterType
  • gSymbolType
  • gMultiSymbolType
  • gEllipseType
  • gPathType
  • gMultigonType
  • gRectangleType
  • gTextType
  • gPathTextType
  • gGroupType
  • gPlaceHolderType
Returns
The type of the object.
See also
AOI_Object_Bitmap AOI_Object_Dimension AOI_Object_Ellipse AOI_Object_Group AOI_Object_Layer AOI_Object_Multigon AOI_Object_MultiSymbol AOI_Object_Path AOI_Object_PathText AOI_Object_PlaceHolder AOI_Object_Raster AOI_Object_Rectangle AOI_Object_Symbol AOI_Object_Text AOI_Object_Vector

Definition at line 90 of file AOI_Object.cpp.

◆ Map()

void AOI_Object::Map ( const AOI_Mapping & mapping)
inherited

Maps the object.

Parameters
mappingThe mapping which should be applied to this object.
See also
AOI_Mapping, Scale

Definition at line 192 of file AOI_Object.cpp.

◆ operator delete()

void AOI_Object::operator delete ( void * p)
staticinherited

Deletes the object, after removing it from the object tree.

Definition at line 181 of file AOI_Object.cpp.

◆ Scale()

void AOI_Object::Scale ( const AOI_Mapping & mapping)
inherited

Scale the objects while retaining properties like line-width and dash distance proportional to the supplied scale.

Parameters
mappingThe mapping which should be applied to this object. The mapping should only contain a scale to avoid unwanted side effect.
See also
AOI_Mapping, Map

Definition at line 206 of file AOI_Object.cpp.

◆ SetBlendMode()

void AOI_Object::SetBlendMode ( AOI_BlendMode blendmode)
inherited

Sets the object its blendmode.

Parameters
blendmodeThe blend mode to use.
See also
AOI_BlendMode GetBlendMode

Definition at line 217 of file AOI_Object.cpp.

◆ SetBlendValue()

void AOI_Object::SetBlendValue ( float blendValue)
inherited

Sets the object its blendmode.

Parameters
blendValueThe amount of opacity. For normal blending this is the opacity value. 0 is transparent and 1 is opaque.
See also
GetBlendValue

Definition at line 230 of file AOI_Object.cpp.

◆ SetCaps()

void AOI_Object_Vector::SetCaps ( uint8_t caps)

Set the caps type of the nodes of the path.

Parameters
capskButtCap, kRoundCap, kSquareCap are valid values.
See also
GetCaps

Definition at line 164 of file AOI_Vector.cpp.

◆ SetDash()

void AOI_Object_Vector::SetDash ( int32_t nrOffDashes,
float * dashes,
float fase )

Sets the dash definition of this path.

Parameters
nrOffDashesSet the number of alternating values; the size of the dashes array.
dashesArray containing the alternating values.
faseThe offset in the alternating values to start with at the beginning of the vector.
See also
GetDash

Definition at line 198 of file AOI_Vector.cpp.

◆ SetEOFill()

void AOI_Object_Vector::SetEOFill ( bool eoFill)

Set the EOFill or window fill.

Parameters
eoFillTrue will set EOFill and false will set winding fill.
See also
GetEOFill

Definition at line 92 of file AOI_Vector.cpp.

◆ SetFillStyle()

void AOI_Object_Vector::SetFillStyle ( AOI_StylePtr style)

Replaces the fill style.

Parameters
styleThe fill style to use.
See also
AOI_Style

Definition at line 60 of file AOI_Vector.cpp.

◆ SetIntent()

void AOI_Object::SetIntent ( AOI_Intent intent)
inherited

Sets the object its blendmode.

Parameters
intentIntent to be used to convert to the device when a ICC based colorspace is assigned to this object.
See also
GetIntent

Definition at line 242 of file AOI_Object.cpp.

◆ SetJoin()

void AOI_Object_Vector::SetJoin ( float join)

Set the join type of the nodes of the path.

Parameters
join< 0 : round join, 0 : bevel join, > 0 mitter join (x line width)
See also
GetJoin

Definition at line 137 of file AOI_Vector.cpp.

◆ SetStrokeStyle()

void AOI_Object_Vector::SetStrokeStyle ( AOI_StylePtr style)

Replaces the stroke style.

Parameters
styleThe stroke style to use.
See also
AOI_Style

Definition at line 71 of file AOI_Vector.cpp.

◆ SetStrokeWidth()

void AOI_Object_Vector::SetStrokeWidth ( float width)

Set the width of the stroke in units.

Parameters
widthWidth of the stroke. 0 represents a hairline. Negative values are not allowed.
See also
GetStrokeWidth

Definition at line 115 of file AOI_Vector.cpp.

◆ Visible()

bool AOI_Object::Visible ( ) const
inherited

Returns if this object is visible.

Returns
The visibility.

Definition at line 171 of file AOI_Object.cpp.


The documentation for this class was generated from the following files: