Graphic Rotation

3022
2
06-02-2016 02:59 AM
AlainMarguerite
New Contributor

The method MarkerSymbol::setAngle(const float &angle) allow a rotation. The rotation center of this rotation is the center of the symbol targeted.

I need to perform something like this :

setAngle(EsriRuntimeQt::Pointconst p_RotationCenter, float &angle)

Is there a way to change this offset ?Or maybe there is a simple way to compute the translation/rotation with your framework ?

Thanks

0 Kudos
2 Replies
LucasDanzinger
Esri Frequent Contributor

Can you first set the x/y offset, then set the rotation? Does that give you the result you are looking for?

0 Kudos
AlainMarguerite
New Contributor

Yes this is exactly what I am looking for. You just give an another definition of doing that :setAngle(EsriRuntimeQt::Pointconst p_RotationCenter, float &angle) . I didn't find a way to do that without produce complex math formulas. Maybe it could be a good new feature ?

0 Kudos