karbon

VSelection Class Reference

#include <vselection.h>

Inheritance diagram for VSelection:

VObject VVisitor List of all members.

Detailed Description

VSelection manages a set of selected vobjects.

Definition at line 61 of file vselection.h.


Public Member Functions

 VSelection (VObject *parent=0L)
 VSelection (const VSelection &selection)
virtual ~VSelection ()
void draw (VPainter *painter, double zoomFactor) const
virtual const KoRect & boundingBox () const
virtual VSelectionclone () const
virtual void accept (VVisitor &visitor)
void append ()
void append (VObject *object)
void append (const VObjectList &objects)
bool append (const KoRect &rect, bool selectObjects=true, bool exclusive=true)
void take (VObject &object)
bool take (const KoRect &rect, bool selectObjects=true, bool exclusive=true)
void clear ()
const VObjectList & objects () const
QPtrList< VSegmentgetSegments (const KoRect &rect)
void selectNodes (bool select=true)
VHandleNode handleNode (const KoPoint &point) const
void showHandle (bool handle=true)
virtual void setSelectObjects (bool selectObjects=true)

Static Public Member Functions

static void setHandleSize (uint size)
static uint handleSize ()

Constructor & Destructor Documentation

VSelection::VSelection VObject parent = 0L  ) 
 

Constructs a vselection with the specified parent.

Parameters:
parent the selection's parent

Definition at line 35 of file vselection.cc.

VSelection::VSelection const VSelection selection  ) 
 

Constructs a vselection by copying the specified selection.

Parameters:
selection the selection to copy from

Definition at line 45 of file vselection.cc.

VSelection::~VSelection  )  [virtual]
 

Destroys the selection.

Definition at line 58 of file vselection.cc.


Member Function Documentation

void VSelection::accept VVisitor visitor  )  [virtual]
 

Accept a VVisitor.

Reimplemented from VObject.

Definition at line 71 of file vselection.cc.

bool VSelection::append const KoRect &  rect,
bool  selectObjects = true,
bool  exclusive = true
 

Adds all objects ( selectObjects == true ) or all nodes ( selectObjects == false ) within rect to the selection.

Definition at line 154 of file vselection.cc.

void VSelection::append const VObjectList &  objects  ) 
 

Adds all objects of the specified object list to the selection.

Parameters:
objects the list of objects to add

Definition at line 146 of file vselection.cc.

void VSelection::append VObject object  ) 
 

Adds an object to the selection.

Definition at line 133 of file vselection.cc.

void VSelection::append  ) 
 

Adds all objects to the selection.

Definition at line 121 of file vselection.cc.

const KoRect & VSelection::boundingBox  )  const [virtual]
 

Calculates the tightest bounding box around the object.

Returns:
the bounding box.

Reimplemented from VObject.

Definition at line 273 of file vselection.cc.

void VSelection::clear  ) 
 

Removes the references to all objects, not the objects themselves.

Definition at line 195 of file vselection.cc.

VSelection * VSelection::clone  )  const [virtual]
 

Create an exact copy of this object.

Returns:
the exact object copy

Implements VObject.

Definition at line 65 of file vselection.cc.

void VSelection::draw VPainter painter,
double  zoomFactor
const
 

Paint selected objects outline and handle.

Definition at line 213 of file vselection.cc.

QPtrList< VSegment > VSelection::getSegments const KoRect &  rect  ) 
 

Returns a list of segments that have at least one control point inside the specified rect.

Parameters:
rect the selection rect
Returns:
the list of segments

Definition at line 306 of file vselection.cc.

VHandleNode VSelection::handleNode const KoPoint &  point  )  const
 

Returns the handle node id, the KoPoint is inside.

Parameters:
point the selection point
Returns:
the handle the point is inside or node_none if point is not inside any node

Definition at line 294 of file vselection.cc.

const VObjectList& VSelection::objects  )  const [inline]
 

Read only access to the selected objects.

Definition at line 136 of file vselection.h.

void VSelection::selectNodes bool  select = true  ) 
 

Selects or deselects all nodes.

Parameters:
select controls if nodes are selected or deselected

Definition at line 318 of file vselection.cc.

virtual void VSelection::setSelectObjects bool  selectObjects = true  )  [inline, virtual]
 

Toggles selection of objects/nodes.

Parameters:
selectObjects controls if objects or nodes are selected

Definition at line 173 of file vselection.h.

void VSelection::showHandle bool  handle = true  )  [inline]
 

Toggle selection handles on/off.

Parameters:
handle controls if handle are shown or not

Definition at line 166 of file vselection.h.

bool VSelection::take const KoRect &  rect,
bool  selectObjects = true,
bool  exclusive = true
 

Removes all objects ( selectObjects == true ) or all nodes ( selectObjects == false ) within rect from the selection.

Definition at line 86 of file vselection.cc.

void VSelection::take VObject object  ) 
 

Removes the reference to the object, not the object itself.

Definition at line 77 of file vselection.cc.


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