Logo Search packages:      
Sourcecode: ktechlab version File versions

void MechanicsItem::deinitPainter ( QPainter &  p  )  [protected]

*Must* be called after calling initPainter, if initPainter was called

Definition at line 341 of file mechanicsitem.cpp.

References absolutePosition(), PositionInfo::angle(), PositionInfo::x(), and PositionInfo::y().

       PositionInfo absPos = absolutePosition();
       p.translate( absPos.x(), absPos.y() );
       p.rotate( -absPos.angle() * DPR);
       p.translate( -absPos.x(), -absPos.y() );

Generated by  Doxygen 1.6.0   Back to index