filltool.h File Reference

(r1785/r1702)

#include "tool.h"
#include "transop.h"
#include "bars.h"
#include "range.h"
#include "fillattr.h"
#include "lineattr.h"
#include "biasgdgt.h"
#include "bitmapgriddropdown.h"
#include "brshattr.h"
#include "list.h"
#include "dragtool.h"

Go to the source code of this file.

Classes

class  FillTools
 Provides functionality for generating a list of AttrFillGeometry nodes. This class is used by the profiling function GetProfileFromSelection (virtual overide). More...
class  GradFillTool
 The fill tool. More...
class  TranspTool
 The transparency tool. More...
class  GradInfoBarOp
 Class for handling the gradfill tool's information bar. More...
class  GradInfoBarOpCreate
 Class for creating GradInfoBarOps. Derived classes of BarCreate are used by DialogBarOp::ReadBarsFromFile(). More...
class  TranspInfoBarOp
 Class for handling the gradfill tool's information bar. More...
class  TranspInfoBarOpCreate
 Class for creating TranspInfoBarOps. Derived classes of BarCreate are used by DialogBarOp::ReadBarsFromFile(). More...
class  AttrRemoveTransp
 Removes the transparency from objects. This Attribute never exists in the Tree. It is used for changing the Transp of an existing Fill Geometry. More...
class  AttrRemoveStrokeTransp
 Removes the transparency from objects. This Attribute never exists in the Tree. It is used for changing the Transp of an existing Fill Geometry. More...
class  AttrMakeFlatTransp
 Force object to be 50% transparent This Attribute never exists in the Tree. It is used for changing the Transp of an existing Fill Geometry. More...
class  FillProfileOpParam
 Serves as our param passing stuff for undo/redo of fill profile changing. More...
class  OpChangeFillProfile
class  ChangeFillProfileAction
 Action for changing fill profiles. More...
class  TranspFillProfileOpParam
 Serves as our param passing stuff for undo/redo of transp fill profile changing. More...
class  OpChangeTranspFillProfile
class  ChangeTranspFillProfileAction
 Action for changing transp fill profiles. More...

Defines

#define FGMENU_MANY   -1
#define FGMENU_MANYTRANSP   -1
#define OPTOKEN_FILLPROFILE   _T("FillProfile")
 The operation class that is responsible for changing fill profiles.
#define OPTOKEN_TRANSPFILLPROFILE   _T("TranspFillProfile")
 The operation class that is responsible for changing transp fill profiles.

Enumerations

enum  FillGeometry {
  FGMENU_FLAT, FGMENU_LINEAR, FGMENU_CIRCULAR, FGMENU_RADIAL,
  FGMENU_CONICAL, FGMENU_SQUARE, FGMENU_THREECOL, FGMENU_FOURCOL,
  FGMENU_BITMAP, FGMENU_FRACTAL, FGMENU_NOISE
}
enum  TransparencyGeometry {
  FGMENU_NOTRANSP, FGMENU_FLATTRANSP, FGMENU_LINEARTRANSP, FGMENU_CIRCULARTRANSP,
  FGMENU_RADIALTRANSP, FGMENU_CONICALTRANSP, FGMENU_SQUARETRANSP, FGMENU_THREECOLTRANSP,
  FGMENU_FOURCOLTRANSP, FGMENU_BITMAPTRANSP, FGMENU_FRACTALTRANSP, FGMENU_NOISETRANSP
}
enum  {
  FTMENU_REFLECT, FTMENU_SUB, FTMENU_ADD, FTMENU_CON,
  FTMENU_SAT, FTMENU_DARK, FTMENU_LIGHT, FTMENU_BRI,
  FTMENU_LUM, FTMENU_HUE, FTMENU_MAX
}
enum  { FMMENU_SIMPLE, FMMENU_REPEATING }
enum  { FEMENU_FADE, FEMENU_RAINBOW, FEMENU_ALTRAINBOW }
enum  { FTMENU_SIMPLE, FTMENU_REPEAT, FTMENU_REPEATINV }
enum  FillMode {
  FLATFILL, GRADFILL, GRADREPEATFILL, BITMAPFILL,
  FRACTALFILL, NOISEFILL, MANYFILLS, NOFILL
}

Functions

double GetDoubleGrain (INT32)
INT32 GetGrainPos (double)
INT32 GetGrainPosMax ()
double GetDoubleScale (INT32)
INT32 GetScalePos (double)
INT32 GetScalePosMax ()


Define Documentation

#define FGMENU_MANY   -1
 

Definition at line 142 of file filltool.h.

#define FGMENU_MANYTRANSP   -1
 

