forked from organicmaps/organicmaps
[drape] compile fix
This commit is contained in:
parent
533352665c
commit
6eed77d416
7 changed files with 21 additions and 19 deletions
|
@ -4,16 +4,18 @@
|
|||
|
||||
namespace df
|
||||
{
|
||||
m2::PointD InterpolatePoint(m2::PointD const & startPt, m2::PointD const & endPt, double t);
|
||||
|
||||
class InerpolateAngle
|
||||
{
|
||||
public:
|
||||
InerpolateAngle(double startAngle, double endAngle);
|
||||
double Interpolate(double t);
|
||||
m2::PointD InterpolatePoint(m2::PointD const & startPt, m2::PointD const & endPt, double t);
|
||||
|
||||
class InerpolateAngle
|
||||
{
|
||||
public:
|
||||
InerpolateAngle(double startAngle, double endAngle);
|
||||
double Interpolate(double t);
|
||||
|
||||
private:
|
||||
double m_startAngle;
|
||||
double m_delta;
|
||||
};
|
||||
|
||||
private:
|
||||
double m_startAngle;
|
||||
double m_delta;
|
||||
};
|
||||
} // namespace df
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace df
|
|||
{
|
||||
|
||||
ModelViewAngleAnimation::ModelViewAngleAnimation(double startAngle, double endAngle, double duration)
|
||||
: BaseViewportAnimation(duration)
|
||||
: BaseModeViewAnimation(duration)
|
||||
, m_angle(startAngle, endAngle)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#include "drape_frontend/animation/base_viewport_animation.hpp"
|
||||
#include "drape_frontend/animation/base_modelview_animation.hpp"
|
||||
#include "drape_frontend/animation/interpolations.hpp"
|
||||
|
||||
namespace df
|
||||
{
|
||||
|
||||
class ModelViewAngleAnimation : public BaseViewportAnimation
|
||||
class ModelViewAngleAnimation : public BaseModeViewAnimation
|
||||
{
|
||||
public:
|
||||
ModelViewAngleAnimation(double startAngle, double endAngle, double duration);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "drape_frontend/animation/base_viewport_animation.hpp"
|
||||
#include "drape_frontend/animation/base_modelview_animation.hpp"
|
||||
|
||||
namespace df
|
||||
{
|
||||
|
|
|
@ -10,6 +10,7 @@ DEFINES += DRAW_INFO
|
|||
|
||||
SOURCES += \
|
||||
animation/base_interpolator.cpp \
|
||||
animation/modelview_angle_animation.cpp \
|
||||
animation/modelview_center_animation.cpp \
|
||||
animation/interpolation_holder.cpp \
|
||||
animation/interpolations.cpp \
|
||||
|
@ -50,10 +51,10 @@ SOURCES += \
|
|||
visual_params.cpp \
|
||||
my_position.cpp \
|
||||
user_event_stream.cpp \
|
||||
animation/modelview_angle_animation.cpp
|
||||
|
||||
HEADERS += \
|
||||
animation/base_viewport_animation.hpp \
|
||||
animation/base_modelview_animation.hpp \
|
||||
animation/modelview_angle_animation.hpp \
|
||||
animation/modelview_center_animation.hpp \
|
||||
animation/interpolation_holder.hpp \
|
||||
animation/interpolations.hpp \
|
||||
|
@ -100,4 +101,3 @@ HEADERS += \
|
|||
visual_params.hpp \
|
||||
my_position.hpp \
|
||||
user_event_stream.hpp \
|
||||
animation/modelview_angle_animation.hpp
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "drape_frontend/navigator.hpp"
|
||||
#include "drape_frontend/animation/base_viewport_animation.hpp"
|
||||
#include "drape_frontend/animation/base_modelview_animation.hpp"
|
||||
|
||||
#include "geometry/point2d.hpp"
|
||||
#include "geometry/rect2d.hpp"
|
||||
|
@ -210,7 +210,7 @@ private:
|
|||
array<Touch, 2> m_touches;
|
||||
size_t m_validTouchesCount;
|
||||
|
||||
unique_ptr<BaseViewportAnimation> m_animation;
|
||||
unique_ptr<BaseModeViewAnimation> m_animation;
|
||||
|
||||
#ifdef DEBUG
|
||||
TTestBridge m_testFn;
|
||||
|
|
Loading…
Add table
Reference in a new issue