Aurelon Open API 8.1.1
Loading...
Searching...
No Matches
AOI_Symbol.cpp
1#include "./AOI_Symbol.h"
2#include "../GSymbol.h"
3#include "../GMultiSymbol.h"
4
5using namespace aur;
6using namespace aur::PDF;
7
25AOI_Object* AOI_Object_Symbol::GetObj() const // strange??? should be GetObject
26{
27 return (AOI_ObjectPtr)SymbolPtr(this)->GetObject();
28}
29
36{
37 AOI_Mapping map;
38 // hard cast
39 PDF::SymbolPtr(this)->GetMapping( *(Mapping*)&map );
40 return map;
41}
42
51{
52 PDF::SolidPtr col = PDF::SymbolPtr(this)->GetColor();
53 return reinterpret_cast<AOI_Style_ColorPtr>( col );
54}
55
64{
65 const auto& poss = MultiSymbolPtr(this)->GetPositions();
66 if( ptArray )
67 ::memcpy( ptArray, poss.data(), poss.size() * sizeof(PDF::Point) );
68 return uint32_t( poss.size() );
69}
3x3 matrix
Definition AOI_Types.h:113
uint32_t GetPositions(AOI_Point *)
AOI_Mapping GetMapping() const
AOI_ObjectPtr GetObj() const
AOI_Style_ColorPtr GetColor() const
Base class for all graphic objects.
Definition AOI_Object.h:13
Coordinate.
Definition AOI_Types.h:137
Color fill.
Definition AOI_Style.h:56
void GetColor(AOI_Color &) const