REntityPickEvent
Class in Core Module
Header: #include <src/core/REntityPickEvent.h>
Inherits: RInputEvent
Description
Section titled “Description”Entity pick event.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”REntityPickEvent(RObject::Id entityId, const RVector &position, RGraphicsScene &s, RGraphicsView &v) |
|
| RObject::Id | getEntityId() const |
| Qt::KeyboardModifiers | getModifiers() const |
| bool | isValid() const |
| void | setModifiers(Qt::KeyboardModifiers m) |
Private Attributes
Section titled “Private Attributes”| RObject::Id | entityId |
| Qt::KeyboardModifiers | mods |
Member Documentation
Section titled “Member Documentation”REntityPickEvent
Section titled “REntityPickEvent”REntityPickEvent::REntityPickEvent(RObject::Id entityId, const RVector &position, RGraphicsScene &s, RGraphicsView &v)Parameters:
entityId: ID of picked entity.pos: Absolute coordinate.
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
getEntityId
Section titled “getEntityId”RObject::Id REntityPickEvent::getEntityId() constinline const
Returns: The ID of the picked entity or RObject::INVALID_ID.
getModifiers
Section titled “getModifiers”Qt::KeyboardModifiers REntityPickEvent::getModifiers() constinline const
isValid
Section titled “isValid”bool REntityPickEvent::isValid() constinline const
Returns: true If the entity ID of the event is valid.
setModifiers
Section titled “setModifiers”void REntityPickEvent::setModifiers(Qt::KeyboardModifiers m)inline
entityId
Section titled “entityId”RObject::Id REntityPickEvent::entityIdprivate
Qt::KeyboardModifiers REntityPickEvent::modsprivate