karbon

VBooleanCmd Class Reference

Inheritance diagram for VBooleanCmd:

VCommand VVisitor List of all members.

Detailed Description

Definition at line 34 of file vbooleancmd.h.


Public Types

enum  VBooleanType { intersect, shape_union, shape_xor, substract }

Public Member Functions

 VBooleanCmd (VDocument *doc, VBooleanType type=intersect)
virtual ~VBooleanCmd ()
virtual void execute ()
virtual void unexecute ()
virtual bool visit (VObject &)
bool visit (VObject &object1, VObject &object2)
virtual void visitVSubpath (VSubpath &path)

Protected Types

typedef QValueList< double > VParamList

Protected Member Functions

void recursiveSubdivision (const VSegment &segment1, double t0_1, double t1_1, const VSegment &segment2, double t0_2, double t1_2, VParamList &params1, VParamList &params2)

Protected Attributes

VSelectionm_selection
VBooleanType m_type
VSubpathm_path1
VSubpathm_path2

Member Function Documentation

void VBooleanCmd::execute (  )  [virtual]

Executes the command.

All the changes to the document are done here. All commands have to implement this function.

Implements VCommand.

Definition at line 46 of file vbooleancmd.cc.

void VBooleanCmd::unexecute (  )  [virtual]

Unexecutes the command.

All changes to the document have to be undone here.

Reimplemented from VCommand.

Definition at line 59 of file vbooleancmd.cc.

virtual bool VBooleanCmd::visit ( VObject  )  [inline, virtual]

General visit method.

Pass an object to this function. This is a virtual function so you need to implement it in the subclass if you want to use it. Return the success value.

Reimplemented from VVisitor.

Definition at line 53 of file vbooleancmd.h.

void VBooleanCmd::visitVSubpath ( VSubpath path  )  [virtual]

Visit method for a VSubpath.

Pass a path to this function. This is a virtual function so you need to implement it in the subclass if you want to use it.

Reimplemented from VVisitor.

Definition at line 75 of file vbooleancmd.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys