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

Coons patch shading. More...

Inheritance diagram for AOI_Style_CoonePatch:
AOI_Style_Shading AOI_Style

Public Member Functions

uint32_t GetPatchCount () const
 
const AOI_Patch & GetPatch (uint32_t index) const
 
const AOI_Side & GetSide (uint32_t index) const
 
const AOI_Beziers & GetBezier (uint32_t index) const
 
const AOI_SE & GetPoint (uint32_t index) const
 
void GetBounds (AOI_Rectangle &) const
 
AOI_ColorSpace * GetColorSpace () const
 
const AOI_MappingGetMapping () const
 
uint32_t GetType () const
 
void Dispose ()
 

Detailed Description

Coons patch shading.

AOI_Style_CoonePatch consists of a number of AOI_Patch elements. Each AOI_Patch has an array of 4 side incices, which indicate the 4 AOI_Side objects which make up the patch.

When the side index is a positive number, the side is constructed like this:

  • Get the AOI_Beziers object.
  • Take it's startPointIndex to get the AOI_SE element containing the position and channel colors of the first point.
  • Add all AOI_ContourElement in the AOI_Beziers object.
  • Take the endPointIndex from the AOI_Beziers object to get the AOI_SE element containing the position and channel colors of the last point.

When the side index is a negative number, the side is constructed like this:

  • use the absolute value of the side index while taking these steps:
  • Get the AOI_Beziers object.
  • Take it's endPointIndex to get the AOI_SE element containing the position and channel colors of the first point.
  • Add all AOI_ContourElement in the AOI_Beziers object in reversed order.
  • Take the startPointIndex from the AOI_Beziers object to get the AOI_SE element containing the position and channel colors of the last point.

Definition at line 116 of file AOI_Style.h.

Member Function Documentation

◆ Dispose()

void AOI_Style::Dispose ( )
inherited

Decreases the ownercount of this style. If the ownercount equals zero after this decrease, the style is not used anymore and will be deleted.

Definition at line 136 of file AOI_Style.cpp.

◆ GetBezier()

const AOI_Style_CoonePatch::AOI_Beziers & AOI_Style_CoonePatch::GetBezier ( uint32_t index) const

Returns the AOI_Beziers with the specified index.

Returns
The requested AOI_Beziers.

Definition at line 411 of file AOI_Style.cpp.

◆ GetBounds()

void AOI_Style_Shading::GetBounds ( AOI_Rectangle & bounds) const
inherited

Returns the bounds of the AOI_Style_Shading.

Parameters
boundsReceives the bounds.

Definition at line 196 of file AOI_Style.cpp.

◆ GetColorSpace()

AOI_ColorSpace * AOI_Style_Shading::GetColorSpace ( ) const
inherited

Returns the AOI_ColorSpace of the shading.

Returns
The AOI_ColorSpace.

Definition at line 206 of file AOI_Style.cpp.

◆ GetMapping()

const AOI_Mapping & AOI_Style_Shading::GetMapping ( ) const
inherited

Returns the mapping of the shading.

Returns
The mapping.

Definition at line 216 of file AOI_Style.cpp.

◆ GetPatch()

const AOI_Style_CoonePatch::AOI_Patch & AOI_Style_CoonePatch::GetPatch ( uint32_t index) const

Returns the AOI_Patch with the specified index.

Returns
The AOI_Patch.

Definition at line 391 of file AOI_Style.cpp.

◆ GetPatchCount()

uint32_t AOI_Style_CoonePatch::GetPatchCount ( ) const

Returns the number of patches the coonepatch consists of.

Returns
nr patches.

Definition at line 381 of file AOI_Style.cpp.

◆ GetPoint()

const AOI_Style_CoonePatch::AOI_SE & AOI_Style_CoonePatch::GetPoint ( uint32_t index) const

Returns the AOI_SE with the specified index.

Returns
The requested AOI_SE.

Definition at line 421 of file AOI_Style.cpp.

◆ GetSide()

const AOI_Style_CoonePatch::AOI_Side & AOI_Style_CoonePatch::GetSide ( uint32_t index) const

Returns the AOI_Side with the specified index.

Returns
The requested AOI_Side.

Definition at line 401 of file AOI_Style.cpp.

◆ GetType()

uint32_t AOI_Style::GetType ( ) const
inherited

Returns the type of the style.

Possible values are:

  • AOI_Style_Color::Type
  • AOI_Style_Pattern::Type
  • AOI_Style_Axial::Type
  • AOI_Style_Radial::Type
  • AOI_Style_FunctionShading::Type
  • AOI_Style_CoonePatch::Type
Returns
Type of the style
See also
AOI_Style_Axial AOI_Style_Color AOI_Style_CoonePatch AOI_Style_FunctionShading AOI_Style_Pattern AOI_Style_Radial AOI_Style_Shading

Definition at line 101 of file AOI_Style.cpp.


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