Mobile API Reference  MicroStrategy 2019
GridPiePlot.h
Go to the documentation of this file.
1 //
2 // GridPiePlot.h
3 // IPhoneChart
4 //
5 // Created by dong shi on 3/26/12.
6 // Copyright (c) 2012 __MyCompanyName__. All rights reserved.
7 //
8 
9 #ifndef IPhoneChart_GridPiePlot_h
10 #define IPhoneChart_GridPiePlot_h
11 
12 #include "GridBasePlot.h"
13 #include "PiePlotRenderer.h"
14 #include "CategoryAxis.h"
15 
16 namespace MsiChart
17 {
18  class GridPiePlot : public GridBasePlot {
19  public:
20 
22 
23  GridPiePlot(const TripleId& irTripleId, GraphObjectManager* ipManager, const Rect2D& irPlotArea);
24  virtual ~GridPiePlot();
25 
26  //Re-implemention the virtual functions inherited from GraphObjectManager
27  virtual GraphObject::Ptr OnPointDetection(const Point2D& irCursor) const;
28  virtual void OnRectangleSelection(const Rect2D& irRect, std::vector<GraphObject::Ptr>& iorSelectedObjects) const;
29  virtual void Draw();
30  virtual void GenerateImageMap(ImageMap& iorImageMap);
31  virtual void GenerateMapAndList();
32  virtual void GetOptions(Int32 iSeriesId, Int32 iPropertyId, CComVariant* opValue) const;
33  virtual Int32 GetMaxElementRadius();
34 
35  virtual void AssignSeries(const std::vector<Int32>& irSeries);
36 
37  virtual bool GetGMPiePositon(Point2D& orCood, double iXInput, double iYInput, Int32 iXSubIndex, Int32 iYSubIndex, Int32 iXSectionCount, Int32 iYSectionCount,Int32 iRadius);
38 
39  //override from GraphObjectManager
40  virtual GraphObject::Ptr OnPointDetectionEx(const Point2D& irCursor,
41  const std::vector<Int32>& irObjectIds, Int32& iorDistance, Int32 iRadius,
42  std::vector<GraphObject::Ptr>& iorGraphObjectsAround, EnumGraphObjectUsage iUsage = GOU_NORMAL_HIGHLIGHT);
43 
44  private:
45  PiePlotRenderer::Ptr mPiePlotRenderer;
46  std::vector<Int32> mSeriesSet;
47  double mMaxPieRadius;
48  };
49 }
50 
51 #endif
Definition: GridBasePlot.h:16
GridPiePlot(const TripleId &irTripleId, GraphObjectManager *ipManager, const Rect2D &irPlotArea)
virtual void AssignSeries(const std::vector< Int32 > &irSeries)
virtual GraphObject::Ptr OnPointDetectionEx(const Point2D &irCursor, const std::vector< Int32 > &irObjectIds, Int32 &iorDistance, Int32 iRadius, std::vector< GraphObject::Ptr > &iorGraphObjectsAround, EnumGraphObjectUsage iUsage=GOU_NORMAL_HIGHLIGHT)
virtual void OnRectangleSelection(const Rect2D &irRect, std::vector< GraphObject::Ptr > &iorSelectedObjects) const
virtual void Draw()
virtual void GetOptions(Int32 iSeriesId, Int32 iPropertyId, CComVariant *opValue) const
virtual bool GetGMPiePositon(Point2D &orCood, double iXInput, double iYInput, Int32 iXSubIndex, Int32 iYSubIndex, Int32 iXSectionCount, Int32 iYSectionCount, Int32 iRadius)
EnumGraphObjectUsage
Definition: GraphObject.h:28
MSynch::SmartPtr< GridPiePlot > Ptr
Definition: GridPiePlot.h:21
#define Int32
Definition: BasicTypes.h:20
Definition: SmartPtr.h:38
virtual void GenerateImageMap(ImageMap &iorImageMap)
virtual Int32 GetMaxElementRadius()
Definition: ABLPlot.h:21
std::vector< AreaRec * > ImageMap
Definition: ImageMap.h:99
Definition: Msi_ccomvariant.h:24
Definition: GridPiePlot.h:18
Definition: GraphObjectManager.h:37
Use four Int32 values to represent a 2D rectangle.
Definition: Rect2D.h:25
virtual void GenerateMapAndList()
Definition: GraphObject.h:30
Definition: Common.h:397
virtual GraphObject::Ptr OnPointDetection(const Point2D &irCursor) const