35 qreal
angle()
const {
return m_angle; }
85 void applyFlipTransform();
90 bool m_flippedX =
false;
91 bool m_flippedY =
false;
bool isFlippedY() const
Returns true if this element is mirrored along the Y axis (vertical flip).
void applyLoadedOrientation()
void setFlippedXRaw(bool flipped)
Sets the horizontal flip flag without re-applying the transform. Load-time only.
ElementOrientation(GraphicElement *owner)
Constructs the orientation state bound to its owning owner element.
void orientPort(Port *port)
Orients port for the current rotation + flip state.
void setFlippedX(bool flipped)
Sets the horizontal mirror state and updates the item transform.
void setFlippedYRaw(bool flipped)
Sets the vertical flip flag without re-applying the transform. Load-time only.
void setFlippedY(bool flipped)
Sets the vertical mirror state and updates the item transform.
void setRotation(qreal angle)
Rotates to angle degrees (normalised to [0, 360)) and updates port positions.
qreal angle() const
Returns the current rotation angle in degrees.
bool isFlippedX() const
Returns true if this element is mirrored along the X axis (horizontal flip).
void setAngleRaw(qreal angle)
Sets the angle without re-applying the transform. Load-time only.
Abstract base class for all graphical circuit elements in wiRedPanda.
Abstract base class for circuit element ports (connection endpoints).