mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
41
drape_frontend/screen_animations.hpp
Normal file
41
drape_frontend/screen_animations.hpp
Normal file
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
|
||||
#include "drape_frontend/animation/animation.hpp"
|
||||
#include "drape_frontend/screen_operations.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace df
|
||||
{
|
||||
|
||||
extern std::string const kPrettyMoveAnim;
|
||||
extern std::string const kPrettyFollowAnim;
|
||||
extern std::string const kParallelFollowAnim;
|
||||
extern std::string const kParallelLinearAnim;
|
||||
|
||||
class SequenceAnimation;
|
||||
class MapLinearAnimation;
|
||||
class MapFollowAnimation;
|
||||
class MapScaleAnimation;
|
||||
|
||||
drape_ptr<SequenceAnimation> GetPrettyMoveAnimation(ScreenBase const & startScreen, ScreenBase const & endScreen);
|
||||
drape_ptr<SequenceAnimation> GetPrettyMoveAnimation(ScreenBase const & screen,
|
||||
m2::AnyRectD const & startRect, m2::AnyRectD const & endRect);
|
||||
drape_ptr<SequenceAnimation> GetPrettyMoveAnimation(ScreenBase const & screen, double startScale, double endScale,
|
||||
m2::PointD const & startPt, m2::PointD const & endPt);
|
||||
|
||||
drape_ptr<SequenceAnimation> GetPrettyFollowAnimation(ScreenBase const & startScreen, m2::PointD const & userPos,
|
||||
double targetScale, double targetAngle, m2::PointD const & endPixelPos);
|
||||
|
||||
drape_ptr<MapLinearAnimation> GetRectAnimation(ScreenBase const & startScreen, ScreenBase const & endScreen);
|
||||
drape_ptr<MapLinearAnimation> GetSetRectAnimation(ScreenBase const & screen,
|
||||
m2::AnyRectD const & startRect, m2::AnyRectD const & endRect);
|
||||
|
||||
drape_ptr<MapFollowAnimation> GetFollowAnimation(ScreenBase const & startScreen, m2::PointD const & userPos,
|
||||
double targetScale, double targetAngle, m2::PointD const & endPixelPos, bool isAutoZoom);
|
||||
|
||||
drape_ptr<MapScaleAnimation> GetScaleAnimation(ScreenBase const & startScreen, m2::PointD pxScaleCenter,
|
||||
m2::PointD glbScaleCenter, double factor);
|
||||
|
||||
} // namespace df
|
||||
|
||||
Reference in New Issue
Block a user