2 * Copyright (C) 2013 HERE Global B.V. All rights reserved.
3 * This software, including documentation, is protected by copyright controlled by
4 * HERE Global B.V. (“Software”). All rights are reserved. Copying, including reproducing,
5 * storing, adapting or translating, any or all of this material requires the prior
6 * written consent of HERE Global B.V. You may use this
7 * Software in accordance with the terms and conditions defined in the
8 * HERE Location Platform Services Terms and Conditions, available at
9 * http://developer.here.com/terms-conditions-base
11 * As an additional permission to the above, you may distribute Software,
12 * in object code format as part of an Application, according to, and subject to, terms and
13 * conditions defined in the Tizen Software Development kit (“SDK”) License Agreement.
14 * You may distribute such object code format Application under terms of your choice,
15 * provided that the header and source files of the Software have not been modified.
18 #ifndef GEOPROJECTIONNODE_P_H
19 #define GEOPROJECTIONNODE_P_H
24 #include "common/HereMaps_global.h"
26 #ifndef TIZEN_MIGRATION
27 #include <FGraphics.h>
28 #include <FMediaImage.h>
31 #include "internal/DoublePoint.h"
32 #include "internal/DoublePoint3.h"
33 #ifdef TIZEN_MIGRATION
34 // chanywa #include "base/BaseByteBuffer.h"
37 #include "maps/GeoTile.h"
39 HERE_MAPS_BEGIN_NAMESPACE
41 class GeoProjectionNode
45 GeoProjectionNode(const DrawableBitmapPtr& image);
48 std::vector<DoublePoint3> m_points;
49 std::vector<DoublePoint3> m_subPoints;
51 DrawableBitmapPtr m_image;
52 DrawableBitmapPtr m_layer;
75 enum{ NUM_OF_CHILDREN = 4 };
76 GeoProjectionNode* m_children[NUM_OF_CHILDREN];
78 void setImage(const DrawableBitmapPtr& image);
79 void applyImage(const DrawableBitmapPtr& image,const float opacity);
81 bool requestImage(){ return m_requestImage; }
82 bool peekImage(){ return m_peekImage; }
83 bool split(){ return m_split; }
84 bool postdrawing(){ return m_postdrawing && m_image != 0; }
85 bool drawing(){ return m_drawing && m_image != 0; }
86 bool predrawing(){ return m_predrawing && m_image != 0; }
89 HERE_MAPS_NO_COPY_NO_ASSIGN(GeoProjectionNode);
92 HERE_MAPS_END_NAMESPACE
94 #endif // QGEOPROJECTED_P_H