Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/ShearWarpProjectiveTransform.cpp @ 700:059e1fd05fd6 refactor-viewport-controller
Introduced the ViewportController that sits between the application and the
Scene2D to handle the trackers and measuring tools. This is a work in progress.
The Scene2D is no longer an observable. Message sending is managed by the
ViewportController.
Move some refs to shared and weak to prevent lifetime issues.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sun, 19 May 2019 16:26:17 +0200 |
parents | 9a474e90e832 |
children | f45fca2ebd10 |
comparison
equal
deleted
inserted
replaced
699:5c551f078c18 | 700:059e1fd05fd6 |
---|---|
541 { | 541 { |
542 TargetTraits::SetZero(*p); | 542 TargetTraits::SetZero(*p); |
543 } | 543 } |
544 else | 544 else |
545 { | 545 { |
546 *p = *qacc / static_cast<float>(*qcount); | 546 *p = static_cast<TargetTraits::PixelType> |
547 (*qacc / static_cast<float>(*qcount)); | |
547 | 548 |
548 if (*p > maxValue) | 549 if (*p > maxValue) |
549 { | 550 { |
550 maxValue = *p; | 551 maxValue = *p; |
551 } | 552 } |