Definition at line 160 of file filltool.h.

#define OPTOKEN_FILLPROFILE   _T("FillProfile")
 

The operation class that is responsible for changing fill profiles.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/2/2000
See also:
-

Definition at line 833 of file filltool.h.

#define OPTOKEN_TRANSPFILLPROFILE   _T("TranspFillProfile")
 

The operation class that is responsible for changing transp fill profiles.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/2/2000
See also:
-

Definition at line 918 of file filltool.h.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
FTMENU_REFLECT 
FTMENU_SUB 
FTMENU_ADD 
FTMENU_CON 
FTMENU_SAT 
FTMENU_DARK 
FTMENU_LIGHT 
FTMENU_BRI 
FTMENU_LUM 
FTMENU_HUE 
FTMENU_MAX 

Definition at line 162 of file filltool.h.

00163 {
00164     FTMENU_REFLECT,
00165     FTMENU_SUB,
00166     FTMENU_ADD,
00167     FTMENU_CON,
00168     FTMENU_SAT,
00169     FTMENU_DARK,
00170     FTMENU_LIGHT,
00171     FTMENU_BRI,
00172     FTMENU_LUM,
00173     FTMENU_HUE,
00174 // <-------------Include your next menu item here!!!!
00175     FTMENU_MAX
00176 };

anonymous enum
 

Enumerator:
FMMENU_SIMPLE 
FMMENU_REPEATING 

Definition at line 178 of file filltool.h.

00179 {
00180     FMMENU_SIMPLE,
00181     FMMENU_REPEATING
00182 };

anonymous enum
 

Enumerator:
FEMENU_FADE 
FEMENU_RAINBOW 
FEMENU_ALTRAINBOW 

Definition at line 184 of file filltool.h.

00185 {
00186     FEMENU_FADE,
00187     FEMENU_RAINBOW,
00188     FEMENU_ALTRAINBOW
00189 };

anonymous enum
 

Enumerator:
FTMENU_SIMPLE 
FTMENU_REPEAT 
FTMENU_REPEATINV 

Definition at line 191 of file filltool.h.

00192 {
00193     FTMENU_SIMPLE,
00194     FTMENU_REPEAT,
00195     FTMENU_REPEATINV
00196 };

enum FillGeometry
 

Enumerator:
FGMENU_FLAT 
FGMENU_LINEAR 
FGMENU_CIRCULAR 
FGMENU_RADIAL 
FGMENU_CONICAL 
FGMENU_SQUARE 
FGMENU_THREECOL 
FGMENU_FOURCOL 
FGMENU_BITMAP 
FGMENU_FRACTAL 
FGMENU_NOISE 

Definition at line 127 of file filltool.h.

00128 {
00129     FGMENU_FLAT,
00130     FGMENU_LINEAR,
00131     FGMENU_CIRCULAR,
00132     FGMENU_RADIAL,
00133     FGMENU_CONICAL,
00134     FGMENU_SQUARE,
00135     FGMENU_THREECOL,
00136     FGMENU_FOURCOL,
00137     FGMENU_BITMAP,
00138     FGMENU_FRACTAL,
00139     FGMENU_NOISE
00140 };

enum FillMode
 

Enumerator:
FLATFILL 
GRADFILL 
GRADREPEATFILL 
BITMAPFILL 
FRACTALFILL 
NOISEFILL 
MANYFILLS 
NOFILL 

Definition at line 198 of file filltool.h.

00199 {
00200     FLATFILL,
00201     GRADFILL,
00202     GRADREPEATFILL,
00203     BITMAPFILL,
00204     FRACTALFILL,
00205     NOISEFILL,
00206     MANYFILLS,
00207     NOFILL
00208 } FillMode; 

enum TransparencyGeometry
 

Enumerator:
FGMENU_NOTRANSP 
FGMENU_FLATTRANSP 
FGMENU_LINEARTRANSP 
FGMENU_CIRCULARTRANSP 
FGMENU_RADIALTRANSP 
FGMENU_CONICALTRANSP 
FGMENU_SQUARETRANSP 
FGMENU_THREECOLTRANSP 
FGMENU_FOURCOLTRANSP 
FGMENU_BITMAPTRANSP 
FGMENU_FRACTALTRANSP 
FGMENU_NOISETRANSP 

Definition at line 144 of file filltool.h.


Function Documentation

double GetDoubleGrain INT32   ) 
 

Definition at line 9937 of file filltool.cpp.

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

double GetDoubleScale INT32   ) 
 

Definition at line 9952 of file filltool.cpp.

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

INT32 GetGrainPos double   ) 
 

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   ) 
 

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 }


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