|
I want to update the color of selected entity in current graphic view. so I firstly set the new color for that entity then I need redraw that.
There are two APIs for that
1 void RS_GraphicView::drawEntity(RS_Entity* /*e*/, double& /*patternOffset*/)
2 void RS_GraphicView::drawEntity(RS_Painter *painter, RS_Entity* e)
For API 1, it is just a fake API which actually redraw all entity rather than redraw the specific entity e in parameters. It's not suitable for me because I found the performance is very bad!!!
For API 2, I don't know how to define a RS_Painter . for the current graphic view,is there any existed painter already created ?
|