BrushCmd Class Reference

#include <draw.h>

Inheritance diagram for BrushCmd:

SlowUndoSelectCmd Cmd List of all members.

Public Member Functions

 BrushCmd (FrameBuffer *pFB, const DrawContext &dc, bool bBack=false)
void add (Point p)
virtual void exec ()
 Command execution. This should save undo informations.
virtual std::string name ()
 Command identification. This will appear in config file.
virtual std::string args ()
 Command export to text string. Needed for macro saving.
 BrushCmd (FrameBuffer *pFB, const std::string &args)

Static Public Attributes

static const char *const szCmdName
 Command id string.

Detailed Description

Brush command class. This command is used for TOOL_BRUSH and TOOL_RUBBER. Design pattern command.

Definition at line 83 of file draw.h.


Constructor & Destructor Documentation

BrushCmd::BrushCmd ( FrameBuffer pFB,
const DrawContext dc,
bool  bBack = false 
)

Construct brush command

Parameters:
pFB Pointer to frame buffer to work with.
dc Current draw context.
bBack Give true to use background brush. (TOOL_RUBBER)

BrushCmd::BrushCmd ( FrameBuffer pFB,
const std::string &  args 
)

Import brush command.

Parameters:
pFB Pointer to frame buffer to work with.
args Data to import -- previously returned by BrushCmd::args() method.


Member Function Documentation

void BrushCmd::add ( Point  p  ) 

Add pixel position to command

Parameters:
p Pixel position to add.

virtual void BrushCmd::exec (  )  [virtual]

Command execution. This should save undo informations.

Reimplemented from SlowUndoSelectCmd.

virtual std::string BrushCmd::name (  )  [inline, virtual]

Command identification. This will appear in config file.

Implements SlowUndoSelectCmd.

Definition at line 100 of file draw.h.

References szCmdName.

virtual std::string BrushCmd::args (  )  [virtual]

Command export to text string. Needed for macro saving.

Implements SlowUndoSelectCmd.


Member Data Documentation

const char* const BrushCmd::szCmdName [static]

Command id string.

Definition at line 110 of file draw.h.

Referenced by name().


The documentation for this class was generated from the following file:
Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by  doxygen 1.5.2