Logo Search packages:      
Sourcecode: ktechlab version File versions

PositionInfo MechanicsItem::absolutePosition (  )  const

Returns the absolute position on the canvas

Definition at line 98 of file mechanicsitem.cpp.

References absolutePosition().

Referenced by absolutePosition(), deinitPainter(), initPainter(), maxInnerRectangle(), reparented(), and updateCanvasPoints().

      MechanicsItem *parentMechItem = dynamic_cast<MechanicsItem*>((Item*)(p_parentItem));
      if (parentMechItem)
            return parentMechItem->absolutePosition() + m_relativePosition;
      return m_relativePosition;

Generated by  Doxygen 1.6.0   Back to index