filltool.cpp File Reference

(r1785/r1730)

#include "camtypes.h"
#include "colourix.h"
#include "csrstack.h"
#include "osrndrgn.h"
#include "blobs.h"
#include "oilfiles.h"
#include "filltool.h"
#include "opgrad.h"
#include "toollist.h"
#include "bitmpinf.h"
#include "ophist.h"
#include "keypress.h"
#include "opnudge.h"
#include "fillndge.h"
#include "bmpcomp.h"
#include "bubbleid.h"
#include "nodeshad.h"
#include "objchge.h"
#include "layer.h"
#include "opliveeffects.h"
#include "effects_stack.h"
#include "nodeliveeffect.h"

Go to the source code of this file.

Classes

struct  FGMItem
 Associate the FillGeometry enum with the resource id of the text that gets displayed on the menu. More...
struct  TGMItem
 Associate the TransparencyGeometry enum with the resource id of the text that gets displayed on the menu. More...

Defines

#define new   CAM_DEBUG_NEW

Functions

 DECLARE_SOURCE ("$Revision: 1730 $")
double GetDoubleGrain (INT32 Pos)
INT32 GetGrainPos (double Grain)
INT32 GetGrainPosMax ()
double GetDoubleScale (INT32 Pos)
INT32 GetScalePos (double Scale)
INT32 GetScalePosMax ()

Variables

static INT32 TempGeometryIndex = -1
const FGMItem FillGeometryMenu []
 Array of 'FGMItem's that make up the geometry menu. We need to keep track of this because list combo boxes can only return the position of the selected item, not what it actually is. All this fuctionality should be in the gadgets not here.
const INT32 FillGeometryMenuCount = sizeof(FillGeometryMenu) / sizeof(FillGeometryMenu[0])
 Number of items on the FillGeometryMenu menu.
const TGMItem TransparencyGeometryMenu []
 Array of 'TGMItem's that make up the geometry menu. We need to keep track of this because list combo boxes can only return the position of the selected item, not what itd actually is. All this fuctionality should be in the gadgets not here.
const INT32 TransparencyGeometryMenuCount = sizeof(TransparencyGeometryMenu) / sizeof(TransparencyGeometryMenu[0])
 Number of items on the TransparencyGeometryMenu menu.


Define Documentation

#define new   CAM_DEBUG_NEW
 

Definition at line 203 of file filltool.cpp.


Function Documentation

DECLARE_SOURCE "$Revision: 1730 $"   ) 
 

double GetDoubleGrain INT32  Pos  ) 
 

Definition at line 9937 of file filltool.cpp.

09938 {
09939     return ( 128.0 * double(Pos)/double(GetGrainPosMax()) );
09940 }

double GetDoubleScale INT32  Pos  ) 
 

Definition at line 9952 of file filltool.cpp.

09953 {
09954     return ( 100.0 * double(Pos)/double(GetScalePosMax()) );
09955 }

INT32 GetGrainPos double  Grain  ) 
 

Definition at line 9942 of file filltool.cpp.

09943 {
09944     return INT32(Grain * double(GetGrainPosMax()) / 128.0 );
09945 }

INT32 GetGrainPosMax  ) 
 

Definition at line 9947 of file filltool.cpp.

09948 {
09949     return (1<<16);
09950 }

INT32 GetScalePos double  Scale  ) 
 

Definition at line 9957 of file filltool.cpp.

09958 {
09959     return INT32(Scale * double(GetScalePosMax()) / 100.0 );
09960 }

INT32 GetScalePosMax  ) 
 

Definition at line 9962 of file filltool.cpp.

09963 {
09964     return (100);
09965 }


Variable Documentation

const FGMItem FillGeometryMenu[]
 

Initial value:

{
    { FGMENU_FLAT,      _R(IDS_FILLTOOL_FLATFILL) },
    { FGMENU_LINEAR,    _R(IDS_FILLTOOL_LINEAR) },
    { FGMENU_CIRCULAR,  _R(IDS_FILLTOOL_CIRCULAR) },
    { FGMENU_RADIAL,    _R(IDS_FILLTOOL_ELLIPTICAL) },

    { FGMENU_CONICAL,   _R(IDS_FILLTOOL_CONICAL) },
    { FGMENU_SQUARE,    _R(IDS_FILLTOOL_SQUARE) },
    { FGMENU_THREECOL,  _R(IDS_FILLTOOL_THREECOL) },
    { FGMENU_FOURCOL,   _R(IDS_FILLTOOL_FOURCOL) },

    { FGMENU_BITMAP,    _R(IDS_FILLTOOL_BITMAP) },
    { FGMENU_FRACTAL,   _R(IDS_FILLTOOL_FRACTAL) },

    { FGMENU_NOISE,     _R(IDS_FILLTOOL_NOISE) }

}
Array of 'FGMItem's that make up the geometry menu. We need to keep track of this because list combo boxes can only return the position of the selected item, not what it actually is. All this fuctionality should be in the gadgets not here.

Author:
Martin_Bell (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/06/97
See also:
FillGeometry enum, TransparencyGeometryMenu

Definition at line 2589 of file filltool.cpp.

const INT32 FillGeometryMenuCount = sizeof(FillGeometryMenu) / sizeof(FillGeometryMenu[0])
 

Number of items on the FillGeometryMenu menu.

Author:
Martin_Bell (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/06/97
See also:
FillGeometryMenu

Definition at line 2619 of file filltool.cpp.

INT32 TempGeometryIndex = -1 [static]
 

Definition at line 184 of file filltool.cpp.

const TGMItem TransparencyGeometryMenu[]
 

Initial value:

{
    { FGMENU_NOTRANSP,          _R(IDS_FILLTOOL_NOTRANSP) },
    { FGMENU_FLATTRANSP,        _R(IDS_FILLTOOL_FLATTRANSP) },
    { FGMENU_LINEARTRANSP,      _R(IDS_FILLTOOL_LINEAR) },
    { FGMENU_CIRCULARTRANSP,    _R(IDS_FILLTOOL_CIRCULAR) },
    { FGMENU_RADIALTRANSP,      _R(IDS_FILLTOOL_ELLIPTICAL) },

    { FGMENU_CONICALTRANSP,     _R(IDS_FILLTOOL_CONICAL) },
    { FGMENU_SQUARETRANSP,      _R(IDS_FILLTOOL_SQUARE) },
    { FGMENU_THREECOLTRANSP,    _R(IDS_FILLTOOL_THREECOLTRANS) },
    { FGMENU_FOURCOLTRANSP,     _R(IDS_FILLTOOL_FOURCOLTRANS) },

    { FGMENU_BITMAPTRANSP,      _R(IDS_FILLTOOL_TEXTURE) },
    { FGMENU_FRACTALTRANSP,     _R(IDS_FILLTOOL_FRACTAL) },

    { FGMENU_NOISETRANSP,       _R(IDS_FILLTOOL_NOISE) }

}
Array of 'TGMItem's that make up the geometry menu. We need to keep track of this because list combo boxes can only return the position of the selected item, not what itd actually is. All this fuctionality should be in the gadgets not here.

Author:
Martin_Bell (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/06/97
See also:
TransparencyGeometry enum, FillGeometryMenu

Definition at line 5855 of file filltool.cpp.

const INT32 TransparencyGeometryMenuCount = sizeof(TransparencyGeometryMenu) / sizeof(TransparencyGeometryMenu[0])
 

Number of items on the TransparencyGeometryMenu menu.

Author:
Martin_Bell (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/06/97
See also:
TransparencyGeometryMenu

Definition at line 5886 of file filltool.cpp.


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