class::sgfx::VectorMap

class sgfx::VectorMap
  : public api::SgfxInfoObject

This class is a wrapper for a sg_vector_map_t data structure.

Members

VectorMap()
VectorMap(

const Bitmap & bitmap,
s16 rotation
)

void calculate_for_bitmap(

const Bitmap & bitmap,
s16 rotation
)

void calculate_for_region(

const sg_region_t & region,
s16 rotation
)

const sg_vector_map_t & map() const
sg_vector_map_t map()
operator const sg_vector_map_t &() const
VectorMap & operator<<(

const Region & a
)

VectorMap & operator<<(

const s16 & a
)

const sg_region_t & region() const
sg_region_t region()
void set_region(

const Region & region
)

void set_rotation(

s16 value
)

const sg_vector_map_t & vector_map() const
sg_vector_map_t vector_map()

Details

VectorMap()

Constructs an empty vector map.


VectorMap(

const Bitmap & bitmap,
s16 rotation
)

Constructs a vector map that is centered in bitmap.

Parameters

  • bitmap Bitmap used to center map

  • rotation Rotation mapping

This uses method calculate_for_bitmap().


void calculate_for_bitmap(

const Bitmap & bitmap,
s16 rotation
)

Sets the map to be centered and fully occupy bitmap.

Parameters

  • bitmap The bitmap to occupy

  • rotation The rotation to be applied

This will size the map so that a full scale vector will completely fill the specified bitmap. This means that if the vector is rotated, parts of the vector may not fit in the bitmap.


void calculate_for_region(

const sg_region_t & region,
s16 rotation
)


const sg_vector_map_t & map() const

sg_vector_map_t map()

operator const sg_vector_map_t &() const

VectorMap & operator<<(

const Region & a
)


VectorMap & operator<<(

const s16 & a
)


const sg_region_t & region() const

sg_region_t region()

void set_region(

const Region & region
)


void set_rotation(

s16 value
)


const sg_vector_map_t & vector_map() const

sg_vector_map_t vector_map()

X

Thanks for Coming!

Subscribe to news and updates