Mobile API Reference  MicroStrategy 2019
NaivePlotManager.h
Go to the documentation of this file.
1 //====================================================================
2 // Filename: NaivePlotManager.h
3 // AUTHOR : Xin Liu
4 // CREATION : 12/18/08
5 // Copyright (C) MicroStrategy, Inc. 2008
6 //==============================================================================================
7 
8 #ifndef MSICHART_NAIVEPLOTMANAGER_H
9 #define MSICHART_NAIVEPLOTMANAGER_H
10 
11 #include "PlotManager.h"
12 #include "Plot.h"
13 
14 namespace MsiChart
15 {
16 
21  {
22  public:
24 
25  NaivePlotManager(const TripleId& irTripleId, GraphObjectManager* ipManager, const Rect2D& irPlotArea);
26  virtual ~NaivePlotManager();
27 
28  //Re-implemention the virtual functions inherited from GraphObjectManager
29  virtual GraphObject::Ptr OnPointDetection(const Point2D& irCursor) const;
30  virtual void OnRectangleSelection(const Rect2D& irRect, std::vector<GraphObject::Ptr>& iorSelectedObjects) const;
31  virtual void Draw();
32  virtual void GenerateView();
33  virtual void GenerateImageMap(ImageMap& iorImageMap);
34  virtual void GenerateMapAndList();
35  virtual Int32 GetDataAreaSplitX() const;
36  virtual bool GetToolTipData(Int32 iSeriesID, Int32 iGroupID, double& orValue, double& orPercentValue, Int32 iOffset = 0);
37 
38  private:
39 
40  Int32 hGetGraphMajorType(Int32 iGraphType);
41 
42  std::vector<Plot::Ptr> mPlots;
43 
44 
45  };
46 }
47 
48 #endif
virtual bool GetToolTipData(Int32 iSeriesID, Int32 iGroupID, double &orValue, double &orPercentValue, Int32 iOffset=0)
virtual GraphObject::Ptr OnPointDetection(const Point2D &irCursor) const
virtual void OnRectangleSelection(const Rect2D &irRect, std::vector< GraphObject::Ptr > &iorSelectedObjects) const
virtual Int32 GetDataAreaSplitX() const
NaivePlotManager(const TripleId &irTripleId, GraphObjectManager *ipManager, const Rect2D &irPlotArea)
MSynch::SmartPtr< NaivePlotManager > Ptr
Definition: NaivePlotManager.h:23
virtual void GenerateView()
#define Int32
Definition: BasicTypes.h:20
virtual void GenerateMapAndList()
Definition: SmartPtr.h:38
Definition: ABLPlot.h:21
std::vector< AreaRec * > ImageMap
Definition: ImageMap.h:99
virtual void GenerateImageMap(ImageMap &iorImageMap)
Definition: NaivePlotManager.h:20
Definition: GraphObjectManager.h:37
Use four Int32 values to represent a 2D rectangle.
Definition: Rect2D.h:25
Definition: PlotManager.h:43
Definition: Common.h:397