diff options
author | joye <joye> | 2014-03-31 16:51:31 (GMT) |
---|---|---|
committer | joye <joye> | 2014-03-31 16:51:31 (GMT) |
commit | 2b352a1f1f026545d71f7ce05613e19aa65b8a05 (patch) | |
tree | 862beb0b8b30cf61ee5ed2c5dc4274e6b49954e9 /bltGrMarkerBitmap.h | |
parent | 01082bf9a06f36853fe3b0b4a2f1709adcc3c9c9 (diff) | |
download | blt-2b352a1f1f026545d71f7ce05613e19aa65b8a05.zip blt-2b352a1f1f026545d71f7ce05613e19aa65b8a05.tar.gz blt-2b352a1f1f026545d71f7ce05613e19aa65b8a05.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'bltGrMarkerBitmap.h')
-rw-r--r-- | bltGrMarkerBitmap.h | 71 |
1 files changed, 35 insertions, 36 deletions
diff --git a/bltGrMarkerBitmap.h b/bltGrMarkerBitmap.h index 1242e27..8451070 100644 --- a/bltGrMarkerBitmap.h +++ b/bltGrMarkerBitmap.h @@ -31,49 +31,48 @@ #define __bltgrmarkerbitmap_h__ #include "bltGrMarker.h" -#define MAX_OUTLINE_POINTS 12 namespace Blt { -typedef struct { - const char** tags; - Coords* worldPts; - const char* elemName; - Axis2d axes; - int hide; - int state; - int drawUnder; - int xOffset; - int yOffset; + typedef struct { + const char** tags; + Coords* worldPts; + const char* elemName; + Axis2d axes; + int hide; + int state; + int drawUnder; + int xOffset; + int yOffset; - Tk_Anchor anchor; - Pixmap bitmap; - XColor* fillColor; - XColor* outlineColor; -} BitmapMarkerOptions; + Tk_Anchor anchor; + Pixmap bitmap; + XColor* fillColor; + XColor* outlineColor; + } BitmapMarkerOptions; -class BitmapMarker : public Marker { - public: - Point2d anchorPt_; - GC gc_; - GC fillGC_; - Point2d outline_[MAX_OUTLINE_POINTS]; - int nOutlinePts_; - int width_; - int height_; + class BitmapMarker : public Marker { + public: + Point2d anchorPt_; + GC gc_; + GC fillGC_; + Point2d outline_[12]; + int nOutlinePts_; + int width_; + int height_; - private: - int configure(); - void draw(Drawable); - void map(); - int pointIn(Point2d*); - int regionIn(Region2d*, int); - void postscript(Blt_Ps); + private: + int configure(); + void draw(Drawable); + void map(); + int pointIn(Point2d*); + int regionIn(Region2d*, int); + void postscript(Blt_Ps); - public: - BitmapMarker(Graph*, const char*, Tcl_HashEntry*); - virtual ~BitmapMarker(); -}; + public: + BitmapMarker(Graph*, const char*, Tcl_HashEntry*); + virtual ~BitmapMarker(); + }; }; |