Mobile API Reference  MicroStrategy 2019
StockPlotManager.h
Go to the documentation of this file.
1 //====================================================================
2 // Filename: Kernel/SourceCode/ChartEngine/PrivateSource/StockPlotManager.h
3 // AUTHOR : Xin Liu
4 // CREATION : 04/15/09
5 // Copyright (C) MicroStrategy, Inc. 2009
6 //==============================================================================================
7 
8 #ifndef MSICHART_STOCKPLOTMANAGER_H
9 #define MSICHART_STOCKPLOTMANAGER_H
10 
11 #include "CategoryPlotManager.h"
12 #include "StockPlot.h"
13 #include "ValueAxis.h"
14 #include "CategoryAxis.h"
15 
16 namespace MsiChart
17 {
18 
23  {
24  public:
26 
27  StockPlotManager(const TripleId& irTripleId, GraphObjectManager* ipManager, const Rect2D& irPlotArea);
28  virtual ~StockPlotManager();
29 
30  //Re-implemention the virtual functions inherited from GraphObjectManager
31  virtual GraphObject::Ptr OnPointDetection(const Point2D& irCursor) const;
32  virtual void OnRectangleSelection(const Rect2D& irRect, std::vector<GraphObject::Ptr>& iorSelectedObjects) const;
33  virtual void Draw();
34  virtual void GenerateView();
35  virtual void GenerateImageMap(ImageMap& iorImageMap);
36  virtual void GenerateMapAndList();
37  // virtual void GetOptions(Int32 iSeriesId, Int32 iPropertyId, VARIANT* opValue) const;
38  virtual bool GetToolTipData(Int32 iSeriesID, Int32 iGroupID, double& orValue, double& orPercentValue, Int32 iOffset = 0);
39 
40  protected:
45  // virtual void LoadProperties();
46 
47  private:
53  void hReserveAreaValueAxis(const Rect2D& irDataArea, Rect2D& orDataArea);
54 
60  void hSetDataAreaValueAxis(const Rect2D& irChartArea, Int32 iAxisId);
61 
62  void hLoadProperties();
63 
64  void hGenerateAxisLines();
65 
66  void hGenerateInterlacedGrids(const std::vector<Rect2D>& irChartAreas);
67 
68  void hGenerateGridLines(const std::vector<Rect2D>& irChartAreas);
69 
70  //private data members
71  std::vector<ValueAxis::Ptr> mVecY3Axis;
72  std::vector<ValueAxis::Ptr> mVecY4Axis;
73  bool mShowMetric1;
74  bool mShowMetric2;
75  bool mShowMetric3;
76 
77  };
78 }
79 
80 #endif
virtual void GenerateMapAndList()
#define Int32
Definition: BasicTypes.h:20
Definition: StockPlotManager.h:22
virtual GraphObject::Ptr OnPointDetection(const Point2D &irCursor) const
virtual void OnRectangleSelection(const Rect2D &irRect, std::vector< GraphObject::Ptr > &iorSelectedObjects) const
Definition: SmartPtr.h:38
virtual bool GetToolTipData(Int32 iSeriesID, Int32 iGroupID, double &orValue, double &orPercentValue, Int32 iOffset=0)
Definition: ABLPlot.h:21
std::vector< AreaRec * > ImageMap
Definition: ImageMap.h:99
Definition: CategoryPlotManager.h:23
virtual void GenerateImageMap(ImageMap &iorImageMap)
MSynch::SmartPtr< StockPlotManager > Ptr
Definition: StockPlotManager.h:25
StockPlotManager(const TripleId &irTripleId, GraphObjectManager *ipManager, const Rect2D &irPlotArea)
virtual void GenerateView()
Definition: GraphObjectManager.h:37
Use four Int32 values to represent a 2D rectangle.
Definition: Rect2D.h:25
Definition: Common.h:397