9 #ifndef IPhoneChart_GridMap_h 10 #define IPhoneChart_GridMap_h 36 typedef std::vector<std::vector<std::vector<OccupyIndex> > >
HMDLMatrix;
37 typedef std::vector<std::vector<std::vector<Rect2D> > >
RectMatrix;
38 typedef std::vector<std::vector<std::vector<Circle> > >
CircleMatrix;
89 bool hIsOccupiedByHostMarker(
const Rect2D& irHostMarker,
int irX,
int irY);
90 bool hIsOccupiedByHostMarker(
const Point2D irCenter,
const Int32 irRadius,
int irX,
int irY);
95 bool hTreatTiltOccupation(
const Rect2D& irOccupy,
bool iIsAdd =
true,
bool iIs45 =
true);
98 bool hPointToIndex(
const Point2D& irPoint,
Int32& orX,
Int32& orY,
bool iIsUseFloorValue =
true);
105 const Point2D& irXYOffset,
const Point2D irRectCover,
bool& iorAlreadyHasOnePlacement,
bool iIsYFirst =
true);
bool RestoreMatrix(const Rect2D &irOccupy)
bool IsFitPddingWithBorder(const Rect2D &irOccupy, const Rect2D &irFrame)
bool IsAccomdatable(const Rect2D &irHostMarker, const Rect2D &irOccupy, Point2D &orPosition, EnumDSSGraphFontRotation iRotation=DssGraphFontRotateNormal)
Represents a polygon area.
Definition: PolygonObject.h:17
RectMatrix mRectMatrix
Definition: GridMap.h:51
Int32 mXCount
Definition: GridMap.h:45
bool IsAccomdatableConsiderAccurateDistanceInThePadding(const Point2D &irHostCenter, const Int32 irHostRadius, const Rect2D &irOccupy)
Int32 mYUnit
Definition: GridMap.h:44
CircleMatrix mCircleMatrix
Definition: GridMap.h:52
Point2D mCenter
Definition: GridMap.h:30
std::vector< std::vector< Int32 > > GridMatrix
Definition: GridMap.h:35
Definition: DSSIPhoneEnums.h:1706
Delegates Poly lines.
Definition: PolyLineObject.h:17
#define Int32
Definition: BasicTypes.h:20
Int32 mMetric
Definition: GridMap.h:42
std::vector< PolyLineObject::Ptr > ToDraw(GraphObjectManager *ipManager)
GridMatrix mMatrix
Definition: GridMap.h:49
EnumDSSGraphFontRotation
Definition: DSSIPhoneEnums.h:1704
bool UpdataMatrix(const Point2D irCenter, const Int32 irRadius, bool iIsAdd)
std::pair< Int32, Int32 > OccupyIndex
Definition: GridMap.h:34
bool UpdataMatrixOccupy(bool iIsDataLabel, const Rect2D &irOccupy, Int32 iDataLabelIndex)
bool UpdateMatrix(const Rect2D &irOccupy, bool iIsAdd=true, EnumDSSGraphFontRotation iRotation=DssGraphFontRotateNormal)
bool mIsValid
Definition: GridMap.h:41
Int32 mYCount
Definition: GridMap.h:46
std::vector< std::vector< std::vector< Rect2D > > > RectMatrix
Definition: GridMap.h:37
Int32 mRadius
Definition: GridMap.h:31
bool IsAccomdatableWithOverlapNumber(Int32 iOverlapNumber, const Int32 &iMarkerShape, const Point2D &irMarkerCenter, const Int32 &irMarkerSize)
EnumDssGraphMatrixDataLabelPosition
Definition: Common.h:131
std::vector< std::vector< std::vector< Circle > > > CircleMatrix
Definition: GridMap.h:38
std::vector< std::vector< std::vector< OccupyIndex > > > HMDLMatrix
Definition: GridMap.h:36
bool UpdataMatrixOccupyCircleObject(const Rect2D &irOccupy, const Point2D &irCenter, const Int32 irRadius)
Circle()
Definition: GridMap.h:24
HMDLMatrix mHMDLMatrix
Definition: GridMap.h:50
Definition: GraphObjectManager.h:37
bool IsTwoRectFitPadding(const Rect2D &irDLRect, const Rect2D &irRect, const Int32 &irPadding)
Circle(Point2D iCenter, Int32 iRadius)
Definition: GridMap.h:27
Point2D mOrigin
Definition: GridMap.h:47
Use four Int32 values to represent a 2D rectangle.
Definition: Rect2D.h:25
bool IsTwoObjectFitPadding(const Point2D &irCenter, const Int32 &irRadius, const Rect2D &irDLRect, const Int32 &irPadding)
bool UpdataMatrixOccupyObject(const Rect2D &irOccupy, const Rect2D &irOccupiedObject)
Int32 mXUnit
Definition: GridMap.h:43