Mobile API Reference  MicroStrategy 2019
GraphCollectionObject.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : GraphCollectionObject.h
3 // AUTHOR : Liang Liu
4 // CREATION : 2008-05-22
5 // Copyright (C) MicroStrategy Incorporated 2008
6 // All Rights Reserved
7 //==============================================================================================
8 #ifndef MsiChart_GraphCollectionObject_h
9 #define MsiChart_GraphCollectionObject_h
10 
11 #include "PDCHeader/PDCvector"
12 #include "GraphObject.h"
13 
14 namespace MsiChart
15 {
20  {
21  public:
23 
29  GraphCollectionObject(const TripleId& irTripleId, GraphObjectManager* ipManager, EnumCollectionType iCollectionType);
30  virtual ~GraphCollectionObject();
31 
37  void AddGraphObject(GraphObject::Ptr iGraphObjectPtr, bool iShareFormat = true);
38 
41  void ClearCollection();
42 
46  void SetFormatFill(FormatFill::Ptr iFormatFillPtr);
47 
51  void SetFormatFont(FormatFont::Ptr iFormatFontPtr);
52 
61 
62  //---------Override functions-------------------------------------
63  virtual void Draw() const;
64  virtual void GenerateImageMap(ImageMap& iorImageMap);
65  virtual void GetOptions(Int32 iPropertyId, CComVariant* opValue) const;
66  virtual void DrawOutLine();
67  virtual bool PointInObject(const Point2D& irPoint);
68  virtual bool ObjectInRectangle(const Rect2D& irRect);
69  virtual void GetClockwisePolygon(std::vector<Point2D>& orPolygon) const;
70 
74  unsigned Int32 GetCollectionSize();
80 
86 
87  protected:
89  std::vector<GraphObject::Ptr> mGraphObjectCollection;
96  };
97 
98 
100  {
101  return mFormatFillPtr;
102  }
103 
105  {
106  return mFormatFontPtr;
107  }
108 
110  {
111  return mCollectionType;
112  }
113 }
114 #endif
FormatFont::Ptr GetFormatFont() const
Definition: GraphCollectionObject.h:104
GraphCollectionObject(const TripleId &irTripleId, GraphObjectManager *ipManager, EnumCollectionType iCollectionType)
void AddGraphObject(GraphObject::Ptr iGraphObjectPtr, bool iShareFormat=true)
Definition: GraphCollectionObject.h:19
virtual void GetClockwisePolygon(std::vector< Point2D > &orPolygon) const
#define Int32
Definition: BasicTypes.h:20
GraphObject::Ptr GetObjectByIndex(Int32 iIndex)
virtual void GenerateImageMap(ImageMap &iorImageMap)
Definition: GraphObject.h:38
FormatFill::Ptr mFormatFillPtr
A pointer to FormatFill object.
Definition: GraphCollectionObject.h:91
Definition: ABLPlot.h:21
virtual void Draw() const
EnumCollectionType mCollectionType
The type of current GraphCollectionObject.
Definition: GraphCollectionObject.h:95
std::vector< AreaRec * > ImageMap
Definition: ImageMap.h:99
MSynch::SmartPtr< GraphCollectionObject > Ptr
Definition: GraphCollectionObject.h:22
void SetFormatFont(FormatFont::Ptr iFormatFontPtr)
virtual bool ObjectInRectangle(const Rect2D &irRect)
EnumCollectionType
Definition: ChartContext.h:64
Definition: Msi_ccomvariant.h:24
EnumCollectionType GetCollectionType() const
Definition: GraphCollectionObject.h:109
FormatFont::Ptr mFormatFontPtr
A pointer to FormatFont object.
Definition: GraphCollectionObject.h:93
void SetFormatFill(FormatFill::Ptr iFormatFillPtr)
virtual void GetOptions(Int32 iPropertyId, CComVariant *opValue) const
Definition: GraphObjectManager.h:37
FormatFill::Ptr GetFormatFill() const
Definition: GraphCollectionObject.h:99
Use four Int32 values to represent a 2D rectangle.
Definition: Rect2D.h:25
virtual bool PointInObject(const Point2D &irPoint)
std::vector< GraphObject::Ptr > mGraphObjectCollection
A collection of GraphObjects which share the same format properties.
Definition: GraphCollectionObject.h:89
Definition: Common.h:397
unsigned Int32 GetCollectionSize()