Mobile API Reference  MicroStrategy 2019
StraightLineObject.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : StraightLineObject.h
3 // AUTHOR : Liang Liu
4 // CREATION : 2008-7-29
5 // Copyright (C) MicroStrategy Incorporated 2008
6 // All Rights Reserved
7 //==============================================================================================
8 #ifndef MsiChart_StraightLineObject_h
9 #define MsiChart_StraightLineObject_h
10 
11 #include "PDCHeader/PDCvector"
12 #include "GraphObject.h"
13 
14 namespace MsiChart
15 {
22  {
23  public:
25 
34  StraightLineObject(const TripleId& irTripleId, GraphObjectManager* ipManager,
35  const Point2D irStartPoint, const Point2D irEndPoint, GraphCollectionObject* ipParentObject = NULL,
36  bool iIsOnlyForToolTip = false);
37  virtual ~StraightLineObject();
38 
39  virtual void SetProgress(double iProgress);
40  // Public methods
44  //void SetStartPoint(const Point2D& irStartPoint);
48  //void GetStartPoint(Point2D& orStartPoint) const;
52  //void SetEndPoint(const Point2D& irEndPoint);
56  //void GetEndPoint(Point2D& orEndPoint) const;
57 
58  // Inherit from GraphObject
59  virtual void Draw() const;
60  virtual bool PointInObject(const Point2D& irPoint);
61  virtual bool ObjectInRectangle(const Rect2D& irRect);
62  virtual void DrawOutLine();
63  virtual Point2D GetDataPoint();
64 
65  protected:
66  // Inherit from GraphObject
67  virtual void GetClockwisePolygon(std::vector<Point2D>& orPolygon) const;
68 
69  private:
70  Point2D mDeviceStartPoint;
71  Point2D mDeviceEndPoint;
72 
73  Point2D mFinalStartPoint;
74  Point2D mFinalEndPoint;
75 
76  bool mIsOnlyForToolTip;
77  };
78 
79 }
80 #endif
virtual void Draw() const
virtual void GetClockwisePolygon(std::vector< Point2D > &orPolygon) const
Definition: GraphCollectionObject.h:19
MSynch::SmartPtr< StraightLineObject > Ptr
Definition: StraightLineObject.h:24
StraightLineObject(const TripleId &irTripleId, GraphObjectManager *ipManager, const Point2D irStartPoint, const Point2D irEndPoint, GraphCollectionObject *ipParentObject=NULL, bool iIsOnlyForToolTip=false)
virtual bool ObjectInRectangle(const Rect2D &irRect)
virtual Point2D GetDataPoint()
Definition: GraphObject.h:38
Definition: ABLPlot.h:21
virtual void SetProgress(double iProgress)
virtual bool PointInObject(const Point2D &irPoint)
Definition: StraightLineObject.h:21
#define NULL
Definition: Null.h:10
Definition: GraphObjectManager.h:37
Use four Int32 values to represent a 2D rectangle.
Definition: Rect2D.h:25
Definition: Common.h:397