fillndge.cpp

Go to the documentation of this file.
00001 // $Id: fillndge.cpp 1282 2006-06-09 09:46:49Z alex $
00002 /* @@tag:xara-cn@@ DO NOT MODIFY THIS LINE
00003 ================================XARAHEADERSTART===========================
00004  
00005                Xara LX, a vector drawing and manipulation program.
00006                     Copyright (C) 1993-2006 Xara Group Ltd.
00007        Copyright on certain contributions may be held in joint with their
00008               respective authors. See AUTHORS file for details.
00009 
00010 LICENSE TO USE AND MODIFY SOFTWARE
00011 ----------------------------------
00012 
00013 This file is part of Xara LX.
00014 
00015 Xara LX is free software; you can redistribute it and/or modify it
00016 under the terms of the GNU General Public License version 2 as published
00017 by the Free Software Foundation.
00018 
00019 Xara LX and its component source files are distributed in the hope
00020 that it will be useful, but WITHOUT ANY WARRANTY; without even the
00021 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00022 See the GNU General Public License for more details.
00023 
00024 You should have received a copy of the GNU General Public License along
00025 with Xara LX (see the file GPL in the root directory of the
00026 distribution); if not, write to the Free Software Foundation, Inc., 51
00027 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00028 
00029 
00030 ADDITIONAL RIGHTS
00031 -----------------
00032 
00033 Conditional upon your continuing compliance with the GNU General Public
00034 License described above, Xara Group Ltd grants to you certain additional
00035 rights. 
00036 
00037 The additional rights are to use, modify, and distribute the software
00038 together with the wxWidgets library, the wxXtra library, and the "CDraw"
00039 library and any other such library that any version of Xara LX relased
00040 by Xara Group Ltd requires in order to compile and execute, including
00041 the static linking of that library to XaraLX. In the case of the
00042 "CDraw" library, you may satisfy obligation under the GNU General Public
00043 License to provide source code by providing a binary copy of the library
00044 concerned and a copy of the license accompanying it.
00045 
00046 Nothing in this section restricts any of the rights you have under
00047 the GNU General Public License.
00048 
00049 
00050 SCOPE OF LICENSE
00051 ----------------
00052 
00053 This license applies to this program (XaraLX) and its constituent source
00054 files only, and does not necessarily apply to other Xara products which may
00055 in part share the same code base, and are subject to their own licensing
00056 terms.
00057 
00058 This license does not apply to files in the wxXtra directory, which
00059 are built into a separate library, and are subject to the wxWindows
00060 license contained within that directory in the file "WXXTRA-LICENSE".
00061 
00062 This license does not apply to the binary libraries (if any) within
00063 the "libs" directory, which are subject to a separate license contained
00064 within that directory in the file "LIBS-LICENSE".
00065 
00066 
00067 ARRANGEMENTS FOR CONTRIBUTION OF MODIFICATIONS
00068 ----------------------------------------------
00069 
00070 Subject to the terms of the GNU Public License (see above), you are
00071 free to do whatever you like with your modifications. However, you may
00072 (at your option) wish contribute them to Xara's source tree. You can
00073 find details of how to do this at:
00074   http://www.xaraxtreme.org/developers/
00075 
00076 Prior to contributing your modifications, you will need to complete our
00077 contributor agreement. This can be found at:
00078   http://www.xaraxtreme.org/developers/contribute/
00079 
00080 Please note that Xara will not accept modifications which modify any of
00081 the text between the start and end of this header (marked
00082 XARAHEADERSTART and XARAHEADEREND).
00083 
00084 
00085 MARKS
00086 -----
00087 
00088 Xara, Xara LX, Xara X, Xara X/Xtreme, Xara Xtreme, the Xtreme and Xara
00089 designs are registered or unregistered trademarks, design-marks, and/or
00090 service marks of Xara Group Ltd. All rights in these marks are reserved.
00091 
00092 
00093       Xara Group Ltd, Gaddesden Place, Hemel Hempstead, HP2 6EX, UK.
00094                         http://www.xara.com/
00095 
00096 =================================XARAHEADEREND============================
00097  */
00098 // Implementation of the fill nudge ops
00099 
00100 /*
00101 */
00102 
00103 #include "camtypes.h"
00104 #include "fillndge.h"
00105 
00106 //#include "app.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00107 //#include "markn.h"
00108 //#include "nodeattr.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00109 //#include "fillattr.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00110 #include "opnudge.h"
00111 //#include "trans2d.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00112 //#include "will.h"
00113 //#include "attrmgr.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00114 //#include "docview.h" - in camtypes.h [AUTOMATICALLY REMOVED]
00115 
00116 class Spread;
00117 
00118 DECLARE_SOURCE("$Revision: 1282 $");
00119 
00120 CC_IMPLEMENT_DYNCREATE(OpFillNudge,Operation)
00121 CC_IMPLEMENT_DYNCREATE(FillGeometryNudger, AttrValueChange)
00122 
00123 BOOL OpFillNudge::NudgeCols;        // Shall we nudge colour or transparency fills ?
00124 
00125 static CCRuntimeClass* LastNudgeType = NULL;
00126 static DocCoord LastNudgeStart = DocCoord(0,0);
00127 static DocCoord LastNudgeEnd = DocCoord(0,0);
00128 static DocCoord LastNudgeEnd2 = DocCoord(0,0);
00129 
00130 /********************************************************************************************
00131 
00132 >   static void OpFillNudge::NudgeColours(BOOL cols)
00133 
00134     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00135     Created:    28/3/94
00136     Purpose:    Sets whether a nudge will nudge colour or transparency fills.
00137 
00138 ********************************************************************************************/
00139 
00140 void OpFillNudge::NudgeColours(BOOL cols)
00141 {
00142     NudgeCols = cols;
00143 }
00144 
00145 /********************************************************************************************
00146 
00147 >   void IMPLEMENT_OPFILLNUDGE_CLASS(DIR,X_NUDGE_FACTOR,Y_NUDGE_FACTOR,UNDO_IDS)
00148 
00149     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com> (via MarkN)
00150     Created:    8/3/95
00151     Inputs:     DIR             = String postfix specifying the nudge direction and magnitude, e.g. Up1
00152                 X_NUDGE_FACTOR  = signed INT32 giving the x nudge magnitude and direction
00153                 Y_NUDGE_FACTOR  = y version of above
00154                 UNDO_IDS        = IDS of undo string to append to the undo/redo men items
00155     Outputs:    -
00156     Returns:    
00157     Purpose:    The macro IMPLEMENT_OPFILLNUDGE_CLASS(DIR,X_NUDGE_FACTOR,Y_NUDGE_FACTOR,UNDO_IDS) implements
00158                 the OpNudgeX Do() function.
00159                 E.g. OpNudgeUp1
00160 
00161                 Firstly, CC_IMPLEMENT_DYNCREATE(OpNudgeUp1,OpNudge) is done
00162 
00163                 Then itsets the OpNudge protected member vars as follows-
00164                     X_NudgeFactor = 0;                  // I.e. don't nudge in the X dir
00165                     Y_NudgeFactor = 1;                  // I.e. Nudge up by 1 nudge step 
00166                     NudgeUndoIDS  = _R(IDS_UNDO_NUDGE_UP);  // This string appended to the undo/redo menu items
00167 
00168                 It then calls OpNudge::Do() which uses the nudge factors to determine nudging magnitude and
00169                 direction
00170 
00171     Errors:     -
00172     SeeAlso:    IMPLEMENT_OPNUDGE_CLASS
00173 
00174 ********************************************************************************************/
00175 
00176 #define IMPLEMENT_OPFILLNUDGE_CLASS(DIR,X_NUDGE_FACTOR,Y_NUDGE_FACTOR,UNDO_IDS) \
00177     CC_IMPLEMENT_DYNCREATE(OpFillNudge ## DIR,OpFillNudge) \
00178     void OpFillNudge ## DIR::Do(OpDescriptor* pOpDesc) \
00179     { \
00180          X_NudgeFactor = X_NUDGE_FACTOR; \
00181          Y_NudgeFactor = Y_NUDGE_FACTOR; \
00182         NudgeUndoIDS  = UNDO_IDS; \
00183         OpFillNudge::Do(pOpDesc); \
00184     } \
00185 
00186 /*OpFillNudgeUp5::Do (OpDescriptor* pOpDesc)
00187 {
00188     X_NudgeFactor = 0;  Y_NudgeFactor = 1;      flag=TRUE;      NudgeUndoIDS = _R(IDS_UNDO_NUDGE_UP);
00189     OpFillNudge::Do(pOpDesc);
00190 }*/
00191 
00192 
00193 IMPLEMENT_OPFILLNUDGE_CLASS (Up1,        0, 1,      _R(IDS_UNDO_NUDGE_UP))
00194 IMPLEMENT_OPFILLNUDGE_CLASS (Up5,        0, 5,      _R(IDS_UNDO_NUDGE_UP))
00195 IMPLEMENT_OPFILLNUDGE_CLASS (Up10,       0, 10,     _R(IDS_UNDO_NUDGE_UP))
00196 IMPLEMENT_OPFILLNUDGE_CLASS (UpFifth,    0, 0.2,    _R(IDS_UNDO_NUDGE_UP))
00197 IMPLEMENT_OPFILLNUDGE_CLASS (UpPixel1,   0, 1,      _R(IDS_UNDO_NUDGE_UP))
00198 IMPLEMENT_OPFILLNUDGE_CLASS (UpPixel10,  0, 10,     _R(IDS_UNDO_NUDGE_UP))
00199 
00200 IMPLEMENT_OPFILLNUDGE_CLASS (Down1,      0,-1,      _R(IDS_UNDO_NUDGE_DOWN))
00201 IMPLEMENT_OPFILLNUDGE_CLASS (Down5 ,     0,-5,      _R(IDS_UNDO_NUDGE_DOWN))
00202 IMPLEMENT_OPFILLNUDGE_CLASS (Down10,     0,-10,     _R(IDS_UNDO_NUDGE_DOWN))
00203 IMPLEMENT_OPFILLNUDGE_CLASS (DownFifth,  0, -0.2,   _R(IDS_UNDO_NUDGE_DOWN))
00204 IMPLEMENT_OPFILLNUDGE_CLASS (DownPixel1, 0, -1,     _R(IDS_UNDO_NUDGE_DOWN))
00205 IMPLEMENT_OPFILLNUDGE_CLASS (DownPixel10, 0,-10,    _R(IDS_UNDO_NUDGE_DOWN))
00206 
00207 IMPLEMENT_OPFILLNUDGE_CLASS (Left1,      -1, 0,     _R(IDS_UNDO_NUDGE_LEFT))
00208 IMPLEMENT_OPFILLNUDGE_CLASS (Left5,      -5, 0,     _R(IDS_UNDO_NUDGE_LEFT))
00209 IMPLEMENT_OPFILLNUDGE_CLASS (Left10,     -10,0,     _R(IDS_UNDO_NUDGE_LEFT))
00210 IMPLEMENT_OPFILLNUDGE_CLASS (LeftFifth,  -0.2,0,    _R(IDS_UNDO_NUDGE_LEFT))
00211 IMPLEMENT_OPFILLNUDGE_CLASS (LeftPixel1, -1, 0,     _R(IDS_UNDO_NUDGE_LEFT))
00212 IMPLEMENT_OPFILLNUDGE_CLASS (LeftPixel10,-10, 0,    _R(IDS_UNDO_NUDGE_LEFT))
00213         
00214 
00215 IMPLEMENT_OPFILLNUDGE_CLASS (Right1,       1,  0,   _R(IDS_UNDO_NUDGE_RIGHT))
00216 IMPLEMENT_OPFILLNUDGE_CLASS (Right5,       5,  0,   _R(IDS_UNDO_NUDGE_RIGHT))
00217 IMPLEMENT_OPFILLNUDGE_CLASS (Right10,      10, 0,   _R(IDS_UNDO_NUDGE_RIGHT))
00218 IMPLEMENT_OPFILLNUDGE_CLASS (RightFifth,   0.2,0,   _R(IDS_UNDO_NUDGE_RIGHT))
00219 IMPLEMENT_OPFILLNUDGE_CLASS (RightPixel1,  1,  0,   _R(IDS_UNDO_NUDGE_RIGHT))
00220 IMPLEMENT_OPFILLNUDGE_CLASS (RightPixel10, 10, 0,   _R(IDS_UNDO_NUDGE_RIGHT))
00221 
00222 
00223 #define new CAM_DEBUG_NEW
00224 
00225 MILLIPOINT  OpFillNudge::NudgeStep   = 2835;    // The default size of a single nudge (1mm)
00226 //changed from INT32 to double to allow .2 MM Nudging
00227 double      OpFillNudge::X_NudgeFactor = 1;     // Distance nudged in x = NudgeStep * X_NudgeFactor;
00228 double      OpFillNudge::Y_NudgeFactor = 0;     // Distance nudged in y = NudgeStep * Y_NudgeFactor;
00229 
00230 
00231 /********************************************************************************************
00232 
00233 >   void OpFillNudge::Do(OpDescriptor* pOpDesc)
00234 
00235     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00236     Created:    8/3/95
00237     Inputs:     pOpDesc = ptr to the op descriptor
00238     Purpose:    The path nudge op's Do() function.
00239     SeeAlso:    OpNudge::Do()
00240 
00241 ********************************************************************************************/
00242 
00243 void OpFillNudge::Do(OpDescriptor* pOpDesc)
00244 {
00245 
00246     //  Get scaled pixel size 
00247     FIXED16 ScaledPixelWidth, ScaledPixelHeight;
00248     GetWorkingView()->GetScaledPixelSize(&ScaledPixelWidth, &ScaledPixelHeight) ;
00249     PixelNudge=ScaledPixelWidth.MakeDouble() ;
00250 
00251     // Determine the nudge factors based on the OpDescriptor used to invoke the nudge operation
00252     String OpToken = pOpDesc->Token; 
00253 
00254     if      (OpToken == String(OPTOKEN_NUDGEUPPIXEL1))      { IsPixelNudgeClass = TRUE; }
00255     else if (OpToken == String(OPTOKEN_NUDGEUPPIXEL10))     { IsPixelNudgeClass = TRUE; }
00256 
00257     else if (OpToken == String(OPTOKEN_NUDGEDOWNPIXEL1))    { IsPixelNudgeClass = TRUE; }
00258     else if (OpToken == String(OPTOKEN_NUDGEDOWNPIXEL10))   { IsPixelNudgeClass = TRUE; }
00259 
00260     else if (OpToken == String(OPTOKEN_NUDGELEFTPIXEL1))    { IsPixelNudgeClass = TRUE; }
00261     else if (OpToken == String(OPTOKEN_NUDGELEFTPIXEL10))   { IsPixelNudgeClass = TRUE; }
00262 
00263     else if (OpToken == String(OPTOKEN_NUDGERIGHTPIXEL1))   { IsPixelNudgeClass = TRUE; }
00264     else if (OpToken == String(OPTOKEN_NUDGERIGHTPIXEL10))  { IsPixelNudgeClass = TRUE; }
00265 
00266     else if (OpToken == String(OPTOKEN_NUDGEUP1))           { IsPixelNudgeClass = FALSE; }
00267     else if (OpToken == String(OPTOKEN_NUDGEUP5))           { IsPixelNudgeClass = FALSE; }
00268     else if (OpToken == String(OPTOKEN_NUDGEUP10))          { IsPixelNudgeClass = FALSE; }
00269     else if (OpToken == String(OPTOKEN_NUDGEUPFIFTH))       { IsPixelNudgeClass = FALSE; }
00270 
00271     else if (OpToken == String(OPTOKEN_NUDGEDOWN1))         { IsPixelNudgeClass = FALSE; }
00272     else if (OpToken == String(OPTOKEN_NUDGEDOWN5))         { IsPixelNudgeClass = FALSE; }
00273     else if (OpToken == String(OPTOKEN_NUDGEDOWN10))        { IsPixelNudgeClass = FALSE; }
00274     else if (OpToken == String(OPTOKEN_NUDGEDOWNFIFTH))     { IsPixelNudgeClass = FALSE; }
00275 
00276     else if (OpToken == String(OPTOKEN_NUDGELEFT1))         { IsPixelNudgeClass = FALSE; }
00277     else if (OpToken == String(OPTOKEN_NUDGELEFT5))         { IsPixelNudgeClass = FALSE; }
00278     else if (OpToken == String(OPTOKEN_NUDGELEFT10))        { IsPixelNudgeClass = FALSE; }
00279     else if (OpToken == String(OPTOKEN_NUDGELEFTFIFTH))     { IsPixelNudgeClass = FALSE; }
00280 
00281     else if (OpToken == String(OPTOKEN_NUDGERIGHT1))        { IsPixelNudgeClass = FALSE; }
00282     else if (OpToken == String(OPTOKEN_NUDGERIGHT5))        { IsPixelNudgeClass = FALSE; }
00283     else if (OpToken == String(OPTOKEN_NUDGERIGHT10))       { IsPixelNudgeClass = FALSE; }
00284     else if (OpToken == String(OPTOKEN_NUDGERIGHTFIFTH))    { IsPixelNudgeClass = FALSE; }
00285 
00286     // Setup the Offset DocCoord to contain the X and Y translation values  
00287     DocCoord Offset;
00288 
00289     if (IsPixelNudgeClass)
00290     {
00291         Offset.x=(INT32)GetXPixelDisplacement();
00292         Offset.y=(INT32)GetYPixelDisplacement();
00293     }
00294     else if (!IsPixelNudgeClass)
00295     {
00296         //TypeCast from double to INT32
00297         Offset.x=(INT32) GetXNudgeDisplacement();
00298         Offset.y=(INT32) GetYNudgeDisplacement();
00299     }
00300 
00301     if (AttrFillGeometry::SelectionCount == 0)
00302     {
00303             // Nothing to Nudge !!
00304         FailAndExecute();
00305         End();
00306         return;
00307     }
00308 
00309     FillGeometryNudger* FillNudger = new FillGeometryNudger();
00310 
00311     if (FillNudger == NULL)
00312     {
00313         FailAndExecute();
00314         End();
00315         return;
00316     }
00317 
00318     FillNudger->MutateColourFills(NudgeCols);
00319     FillNudger->SetNudgeDistance(Offset.x, Offset.y);
00320 
00321     AttributeManager::AttributeSelected(NULL, FillNudger);
00322 
00323     LastNudgeType   = NULL;
00324     LastNudgeStart  = DocCoord(0,0);
00325     LastNudgeEnd    = DocCoord(0,0);
00326     LastNudgeEnd2   = DocCoord(0,0);
00327     
00328     End();
00329 }
00330 
00331 /********************************************************************************************
00332 
00333 >   void OpFillNudge::GetOpName(String_256* OpName) 
00334 
00335     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00336     Created:    8/3/95
00337     Outputs:    The undo string for the operation
00338     Purpose:    The GetOpName fn is overridden so that we return back a description 
00339                 appropriate to the type of attribute that the operation applies. 
00340     SeeAlso:    OpNudge::GetOpName()
00341 
00342 ********************************************************************************************/
00343 
00344 void OpFillNudge::GetOpName(String_256* OpName) 
00345 { 
00346     *OpName = String_256(NudgeUndoIDS);
00347 }  
00348 
00349 
00350 /********************************************************************************************
00351 
00352                                 FillGeometryNudger
00353 
00354 ********************************************************************************************/
00355 
00356 
00357 /********************************************************************************************
00358 
00359 >   UINT32 FillGeometryNudger::GetAttrNameID(void)
00360 
00361     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00362     Created:    28/3/94
00363     Purpose:    Get a textual description of this object.
00364 
00365 ********************************************************************************************/
00366 
00367 UINT32 FillGeometryNudger::GetAttrNameID(void)
00368 {
00369     return (_R(IDS_VALUE_CHANGE));
00370 }
00371 
00372 /********************************************************************************************
00373 
00374 >   AttrFillGeometry* FillGeometryNudger::MutateFill(AttrFillGeometry* FillToMutate)
00375 
00376     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00377     Created:    28/3/94
00378     Inputs:     The fill that is to be changed.
00379     Purpose:    Nudges a fill geometry.
00380 
00381 ********************************************************************************************/
00382 
00383 AttrFillGeometry* FillGeometryNudger::MutateFill(AttrFillGeometry* FillToMutate)
00384 {
00385     if (!FillToMutate->IsVisible() ||
00386         FillToMutate->GetSelectionCount() == 0)
00387         return NULL;
00388 
00389     // Make a copy of this Fill to change
00390     AttrFillGeometry* NewFill = (AttrFillGeometry*)FillToMutate->SimpleCopy();
00391     if (NewFill == NULL)
00392         return NULL;
00393 
00394     // Construct the translation matrix
00395     Trans2DMatrix TransMat(X_NudgeDistance, Y_NudgeDistance);
00396     
00397     BOOL isARampBlob = FALSE;
00398 
00399     // And apply it to the fill
00400     
00401     NewFill->TransformSelectedControlPoints(TransMat, &isARampBlob);
00402 
00403     if (LastNudgeType == FillToMutate->GetRuntimeClass())
00404     {
00405         BOOL IsSame = TRUE;
00406 
00407         if (FillToMutate->GetStartPoint() && 
00408             *FillToMutate->GetStartPoint() != LastNudgeStart)
00409             IsSame = FALSE; 
00410 
00411         if (FillToMutate->GetEndPoint() && 
00412             *FillToMutate->GetEndPoint() != LastNudgeEnd)
00413             IsSame = FALSE; 
00414 
00415         if (FillToMutate->GetEndPoint2() && 
00416             *FillToMutate->GetEndPoint2() != LastNudgeEnd2)
00417             IsSame = FALSE; 
00418 
00419         if (IsSame)
00420             return NewFill;
00421     }
00422 
00423     Node *pNode = FillToMutate;
00424     while ((pNode != NULL) && !pNode->IsSpread())
00425         pNode = pNode->FindParent();
00426 
00427     if (pNode == NULL)
00428         return NewFill;         // We're not really in the tree
00429 
00430     Spread* pSpread = (Spread*)pNode;
00431 
00432     DocRect OldBounds = FillToMutate->GetBlobBoundingRect();
00433     DocRect NewBounds = NewFill->GetBlobBoundingRect();
00434 
00435     DocRect Bounds = OldBounds.Union(NewBounds);
00436 
00437     RenderRegion* pRegion = DocView::RenderOnTop(&Bounds, pSpread, UnclippedEOR);
00438     while (pRegion)
00439     {
00440         if (!isARampBlob)
00441         {
00442             // MUST do a full redraw of the fill blobs
00443             FillToMutate->RenderFillBlobs(pRegion);
00444             NewFill->RenderFillBlobs(pRegion);
00445         }
00446         else
00447         {
00448             FillToMutate->DisableRampRedraw ();
00449             FillToMutate->RenderFillBlobs(pRegion);
00450             FillToMutate->EnableRampRedraw ();
00451             NewFill->DisableRampRedraw ();
00452             NewFill->RenderFillBlobs(pRegion);
00453             NewFill->EnableRampRedraw ();
00454         }
00455 
00456         // Get the Next render region
00457         pRegion = DocView::GetNextOnTop(&Bounds);
00458     }
00459 
00460     AttrFillGeometry::LastRenderedMesh = NULL;
00461 
00462     LastNudgeType   = FillToMutate->GetRuntimeClass();
00463 
00464     if (FillToMutate->GetStartPoint())
00465         LastNudgeStart  = *FillToMutate->GetStartPoint();
00466 
00467     if (FillToMutate->GetEndPoint())
00468         LastNudgeEnd    = *FillToMutate->GetEndPoint();
00469 
00470     if (FillToMutate->GetEndPoint2())
00471         LastNudgeEnd2   = *FillToMutate->GetEndPoint2();
00472 
00473     return NewFill; 
00474 }
00475 
00476 /********************************************************************************************
00477 
00478 >   void FillGeometryNudger::SetNudgeDistance(INT32 xOffset, INT32 yOffset)
00479 
00480     Author:     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
00481     Created:    28/3/94
00482     Purpose:    Set the distance to nudge.
00483 
00484 ********************************************************************************************/
00485 
00486 void FillGeometryNudger::SetNudgeDistance(INT32 xOffset, INT32 yOffset)
00487 {
00488     X_NudgeDistance = xOffset;
00489     Y_NudgeDistance = yOffset;
00490 }

Generated on Sat Nov 10 03:45:14 2007 for Camelot by  doxygen 1.4.4