Changeset 2896 for trunk/src/Plotter2.h


Ignore:
Timestamp:
02/20/14 21:40:16 (10 years ago)
Author:
WataruKawasaki
Message:

New Development: Yes

JIRA Issue: Yes CAS-6216/6217

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: added new methods in sd.plotter2

Test Programs:

Put in Release Notes:

Module(s): sd

Description: arrows and annotation texts become available in sd.plotter2.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Plotter2.h

    r2895 r2896  
    1010
    1111namespace asap {
     12
     13class Plotter2AnnotationInfo {
     14public:
     15    Plotter2AnnotationInfo();
     16    ~Plotter2AnnotationInfo();
     17
     18    std::string text;
     19    float posx;
     20    float posy;
     21    float angle;
     22    float fjust;
     23    float size;
     24    int color;
     25    int bgcolor;
     26};
     27
     28class Plotter2ArrowInfo {
     29public:
     30    Plotter2ArrowInfo();
     31    ~Plotter2ArrowInfo();
     32
     33    float xhead;
     34    float xtail;
     35    float yhead;
     36    float ytail;
     37
     38    int color;
     39    int width;
     40    int lineStyle;
     41    float headSize;
     42    int headFillStyle;
     43    float headAngle;
     44    float headVent;
     45};
    1246
    1347class Plotter2RectInfo {
     
    101135    // rectangles
    102136    std::vector<Plotter2RectInfo> vRect;
     137
     138    // arrows
     139    std::vector<Plotter2ArrowInfo> vArro;
     140
     141    //annotations
     142    std::vector<Plotter2AnnotationInfo> vAnno;
    103143
    104144    // x-label
     
    198238    void hidePoint(const int inVpid, const int inDataid);
    199239    void setMaskX(const float xmin, const float xmax, const int color, const int fill, const int width, const float hsep, const int inVpid);
     240    void setArrow(const float xtail, const float xhead, const float ytail, const float yhead, const int color, const int width, const int lineStyle, const float headSize, const int headFillStyle, const float headAngle, const float headVent, const int inVpid, const int inArrowid);
     241    void setAnnotation(const std::string& label, const float posx, const float posy, const float angle, const float fjust, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid, const int inAnnid);
    200242    void setLabelX(const std::string& label, const float posx, const float posy, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid);
    201243    void setLabelY(const std::string& label, const float posx, const float posy, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid);
    202244    void setTitle(const std::string& label, const float posx, const float posy, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid);
    203245    void setViewportBackgroundColor(const int bgcolor, const int inVpid);
    204     //void setAnnotation(const std::string& label, const float posx, const float posy, const float angle, const float fjust, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid);
    205246    void plot();
    206247private:
     
    215256    void open();
    216257    void close();
     258    void resetAttributes(const Plotter2ViewportInfo& vi);
    217259};
    218260
Note: See TracChangeset for help on using the changeset viewer.