KHTML
SVGPathSeg.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef SVGPathSeg_h
00024 #define SVGPathSeg_h
00025
00026 #if ENABLE(SVG)
00027 #include "PlatformString.h"
00028 #include "SVGNames.h"
00029
00030 #include <wtf/RefCounted.h>
00031 #include <wtf/PassRefPtr.h>
00032
00033 namespace WebCore {
00034 class SVGPathElement;
00035 class SVGStyledElement;
00036
00037 class SVGPathSeg : public RefCounted<SVGPathSeg> {
00038 public:
00039 virtual ~SVGPathSeg() { }
00040
00041 enum SVGPathSegType {
00042 PATHSEG_UNKNOWN = 0,
00043 PATHSEG_CLOSEPATH = 1,
00044 PATHSEG_MOVETO_ABS = 2,
00045 PATHSEG_MOVETO_REL = 3,
00046 PATHSEG_LINETO_ABS = 4,
00047 PATHSEG_LINETO_REL = 5,
00048 PATHSEG_CURVETO_CUBIC_ABS = 6,
00049 PATHSEG_CURVETO_CUBIC_REL = 7,
00050 PATHSEG_CURVETO_QUADRATIC_ABS = 8,
00051 PATHSEG_CURVETO_QUADRATIC_REL = 9,
00052 PATHSEG_ARC_ABS = 10,
00053 PATHSEG_ARC_REL = 11,
00054 PATHSEG_LINETO_HORIZONTAL_ABS = 12,
00055 PATHSEG_LINETO_HORIZONTAL_REL = 13,
00056 PATHSEG_LINETO_VERTICAL_ABS = 14,
00057 PATHSEG_LINETO_VERTICAL_REL = 15,
00058 PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16,
00059 PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17,
00060 PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18,
00061 PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19
00062 };
00063
00064 virtual unsigned short pathSegType() const { return PATHSEG_UNKNOWN; }
00065 virtual String pathSegTypeAsLetter() const { return ""; }
00066 virtual String toString() const { return ""; }
00067
00068 const QualifiedName& associatedAttributeName() const { return SVGNames::dAttr; }
00069
00070 protected:
00071 SVGPathSeg() { }
00072 };
00073
00074 }
00075
00076 #endif // ENABLE(SVG)
00077 #endif