karbon

VComputeBoundingBox Class Reference

#include <vcomputeboundingbox.h>

Inheritance diagram for VComputeBoundingBox:
VVisitor

Public Member Functions

 VComputeBoundingBox (bool omitHidden=false)
virtual void visitVDocument (VDocument &document)
virtual void visitVLayer (VLayer &layer)
virtual void visitVGroup (VGroup &group)
virtual void visitVPath (VPath &composite)
virtual void visitVText (VText &text)
virtual void visitVImage (VImage &img)
const KoRect & boundingRect () const
Public Member Functions inherited from VVisitor
 VVisitor ()
virtual bool visit (VObject &object)
virtual void visitVObject (VObject &object)
virtual void visitVSubpath (VSubpath &path)
virtual void visitVSelection (VSelection &selection)
bool success () const

Additional Inherited Members

Protected Member Functions inherited from VVisitor
virtual ~VVisitor ()
void setSuccess (bool success=true)

Detailed Description

This visitor visits objects and calculates the combined bounding box of the objects and their child objects.

Definition at line 37 of file vcomputeboundingbox.h.

Constructor & Destructor Documentation

◆ VComputeBoundingBox()

VComputeBoundingBox::VComputeBoundingBox ( bool omitHidden = false)

Definition at line 29 of file vcomputeboundingbox.cpp.

Member Function Documentation

◆ boundingRect()

const KoRect & VComputeBoundingBox::boundingRect ( ) const

Definition at line 107 of file vcomputeboundingbox.cpp.

◆ visitVDocument()

void VComputeBoundingBox::visitVDocument ( VDocument & document)
virtual

Visit method for a VDocument.

Pass a document 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 35 of file vcomputeboundingbox.cpp.

◆ visitVGroup()

void VComputeBoundingBox::visitVGroup ( VGroup & group)
virtual

Visit method for a VGroup.

Pass a group of objects 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 67 of file vcomputeboundingbox.cpp.

◆ visitVImage()

void VComputeBoundingBox::visitVImage ( VImage & img)
virtual

Visit method for a VImage.

Pass an image 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 95 of file vcomputeboundingbox.cpp.

◆ visitVLayer()

void VComputeBoundingBox::visitVLayer ( VLayer & layer)
virtual

Visit method for a VLayer.

Pass a layer 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 51 of file vcomputeboundingbox.cpp.

◆ visitVPath()

void VComputeBoundingBox::visitVPath ( VPath & composite)
virtual

Visit method for a VPath.

Pass a composite 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 83 of file vcomputeboundingbox.cpp.

◆ visitVText()

void VComputeBoundingBox::visitVText ( VText & text)
virtual

Visit method for a VText.

Pass some text 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 89 of file vcomputeboundingbox.cpp.


The documentation for this class was generated from the following files: