|
SHAPER
9.15.0
|
Message sent when feature or attribute has been moved. More...

Public Member Functions | |
| MODELAPI_EXPORT | ModelAPI_ObjectMovedMessage (const void *theSender=0) |
| MODELAPI_EXPORT void | setMovedObject (const ObjectPtr &theMovedObject) |
| Set object which is being moved (if the message already contains attribute it will be cleared) More... | |
| MODELAPI_EXPORT void | setMovedAttribute (const AttributePtr &theMovedAttribute, const int thePointIndex=-1) |
| Set attribute which is being moved (if the message already contains object it will be cleared) More... | |
| ObjectPtr | movedObject () const |
| Return moved object. More... | |
| AttributePtr | movedAttribute () const |
| Return moved attribute. More... | |
| int | movedPointIndex () const |
| Return index of the moved point. More... | |
| MODELAPI_EXPORT void | setOriginalPosition (double theX, double theY) |
| Set original mouse position. More... | |
| MODELAPI_EXPORT void | setOriginalPosition (const std::shared_ptr< GeomAPI_Pnt2d > &thePoint) |
| Set original mouse position. More... | |
| const std::shared_ptr< GeomAPI_Pnt2d > & | originalPosition () const |
| Return original mouse position. More... | |
| MODELAPI_EXPORT void | setCurrentPosition (double theX, double theY) |
| Set current mouse position. More... | |
| MODELAPI_EXPORT void | setCurrentPosition (const std::shared_ptr< GeomAPI_Pnt2d > &thePoint) |
| Set current mouse position. More... | |
| const std::shared_ptr< GeomAPI_Pnt2d > & | currentPosition () const |
| Return current mouse position. More... | |
| const Events_ID & | eventID () const |
| Returns identifier of the message. More... | |
| void * | sender () const |
| Returns sender of the message or NULL if it is anonymous message. More... | |
Message sent when feature or attribute has been moved.
Stores the moving object/attribute, original and new positions of mouse.
| void ModelAPI_ObjectMovedMessage::setMovedObject | ( | const ObjectPtr & | theMovedObject | ) |
Set object which is being moved (if the message already contains attribute it will be cleared)
| void ModelAPI_ObjectMovedMessage::setMovedAttribute | ( | const AttributePtr & | theMovedAttribute, |
| const int | thePointIndex = -1 |
||
| ) |
Set attribute which is being moved (if the message already contains object it will be cleared)
| [in] | theMovedAttribute | moved attribute |
| [in] | thePointIndex | index of the point if the moved attribute is an array of points |
|
inline |
Return moved object.
|
inline |
Return moved attribute.
|
inline |
Return index of the moved point.
| void ModelAPI_ObjectMovedMessage::setOriginalPosition | ( | double | theX, |
| double | theY | ||
| ) |
Set original mouse position.
| void ModelAPI_ObjectMovedMessage::setOriginalPosition | ( | const std::shared_ptr< GeomAPI_Pnt2d > & | thePoint | ) |
Set original mouse position.
|
inline |
Return original mouse position.
| void ModelAPI_ObjectMovedMessage::setCurrentPosition | ( | double | theX, |
| double | theY | ||
| ) |
Set current mouse position.
| void ModelAPI_ObjectMovedMessage::setCurrentPosition | ( | const std::shared_ptr< GeomAPI_Pnt2d > & | thePoint | ) |
Set current mouse position.
|
inline |
Return current mouse position.
|
inlineinherited |
Returns identifier of the message.
|
inlineinherited |
Returns sender of the message or NULL if it is anonymous message.