Aurelon Open API 8.1.1
Loading...
Searching...
No Matches
AOI_Vector.cpp
1#include "./AOI_Vector.h"
2#include "../GVector.h"
3
4using namespace aur;
5using namespace aur::PDF;
6
24{
25 // hard cast
26 ContourPtr c = (ContourPtr)outContour;
27 VectorPtr(this)->GetContour( c );
28}
29
37{
38 // hard cast
39 return (AOI_StylePtr)VectorPtr(this)->GetFillStyle();
40}
41
49{
50 // hard cast
51 return (AOI_StylePtr)VectorPtr(this)->GetStrokeStyle();
52}
53
61{
62 VectorPtr(this)->SetFillStyle( StylePtr(style) );
63}
64
72{
73 VectorPtr(this)->SetStrokeStyle( StylePtr(style) );
74}
75
82{
83 return VectorPtr(this)->GetEOFill();
84}
85
93{
94 VectorPtr(this)->SetEOFill( eoFill );
95}
96
104{
105 return VectorPtr(this)->GetStrokeWidth();
106}
107
116{
117 VectorPtr(this)->SetStrokeWidth( width );
118}
119
127{
128 return VectorPtr(this)->GetJoin();
129}
130
138{
139 VectorPtr(this)->SetJoin( join );
140}
141
154{
155 return VectorPtr(this)->GetCaps();
156}
157
164void AOI_Object_Vector::SetCaps( uint8_t caps )
165{
166 VectorPtr(this)->SetCaps( caps );
167}
168
180void AOI_Object_Vector::GetDash( int32_t* nrOffDashes, float** dashes, float* fase ) const
181{
182 std::vector<float> dashArr;
183 VectorPtr(this)->GetDash( dashArr, *fase );
184 *nrOffDashes = int32_t( dashArr.size() );
185 if( dashes )
186 for( int32_t i = 0; i != *nrOffDashes; ++i )
187 (*dashes)[i] = dashArr[i];
188}
189
198void AOI_Object_Vector::SetDash( int32_t nrOffDashes, float* dashes, float fase )
199{
200 std::vector<float> dashArr;
201 for( int32_t i = 0; i != nrOffDashes; ++i )
202 dashArr.push_back( dashes[i] );
203 VectorPtr(this)->SetDash( dashArr, fase );
204}
205
Container for path(s)
Definition AOI_Contour.h:11
void SetDash(int32_t, float *, float)
float GetJoin() const
uint8_t GetCaps() const
AOI_StylePtr GetFillStyle() const
void SetFillStyle(AOI_StylePtr)
void SetJoin(float)
void GetDash(int32_t *, float **, float *) const
void SetStrokeWidth(float)
void SetCaps(uint8_t)
void SetEOFill(bool)
bool GetEOFill() const
void SetStrokeStyle(AOI_StylePtr)
float GetStrokeWidth() const
AOI_StylePtr GetStrokeStyle() const
void GetContour(AOI_ContourPtr) const
Base class for painting styles.
Definition AOI_Style.h:48