beveler.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "camconfig.h"
#include "beveler.h"
#include "gdraw2.h"
#include "cstroke.h"

Go to the source code of this file.

Functions

 CC_IMPLEMENT_DYNAMIC (CBeveler, CCObject) CBeveler
 Constructor for the beveling tool Sets up the class read to do beveling.
void memset32 (DWORD *pMem, DWORD Val, DWORD Len)
 Renders the points list in strips to the given 8 bit DIB.


Function Documentation

CC_IMPLEMENT_DYNAMIC CBeveler  ,
CCObject 
 

Constructor for the beveling tool Sets up the class read to do beveling.

Author:
David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/9/98
See also:
-

Definition at line 144 of file beveler.cpp.

00150           :     David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
00151     Created:    15/9/98
00152     Purpose:    Constructor for the beveling tool
00153                 Sets up the class read to do beveling
00154     SeeAlso:    -
00155 
00156 ********************************************************************************************/
00157 
00158 CBeveler::CBeveler()
00159 {
00160     // draw out the path to bevel from the selection
00161     m_pBevelPath = NULL;
00162     m_Width  =
00163     m_Height = 0;
00164     m_bOuter = FALSE;
00165     m_JointType = RoundJoin;
00166     m_pFaceList = NULL;
00167     m_NumFaces = 0;
00168     m_pBevelPoints = NULL ;
00169     m_pBevelTypes = NULL ;
00170     m_nBevelLength = 0 ;
00171     m_Tilt = 32.0;
00172     m_pStrip32 = NULL;
00173     m_pMaskBitmap = NULL;
00174     m_pNewMask = NULL;
00175     m_Indent = 750;
00176     m_Contrast = 50;
00177     m_BevelType = 1;
00178     m_LightAngle = 45;
00179     m_Transparency = 0;
00180     m_dBmpToWinX = 300;
00181     m_dBmpToWinY = 300;
00182 }

void memset32 DWORD pMem,
DWORD  Val,
DWORD  Len
 

Renders the points list in strips to the given 8 bit DIB.

Author:
David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/11/99
Parameters:
pBitmap - 8 bit bitmap to render to [INPUTS] OffsetX - the x offset to add to the x coords of the areas to be rendered (in pixels) OffsetY - the y offset to add to the y coords of the areas to be rendered (in pixels)
Returns:
TRUE for success, FALSE for failure Notes: OffsetX & OffsetY denote the origin of the super-bitmap where the bitmap which this fn creates is to be placed This is so that this function can create an area in a larger bitmap to avoid the maximum width & height of bitmap that GDraw2 can cope with
See also:
-

Definition at line 1267 of file beveler.cpp.

01268 {
01269     for (DWORD i=0; i < Len; i++)
01270         *pMem++ = Val;
01271 }


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