1*b1cdbd2cSJim Jagielski /************************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski *************************************************************/ 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski 24*b1cdbd2cSJim Jagielski #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE2D_POLYGONPRIMITIVE2D_HXX 25*b1cdbd2cSJim Jagielski #define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_POLYGONPRIMITIVE2D_HXX 26*b1cdbd2cSJim Jagielski 27*b1cdbd2cSJim Jagielski #include <drawinglayer/drawinglayerdllapi.h> 28*b1cdbd2cSJim Jagielski #include <drawinglayer/primitive2d/baseprimitive2d.hxx> 29*b1cdbd2cSJim Jagielski #include <drawinglayer/attribute/lineattribute.hxx> 30*b1cdbd2cSJim Jagielski #include <drawinglayer/attribute/strokeattribute.hxx> 31*b1cdbd2cSJim Jagielski #include <drawinglayer/attribute/linestartendattribute.hxx> 32*b1cdbd2cSJim Jagielski #include <basegfx/matrix/b2dhommatrix.hxx> 33*b1cdbd2cSJim Jagielski #include <basegfx/polygon/b2dpolygon.hxx> 34*b1cdbd2cSJim Jagielski #include <basegfx/color/bcolor.hxx> 35*b1cdbd2cSJim Jagielski 36*b1cdbd2cSJim Jagielski ////////////////////////////////////////////////////////////////////////////// 37*b1cdbd2cSJim Jagielski // PolygonHairlinePrimitive2D class 38*b1cdbd2cSJim Jagielski 39*b1cdbd2cSJim Jagielski namespace drawinglayer 40*b1cdbd2cSJim Jagielski { 41*b1cdbd2cSJim Jagielski namespace primitive2d 42*b1cdbd2cSJim Jagielski { 43*b1cdbd2cSJim Jagielski /** PolygonHairlinePrimitive2D class 44*b1cdbd2cSJim Jagielski 45*b1cdbd2cSJim Jagielski This primitive defines a Hairline. Since hairlines are view-dependent, 46*b1cdbd2cSJim Jagielski this primitive is view-dependent, too. 47*b1cdbd2cSJim Jagielski 48*b1cdbd2cSJim Jagielski This is one of the non-decomposable primitives, so a renderer 49*b1cdbd2cSJim Jagielski should proccess it. 50*b1cdbd2cSJim Jagielski */ 51*b1cdbd2cSJim Jagielski class DRAWINGLAYER_DLLPUBLIC PolygonHairlinePrimitive2D : public BasePrimitive2D 52*b1cdbd2cSJim Jagielski { 53*b1cdbd2cSJim Jagielski private: 54*b1cdbd2cSJim Jagielski /// the hairline geometry 55*b1cdbd2cSJim Jagielski basegfx::B2DPolygon maPolygon; 56*b1cdbd2cSJim Jagielski 57*b1cdbd2cSJim Jagielski /// the hairline color 58*b1cdbd2cSJim Jagielski basegfx::BColor maBColor; 59*b1cdbd2cSJim Jagielski 60*b1cdbd2cSJim Jagielski public: 61*b1cdbd2cSJim Jagielski /// constructor 62*b1cdbd2cSJim Jagielski PolygonHairlinePrimitive2D( 63*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& rPolygon, 64*b1cdbd2cSJim Jagielski const basegfx::BColor& rBColor); 65*b1cdbd2cSJim Jagielski 66*b1cdbd2cSJim Jagielski /// data read access getB2DPolygon() const67*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& getB2DPolygon() const { return maPolygon; } getBColor() const68*b1cdbd2cSJim Jagielski const basegfx::BColor& getBColor() const { return maBColor; } 69*b1cdbd2cSJim Jagielski 70*b1cdbd2cSJim Jagielski /// compare operator 71*b1cdbd2cSJim Jagielski virtual bool operator==(const BasePrimitive2D& rPrimitive) const; 72*b1cdbd2cSJim Jagielski 73*b1cdbd2cSJim Jagielski /// get range 74*b1cdbd2cSJim Jagielski virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const; 75*b1cdbd2cSJim Jagielski 76*b1cdbd2cSJim Jagielski /// provide unique ID 77*b1cdbd2cSJim Jagielski DeclPrimitrive2DIDBlock() 78*b1cdbd2cSJim Jagielski }; 79*b1cdbd2cSJim Jagielski } // end of namespace primitive2d 80*b1cdbd2cSJim Jagielski } // end of namespace drawinglayer 81*b1cdbd2cSJim Jagielski 82*b1cdbd2cSJim Jagielski ////////////////////////////////////////////////////////////////////////////// 83*b1cdbd2cSJim Jagielski // PolygonMarkerPrimitive2D class 84*b1cdbd2cSJim Jagielski 85*b1cdbd2cSJim Jagielski namespace drawinglayer 86*b1cdbd2cSJim Jagielski { 87*b1cdbd2cSJim Jagielski namespace primitive2d 88*b1cdbd2cSJim Jagielski { 89*b1cdbd2cSJim Jagielski /** PolygonMarkerPrimitive2D class 90*b1cdbd2cSJim Jagielski 91*b1cdbd2cSJim Jagielski This primitive defines a two-colored marker hairline which is 92*b1cdbd2cSJim Jagielski dashed with the given dash length. Since hairlines are view-dependent, 93*b1cdbd2cSJim Jagielski this primitive is view-dependent, too. 94*b1cdbd2cSJim Jagielski 95*b1cdbd2cSJim Jagielski It will be decomposed to the needed PolygonHairlinePrimitive2D if 96*b1cdbd2cSJim Jagielski not handled directly by a renderer. 97*b1cdbd2cSJim Jagielski */ 98*b1cdbd2cSJim Jagielski class DRAWINGLAYER_DLLPUBLIC PolygonMarkerPrimitive2D : public BufferedDecompositionPrimitive2D 99*b1cdbd2cSJim Jagielski { 100*b1cdbd2cSJim Jagielski private: 101*b1cdbd2cSJim Jagielski /// the marker hairline geometry 102*b1cdbd2cSJim Jagielski basegfx::B2DPolygon maPolygon; 103*b1cdbd2cSJim Jagielski 104*b1cdbd2cSJim Jagielski /// the two colors 105*b1cdbd2cSJim Jagielski basegfx::BColor maRGBColorA; 106*b1cdbd2cSJim Jagielski basegfx::BColor maRGBColorB; 107*b1cdbd2cSJim Jagielski 108*b1cdbd2cSJim Jagielski /// the dash distance in 'pixels' 109*b1cdbd2cSJim Jagielski double mfDiscreteDashLength; 110*b1cdbd2cSJim Jagielski 111*b1cdbd2cSJim Jagielski /// decomposition is view-dependent, remember last InverseObjectToViewTransformation 112*b1cdbd2cSJim Jagielski basegfx::B2DHomMatrix maLastInverseObjectToViewTransformation; 113*b1cdbd2cSJim Jagielski 114*b1cdbd2cSJim Jagielski protected: 115*b1cdbd2cSJim Jagielski /// local decomposition. 116*b1cdbd2cSJim Jagielski virtual Primitive2DSequence create2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const; 117*b1cdbd2cSJim Jagielski 118*b1cdbd2cSJim Jagielski public: 119*b1cdbd2cSJim Jagielski /// constructor 120*b1cdbd2cSJim Jagielski PolygonMarkerPrimitive2D( 121*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& rPolygon, 122*b1cdbd2cSJim Jagielski const basegfx::BColor& rRGBColorA, 123*b1cdbd2cSJim Jagielski const basegfx::BColor& rRGBColorB, 124*b1cdbd2cSJim Jagielski double fDiscreteDashLength); 125*b1cdbd2cSJim Jagielski 126*b1cdbd2cSJim Jagielski /// data read access getB2DPolygon() const127*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& getB2DPolygon() const { return maPolygon; } getRGBColorA() const128*b1cdbd2cSJim Jagielski const basegfx::BColor& getRGBColorA() const { return maRGBColorA; } getRGBColorB() const129*b1cdbd2cSJim Jagielski const basegfx::BColor& getRGBColorB() const { return maRGBColorB; } getDiscreteDashLength() const130*b1cdbd2cSJim Jagielski double getDiscreteDashLength() const { return mfDiscreteDashLength; } 131*b1cdbd2cSJim Jagielski 132*b1cdbd2cSJim Jagielski /// compare operator 133*b1cdbd2cSJim Jagielski virtual bool operator==(const BasePrimitive2D& rPrimitive) const; 134*b1cdbd2cSJim Jagielski 135*b1cdbd2cSJim Jagielski /// get range 136*b1cdbd2cSJim Jagielski virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const; 137*b1cdbd2cSJim Jagielski 138*b1cdbd2cSJim Jagielski /// get local decomposition. Overloaded since this decomposition is view-dependent 139*b1cdbd2cSJim Jagielski virtual Primitive2DSequence get2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const; 140*b1cdbd2cSJim Jagielski 141*b1cdbd2cSJim Jagielski /// provide unique ID 142*b1cdbd2cSJim Jagielski DeclPrimitrive2DIDBlock() 143*b1cdbd2cSJim Jagielski }; 144*b1cdbd2cSJim Jagielski } // end of namespace primitive2d 145*b1cdbd2cSJim Jagielski } // end of namespace drawinglayer 146*b1cdbd2cSJim Jagielski 147*b1cdbd2cSJim Jagielski ////////////////////////////////////////////////////////////////////////////// 148*b1cdbd2cSJim Jagielski // PolygonStrokePrimitive2D class 149*b1cdbd2cSJim Jagielski 150*b1cdbd2cSJim Jagielski namespace drawinglayer 151*b1cdbd2cSJim Jagielski { 152*b1cdbd2cSJim Jagielski namespace primitive2d 153*b1cdbd2cSJim Jagielski { 154*b1cdbd2cSJim Jagielski /** PolygonStrokePrimitive2D class 155*b1cdbd2cSJim Jagielski 156*b1cdbd2cSJim Jagielski This primitive defines a line with line width, line join, line color 157*b1cdbd2cSJim Jagielski and stroke attributes. It will be decomposed dependent on the definition 158*b1cdbd2cSJim Jagielski to the needed primitives, e.g. filled PolyPolygons for fat lines. 159*b1cdbd2cSJim Jagielski */ 160*b1cdbd2cSJim Jagielski class DRAWINGLAYER_DLLPUBLIC PolygonStrokePrimitive2D : public BufferedDecompositionPrimitive2D 161*b1cdbd2cSJim Jagielski { 162*b1cdbd2cSJim Jagielski private: 163*b1cdbd2cSJim Jagielski /// the line geometry 164*b1cdbd2cSJim Jagielski basegfx::B2DPolygon maPolygon; 165*b1cdbd2cSJim Jagielski 166*b1cdbd2cSJim Jagielski /// the line attributes like width, join and color 167*b1cdbd2cSJim Jagielski attribute::LineAttribute maLineAttribute; 168*b1cdbd2cSJim Jagielski 169*b1cdbd2cSJim Jagielski /// the line stroking (if used) 170*b1cdbd2cSJim Jagielski attribute::StrokeAttribute maStrokeAttribute; 171*b1cdbd2cSJim Jagielski 172*b1cdbd2cSJim Jagielski protected: 173*b1cdbd2cSJim Jagielski /// local decomposition. 174*b1cdbd2cSJim Jagielski virtual Primitive2DSequence create2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const; 175*b1cdbd2cSJim Jagielski 176*b1cdbd2cSJim Jagielski public: 177*b1cdbd2cSJim Jagielski /// constructor 178*b1cdbd2cSJim Jagielski PolygonStrokePrimitive2D( 179*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& rPolygon, 180*b1cdbd2cSJim Jagielski const attribute::LineAttribute& rLineAttribute, 181*b1cdbd2cSJim Jagielski const attribute::StrokeAttribute& rStrokeAttribute); 182*b1cdbd2cSJim Jagielski 183*b1cdbd2cSJim Jagielski /// constructor without stroking 184*b1cdbd2cSJim Jagielski PolygonStrokePrimitive2D( 185*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& rPolygon, 186*b1cdbd2cSJim Jagielski const attribute::LineAttribute& rLineAttribute); 187*b1cdbd2cSJim Jagielski 188*b1cdbd2cSJim Jagielski /// data read access getB2DPolygon() const189*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& getB2DPolygon() const { return maPolygon; } getLineAttribute() const190*b1cdbd2cSJim Jagielski const attribute::LineAttribute& getLineAttribute() const { return maLineAttribute; } getStrokeAttribute() const191*b1cdbd2cSJim Jagielski const attribute::StrokeAttribute& getStrokeAttribute() const { return maStrokeAttribute; } 192*b1cdbd2cSJim Jagielski 193*b1cdbd2cSJim Jagielski /// compare operator 194*b1cdbd2cSJim Jagielski virtual bool operator==(const BasePrimitive2D& rPrimitive) const; 195*b1cdbd2cSJim Jagielski 196*b1cdbd2cSJim Jagielski /// get range 197*b1cdbd2cSJim Jagielski virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const; 198*b1cdbd2cSJim Jagielski 199*b1cdbd2cSJim Jagielski /// provide unique ID 200*b1cdbd2cSJim Jagielski DeclPrimitrive2DIDBlock() 201*b1cdbd2cSJim Jagielski }; 202*b1cdbd2cSJim Jagielski } // end of namespace primitive2d 203*b1cdbd2cSJim Jagielski } // end of namespace drawinglayer 204*b1cdbd2cSJim Jagielski 205*b1cdbd2cSJim Jagielski ////////////////////////////////////////////////////////////////////////////// 206*b1cdbd2cSJim Jagielski // PolygonWavePrimitive2D class 207*b1cdbd2cSJim Jagielski 208*b1cdbd2cSJim Jagielski namespace drawinglayer 209*b1cdbd2cSJim Jagielski { 210*b1cdbd2cSJim Jagielski namespace primitive2d 211*b1cdbd2cSJim Jagielski { 212*b1cdbd2cSJim Jagielski /** PolygonWavePrimitive2D class 213*b1cdbd2cSJim Jagielski 214*b1cdbd2cSJim Jagielski This primitive defines a waveline based on a PolygonStrokePrimitive2D 215*b1cdbd2cSJim Jagielski where the wave is defined by wave width and wave length. 216*b1cdbd2cSJim Jagielski */ 217*b1cdbd2cSJim Jagielski class DRAWINGLAYER_DLLPUBLIC PolygonWavePrimitive2D : public PolygonStrokePrimitive2D 218*b1cdbd2cSJim Jagielski { 219*b1cdbd2cSJim Jagielski private: 220*b1cdbd2cSJim Jagielski /// wave definition 221*b1cdbd2cSJim Jagielski double mfWaveWidth; 222*b1cdbd2cSJim Jagielski double mfWaveHeight; 223*b1cdbd2cSJim Jagielski 224*b1cdbd2cSJim Jagielski protected: 225*b1cdbd2cSJim Jagielski /// local decomposition. 226*b1cdbd2cSJim Jagielski virtual Primitive2DSequence create2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const; 227*b1cdbd2cSJim Jagielski 228*b1cdbd2cSJim Jagielski public: 229*b1cdbd2cSJim Jagielski /// constructor 230*b1cdbd2cSJim Jagielski PolygonWavePrimitive2D( 231*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& rPolygon, 232*b1cdbd2cSJim Jagielski const attribute::LineAttribute& rLineAttribute, 233*b1cdbd2cSJim Jagielski const attribute::StrokeAttribute& rStrokeAttribute, 234*b1cdbd2cSJim Jagielski double fWaveWidth, 235*b1cdbd2cSJim Jagielski double fWaveHeight); 236*b1cdbd2cSJim Jagielski 237*b1cdbd2cSJim Jagielski /// constructor without stroking 238*b1cdbd2cSJim Jagielski PolygonWavePrimitive2D( 239*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& rPolygon, 240*b1cdbd2cSJim Jagielski const attribute::LineAttribute& rLineAttribute, 241*b1cdbd2cSJim Jagielski double fWaveWidth, 242*b1cdbd2cSJim Jagielski double fWaveHeight); 243*b1cdbd2cSJim Jagielski 244*b1cdbd2cSJim Jagielski /// data read access getWaveWidth() const245*b1cdbd2cSJim Jagielski double getWaveWidth() const { return mfWaveWidth; } getWaveHeight() const246*b1cdbd2cSJim Jagielski double getWaveHeight() const { return mfWaveHeight; } 247*b1cdbd2cSJim Jagielski 248*b1cdbd2cSJim Jagielski /// compare operator 249*b1cdbd2cSJim Jagielski virtual bool operator==(const BasePrimitive2D& rPrimitive) const; 250*b1cdbd2cSJim Jagielski 251*b1cdbd2cSJim Jagielski /// get range 252*b1cdbd2cSJim Jagielski virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const; 253*b1cdbd2cSJim Jagielski 254*b1cdbd2cSJim Jagielski /// provide unique ID 255*b1cdbd2cSJim Jagielski DeclPrimitrive2DIDBlock() 256*b1cdbd2cSJim Jagielski }; 257*b1cdbd2cSJim Jagielski } // end of namespace primitive2d 258*b1cdbd2cSJim Jagielski } // end of namespace drawinglayer 259*b1cdbd2cSJim Jagielski 260*b1cdbd2cSJim Jagielski ////////////////////////////////////////////////////////////////////////////// 261*b1cdbd2cSJim Jagielski // PolygonStrokeArrowPrimitive2D class 262*b1cdbd2cSJim Jagielski 263*b1cdbd2cSJim Jagielski namespace drawinglayer 264*b1cdbd2cSJim Jagielski { 265*b1cdbd2cSJim Jagielski namespace primitive2d 266*b1cdbd2cSJim Jagielski { 267*b1cdbd2cSJim Jagielski /** PolygonStrokeArrowPrimitive2D class 268*b1cdbd2cSJim Jagielski 269*b1cdbd2cSJim Jagielski This primitive defines a PolygonStrokePrimitive2D which is extended 270*b1cdbd2cSJim Jagielski eventually by start and end definitions which are normally used for 271*b1cdbd2cSJim Jagielski arrows. 272*b1cdbd2cSJim Jagielski */ 273*b1cdbd2cSJim Jagielski class DRAWINGLAYER_DLLPUBLIC PolygonStrokeArrowPrimitive2D : public PolygonStrokePrimitive2D 274*b1cdbd2cSJim Jagielski { 275*b1cdbd2cSJim Jagielski private: 276*b1cdbd2cSJim Jagielski /// geometric definitions for line start and end 277*b1cdbd2cSJim Jagielski attribute::LineStartEndAttribute maStart; 278*b1cdbd2cSJim Jagielski attribute::LineStartEndAttribute maEnd; 279*b1cdbd2cSJim Jagielski 280*b1cdbd2cSJim Jagielski protected: 281*b1cdbd2cSJim Jagielski /// local decomposition. 282*b1cdbd2cSJim Jagielski virtual Primitive2DSequence create2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const; 283*b1cdbd2cSJim Jagielski 284*b1cdbd2cSJim Jagielski public: 285*b1cdbd2cSJim Jagielski /// constructor 286*b1cdbd2cSJim Jagielski PolygonStrokeArrowPrimitive2D( 287*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& rPolygon, 288*b1cdbd2cSJim Jagielski const attribute::LineAttribute& rLineAttribute, 289*b1cdbd2cSJim Jagielski const attribute::StrokeAttribute& rStrokeAttribute, 290*b1cdbd2cSJim Jagielski const attribute::LineStartEndAttribute& rStart, 291*b1cdbd2cSJim Jagielski const attribute::LineStartEndAttribute& rEnd); 292*b1cdbd2cSJim Jagielski 293*b1cdbd2cSJim Jagielski /// constructor without stroking 294*b1cdbd2cSJim Jagielski PolygonStrokeArrowPrimitive2D( 295*b1cdbd2cSJim Jagielski const basegfx::B2DPolygon& rPolygon, 296*b1cdbd2cSJim Jagielski const attribute::LineAttribute& rLineAttribute, 297*b1cdbd2cSJim Jagielski const attribute::LineStartEndAttribute& rStart, 298*b1cdbd2cSJim Jagielski const attribute::LineStartEndAttribute& rEnd); 299*b1cdbd2cSJim Jagielski 300*b1cdbd2cSJim Jagielski /// data read access getStart() const301*b1cdbd2cSJim Jagielski const attribute::LineStartEndAttribute& getStart() const { return maStart; } getEnd() const302*b1cdbd2cSJim Jagielski const attribute::LineStartEndAttribute& getEnd() const { return maEnd; } 303*b1cdbd2cSJim Jagielski 304*b1cdbd2cSJim Jagielski /// compare operator 305*b1cdbd2cSJim Jagielski virtual bool operator==(const BasePrimitive2D& rPrimitive) const; 306*b1cdbd2cSJim Jagielski 307*b1cdbd2cSJim Jagielski /// get range 308*b1cdbd2cSJim Jagielski virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const; 309*b1cdbd2cSJim Jagielski 310*b1cdbd2cSJim Jagielski /// provide unique ID 311*b1cdbd2cSJim Jagielski DeclPrimitrive2DIDBlock() 312*b1cdbd2cSJim Jagielski }; 313*b1cdbd2cSJim Jagielski } // end of namespace primitive2d 314*b1cdbd2cSJim Jagielski } // end of namespace drawinglayer 315*b1cdbd2cSJim Jagielski 316*b1cdbd2cSJim Jagielski ////////////////////////////////////////////////////////////////////////////// 317*b1cdbd2cSJim Jagielski 318*b1cdbd2cSJim Jagielski #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_POLYGONPRIMITIVE2D_HXX 319*b1cdbd2cSJim Jagielski 320*b1cdbd2cSJim Jagielski ////////////////////////////////////////////////////////////////////////////// 321*b1cdbd2cSJim Jagielski // eof 322