Public Member Functions | |
| HRESULT | SetParameters (IRsNode *pViewNode, IRsObjectList *pObjectList) |
| HRESULT | GetSnappedAngle ([in] RtRotationSnappingParameters *pSnapParams,[out] RtVector2f *pfAngle,[out] RtFloat *pfWeight) |
| HRESULT | ApplyRotationConstraints ([in] RtRotationSnappingParameters *pSnapParams) |
| HRESULT | NotifyAngleSnapActive () |
| HRESULT | NotifyAngleSnapperDeactivate () |
| HRESULT | HideAngleSnapMarkers () |
| HRESULT IRdRotationSnapTool::SetParameters | ( | IRsNode * | pViewNode, | |
| IRsObjectList * | pObjectList | |||
| ) |
Snapping manager calls SetParameters of the tool, to setup it's internal structures and update pObjectList if needed. This is called once during initialization of snapping manager session.
| pViewNode | defines node of current view | |
| pObjectList | defines list of objects. Tool can modify this list as it needs |
| HRESULT IRdRotationSnapTool::GetSnappedAngle | ( | [in] RtRotationSnappingParameters * | pSnapParams, | |
| [out] RtVector2f * | pfAngle, | |||
| [out] RtFloat * | pfWeight | |||
| ) |
Compute snapped Angle.
| pSnapParams | Snapping parameters | |
| pfAngle | Snapped angle. | |
| pfWeight | Weight of snapped angle. This weight is used to choose best snapping angle from all active tools. |
| HRESULT IRdRotationSnapTool::ApplyRotationConstraints | ( | [in] RtRotationSnappingParameters * | pSnapParams | ) |
Compute constraints. Tool should update angle steps inside pSnapperInfo structure of RtRotationSnappingParameters structure to constraint movement.
| pSnapParams | Snapping parameters |
| HRESULT IRdRotationSnapTool::NotifyAngleSnapActive | ( | ) |
Notification called by snap manager after tool becomes active (it's snapping angle was chosen as the best)
| HRESULT IRdRotationSnapTool::NotifyAngleSnapperDeactivate | ( | ) |
Notification called by snap manager when snapping session is terminated.
| HRESULT IRdRotationSnapTool::HideAngleSnapMarkers | ( | ) |
Force tool to hide snapping markers.
1.5.5