summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpegroupbbox.h
diff options
context:
space:
mode:
authorBastien Bouclet <bastien.bouclet@gmail.com>2008-05-17 10:47:58 +0000
committerbgk <bgk@users.sourceforge.net>2008-05-17 10:47:58 +0000
commit757daf2667d1ec00a67477597795cb8a3497fce1 (patch)
tree9f18a9740be39aea72a42d03f69c98700dbe8e0c /src/live_effects/lpegroupbbox.h
parentWarning cleanup (diff)
downloadinkscape-757daf2667d1ec00a67477597795cb8a3497fce1.tar.gz
inkscape-757daf2667d1ec00a67477597795cb8a3497fce1.zip
Fix LPE for groups bounding box calculation by using the SPItem->getBounds method.
Some preliminary work for LPE stacking. (bzr r5683)
Diffstat (limited to 'src/live_effects/lpegroupbbox.h')
-rw-r--r--src/live_effects/lpegroupbbox.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/live_effects/lpegroupbbox.h b/src/live_effects/lpegroupbbox.h
index bf1fa0902..57577d20f 100644
--- a/src/live_effects/lpegroupbbox.h
+++ b/src/live_effects/lpegroupbbox.h
@@ -8,35 +8,21 @@
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
-#include "live_effects/effect.h"
-#include "live_effects/parameter/path.h"
-#include "live_effects/parameter/enum.h"
-#include "live_effects/parameter/bool.h"
+#include "sp-lpe-item.h"
-#include <2geom/sbasis.h>
-#include <2geom/sbasis-geometric.h>
-#include <2geom/bezier-to-sbasis.h>
-#include <2geom/sbasis-to-bezier.h>
-#include <2geom/d2.h>
-#include <2geom/piecewise.h>
+#include <2geom/interval.h>
namespace Inkscape {
namespace LivePathEffect {
class GroupBBoxEffect {
protected:
-//if we need information concerning the group Bounding box and coordinates of each subshapes.
+ // Bounding box of the item the path effect is applied on
Geom::Interval boundingbox_X;
Geom::Interval boundingbox_Y;
-//This set boundingbox_X and boundingbox_Y
- void original_bbox(SPLPEItem *lpeitem);
-
-//Here is a recursive function to calculate the bbox of a group
- void recursive_original_bbox(SPGroup *group, Geom::Piecewise<Geom::D2<Geom::SBasis> > & pwd2, std::vector<Geom::Path> & temppath);
-
-
-
+ //This sets boundingbox_X and boundingbox_Y
+ void original_bbox(SPLPEItem *lpeitem, bool absolute = false);
};
}; //namespace LivePathEffect