00001
00002
00003
00004 char *mask_cpp = "$Id: sxy_mask.cpp,v 1.2 2003/01/03 21:33:02 clinio Exp $";
00005
00006
00007
00008 #include <float.h>
00009 #include <xy.h>
00010
00011 #include "sxy_mask.h"
00012
00013
00014
00015 const int SXYMask::PLUS_MARK = XYMask::plus;
00016 const int SXYMask::STAR_MARK = XYMask::star;
00017 const int SXYMask::CIRCLE_MARK = XYMask::circle;
00018 const int SXYMask::X_MARK = XYMask::x;
00019 const int SXYMask::DIAMOND_MARK = XYMask::diamond;
00020 const int SXYMask::HOLLOW_CIRCLE_MARK = XYMask::hollow_circle;
00021 const int SXYMask::HOLLOW_BOX_MARK = XYMask::hollow_box;
00022 const int SXYMask::HOLLOW_DIAMOND_MARK = XYMask::hollow_diamond;
00023
00024 const int SXYMask::CONTINOUS_LINE = XYObject::continuous;
00025 const int SXYMask::DASHED_LINE = XYObject::dashed;
00026 const int SXYMask::DOTTED_LINE = XYObject::dotted;
00027 const int SXYMask::DASH_DOT_LINE = XYObject::dashDot;
00028 const int SXYMask::DASH_DOT_DOT_LINE = XYObject::dashDotDot;
00029
00030
00031
00032
00033
00034 XYCartesianMask* SXYMask::createMarkMask(int type, int size) {
00035 return new XYCartesianMarkMask( NULL, NULL, NULL,
00036 0xff000000, size, (XYMask::MarkStyle)type, xytrue );
00037 }
00038
00039
00040
00041 XYCartesianMask* SXYMask::createLineMask(int type, int width) {
00042 return new XYCartesianLineMask( NULL, NULL, NULL,
00043 0xff000000, width, (XYObject::LineStyle)type, xytrue );
00044 }
00045
00046
00047
00048 XYCartesianMask* SXYMask::createStepMask(int type, int width) {
00049 return new XYCartesianStepMask( NULL, NULL, NULL,
00050 0xff000000, width, (XYObject::LineStyle)type, xytrue );
00051 }
00052