Skip to content

Object transform limits#388

Merged
oitel merged 7 commits intomasterfrom
object_transform_limits
Aug 23, 2022
Merged

Object transform limits#388
oitel merged 7 commits intomasterfrom
object_transform_limits

Conversation

@oitel
Copy link
Contributor

@oitel oitel commented Aug 22, 2022

No description provided.

@oitel oitel requested a review from Grantim August 22, 2022 17:58
void setStartModifyCallback( std::function<void()> callback ) { startModifyCallback_ = callback; }
// Sets callback that will be called when widget gets addictive transform
void setAddXfCallback( std::function<void( const AffineXf3f& )> callback ) { addXfCallback_ = callback;}
void setApplyXfCallback( std::function<bool( const AffineXf3f& )> callback ) { applyXfCallback_ = callback; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add comment about this callback

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

Comment on lines +102 to +103
// The transform will not be applied to the widget if it was rejected by the callback
void setApproveXfCallback( std::function<bool( const AffineXf3f& )> callback ) { approveXfCallback_ = callback; }
Copy link
Contributor

@Grantim Grantim Aug 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// callback should return true to approve xf and false to reject it
// if callback is not set, all xf are approved

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@oitel oitel merged commit a331cb9 into master Aug 23, 2022
@oitel oitel deleted the object_transform_limits branch August 23, 2022 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants