slice.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "slice.h"
#include "ngcore.h"
#include "ngitem.h"
#include "xshelpid.h"
#include "progress.h"
#include "osrndrgn.h"
#include "giffiltr.h"
#include "bmpfiltr.h"
#include "pngfiltr.h"
#include "extfilts.h"
#include "exjpeg.h"
#include "page.h"
#include "mrhbits.h"
#include "selall.h"
#include "slicehelper.h"
#include "bmapprev.h"
#include "ngprop.h"
#include "ngsentry.h"
#include "webattr.h"
#include "userattr.h"
#include "tmpltatr.h"
#include "desnotes.h"
#include <io.h>
#include "helpuser.h"
#include "nodetxts.h"
#include "nodetxtl.h"
#include "nodetext.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW

Functions

 DECLARE_SOURCE ("$Revision: 1282 $")
 CC_IMPLEMENT_DYNCREATE (OpSlice, OpMenuImport)
void ReAlignEdge (INT32 OldEdge, INT32 NewEdge, BOOL Horiz, CList< CSlice *, CSlice * > *pMosaicList)


Define Documentation

#define new   CAM_DEBUG_NEW
 

Definition at line 166 of file slice.cpp.


Function Documentation

CC_IMPLEMENT_DYNCREATE OpSlice  ,
OpMenuImport 
 

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 

void ReAlignEdge INT32  OldEdge,
INT32  NewEdge,
BOOL  Horiz,
CList< CSlice *, CSlice * > *  pMosaicList
 

Definition at line 1163 of file slice.cpp.

01164 {
01165     POSITION pos = pMosaicList->GetHeadPosition();
01166 
01167     while (pos)
01168     {
01169         CSlice * pRect = pMosaicList->GetNext(pos);
01170 
01171         if (Horiz)
01172         {
01173             if (pRect->left == OldEdge)
01174                 pRect->left = NewEdge;
01175             else
01176             if (pRect->right == OldEdge)
01177                 pRect->right = NewEdge;
01178         }
01179         else
01180         {
01181             if (pRect->bottom == OldEdge)
01182                 pRect->bottom = NewEdge;
01183             else
01184             if (pRect->top == OldEdge)
01185                 pRect->top = NewEdge;
01186         }
01187     }
01188 }


Generated on Sat Nov 10 03:49:21 2007 for Camelot by  doxygen 1.4.4