PlacementCmd Class Reference

#include <draw.h>

Inheritance diagram for PlacementCmd:

SlowUndoSelectCmd Cmd CircleCmd EllipseCmd LineCmd RectCmd List of all members.

Public Member Functions

virtual std::string args ()
 Command export to text string. Needed for macro saving.

Protected Member Functions

 PlacementCmd (FrameBuffer *pFB, Rect &placement, DrawContext &dc, bool bBack)
 PlacementCmd (FrameBuffer *pFB, const std::string &args)
void impressBrush (Point pos)

Protected Attributes

int _iBrushWidth
 Round brush radius.
Pixel _brushColor
 Brush color.
Rect _place
 Placement of derived command.

Detailed Description

Abstract class PlacementCmd. Base for LineCmd, RectCmd, CircleCmd, EllipseCmd. Design pattern command.

Definition at line 123 of file draw.h.


Constructor & Destructor Documentation

PlacementCmd::PlacementCmd ( FrameBuffer pFB,
Rect placement,
DrawContext dc,
bool  bBack 
) [protected]

Initialize base.

Parameters:
pFB Pointer to framebuffer to work with.
placement Command placement.
dc Current draw context.
bBack Give true to use background brush.

PlacementCmd::PlacementCmd ( FrameBuffer pFB,
const std::string &  args 
) [protected]

Import placement command.

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


Member Function Documentation

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

Command export to text string. Needed for macro saving.

Implements SlowUndoSelectCmd.

void PlacementCmd::impressBrush ( Point  pos  )  [protected]

Impress round brush at selected positon.

Parameters:
pos Position of up-left corner of brush.


Member Data Documentation

int PlacementCmd::_iBrushWidth [protected]

Round brush radius.

Definition at line 153 of file draw.h.

Pixel PlacementCmd::_brushColor [protected]

Brush color.

Definition at line 154 of file draw.h.

Rect PlacementCmd::_place [protected]

Placement of derived command.

Definition at line 155 of file draw.h.


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