/inkscape/src/live_effects/ |
H A D | lpegroupbbox.cpp | 19 * It's not possible to run LPEs on items without their original-d having a bbox. 21 * @param absolute Determines whether the bbox should be calculated of the untransformed lpeitem (\c absolute = \c false) 36 Geom::OptRect bbox = lpeitem->geometricBounds(transform); local 37 if (bbox) { 38 boundingbox_X = (*bbox)[Geom::X]; 39 boundingbox_Y = (*bbox)[Geom::Y];
|
H A D | lpe-bounding-box.cpp | 42 Geom::OptRect bbox = visual_bounds.get_value() ? item->visualBounds() : item->geometricBounds(); local 43 Geom::Path p(Geom::Point(bbox->left(), bbox->top())); 44 p.appendNew<Geom::LineSegment>(Geom::Point(bbox->right(), bbox->top())); 45 p.appendNew<Geom::LineSegment>(Geom::Point(bbox->right(), bbox->bottom())); 46 p.appendNew<Geom::LineSegment>(Geom::Point(bbox->left(), bbox->bottom())); 47 p.appendNew<Geom::LineSegment>(Geom::Point(bbox [all...] |
/inkscape/src/libnrtype/ |
H A D | font-glyph.h | 10 double bbox[4]; // bbox of the path (and the artbpath), not the bbox of the glyph member in struct:font_glyph
|
/inkscape/share/extensions/ |
H A D | rubberstretch.py | 43 x0= (self.bbox[0]+self.bbox[1])/2 44 y0=-(self.bbox[2]+self.bbox[3])/2 45 w,h=(self.bbox[1]-self.bbox[0])/2,(self.bbox[3]-self.bbox[2])/2
|
H A D | dimension.py | 88 x1 = self.bbox[0] - xlat[0] * self.xoffset 89 x2 = self.bbox[1] 97 y1 = self.bbox[2] - xlat[1] * self.yoffset 98 y2 = self.bbox[3] 112 self.bbox = computeBBox(self.selected.values()) 128 self.bbox = (q['x'], q['x']+q['width'], q['y'], q['y']+q['height']) 132 testing_the_water = self.bbox[0] 147 line = self.dimHLine(self.bbox[2], [0, 1]) 153 line = self.dimVLine(self.bbox[0], [0, 2]) 157 line = self.dimVLine(self.bbox[ [all...] |
H A D | pathalongpath.py | 225 bbox=simpletransform.computeBBox(self.patterns.values()) 228 #flipxy(bbox)... 229 bbox=(-bbox[3],-bbox[2],-bbox[1],-bbox[0]) 231 width=bbox[1]-bbox[0] 255 xoffset=self.skelcomp[0][0]-bbox[ [all...] |
H A D | pathscatter.py | 233 bbox=pathmodifier.computeBBox([self.patternNode]) 234 mat=[[1,0,-(bbox[0]+bbox[1])/2],[0,1,-(bbox[2]+bbox[3])/2]] 236 bbox=[-bbox[3],-bbox[2],bbox[0],bbox[ [all...] |
H A D | voronoi2svg.py | 106 def clipEdge(self,vertices, lines, edge, bbox): 109 bbc.append((bbox[0],bbox[2])) 110 bbc.append((bbox[1],bbox[2])) 111 bbc.append((bbox[1],bbox[3])) 112 bbc.append((bbox[0],bbox[3])) 252 bbox [all...] |
/inkscape/src/extension/ |
H A D | print.cpp | 80 Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) 82 return imp->fill (this, pathv, ctm, style, pbox, dbox, bbox); 87 Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) 89 return imp->stroke (this, pathv, ctm, style, pbox, dbox, bbox); 79 fill(Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) argument 86 stroke(Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) argument
|
H A D | print.h | 56 Geom::OptRect const &bbox); 62 Geom::OptRect const &bbox);
|
/inkscape/src/ |
H A D | sp-paint-server.h | 46 virtual Inkscape::DrawingPattern *show(Inkscape::Drawing &drawing, unsigned int key, Geom::OptRect bbox); // TODO check passing bbox by value. Looks suspicious. 48 virtual void setBBox(unsigned int key, Geom::OptRect const &bbox); 50 virtual cairo_pattern_t* pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity);
|
H A D | sp-symbol.cpp | 136 Geom::OptRect SPSymbol::bbox(Geom::Affine const &transform, SPItem::BBoxType type) const { function in class:SPSymbol 137 Geom::OptRect bbox; local 143 bbox = SPGroup::bbox(a, type); 146 return bbox;
|
H A D | sp-clippath.cpp | 37 Geom::OptRect bbox; member in struct:SPClipPathView 152 if (this->clipPathUnits == SP_CONTENT_UNITS_OBJECTBOUNDINGBOX && v->bbox) { 153 Geom::Affine t = Geom::Scale(v->bbox->dimensions()); 154 t.setTranslation(v->bbox->min()); 214 if (clipPathUnits == SP_CONTENT_UNITS_OBJECTBOUNDINGBOX && display->bbox) { 215 Geom::Affine t = Geom::Scale(display->bbox->dimensions()); 216 t.setTranslation(display->bbox->min()); 243 void SPClipPath::setBBox(unsigned int key, Geom::OptRect const &bbox) { argument 246 v->bbox = bbox; 253 Geom::OptRect bbox; local [all...] |
H A D | sp-hatch.cpp | 117 Geom::OptInterval extents = _calculateStripExtents(iter->bbox); 299 Geom::OptInterval strip_extents = _calculateStripExtents(view_iter->bbox); 370 Geom::OptInterval extents = _calculateStripExtents(iter->bbox); 508 Inkscape::DrawingPattern *SPHatch::show(Inkscape::Drawing &drawing, unsigned int key, Geom::OptRect bbox) argument 513 _display.front().bbox = bbox; 517 Geom::OptInterval extents = _calculateStripExtents(bbox); 602 Geom::OptInterval extents = _calculateStripExtents(view.bbox); 611 if (view.bbox && (hatchUnits() == UNITS_OBJECTBOUNDINGBOX)) { 612 tile_x *= view.bbox 690 setBBox(unsigned int key, Geom::OptRect const &bbox) argument [all...] |
H A D | sp-mesh.cpp | 124 Geom::OptRect const &bbox, 127 Geom::OptRect const & /*bbox*/, 136 std::cout << "sp_mesh_create_pattern: (" << bbox->x0 << "," << bbox->y0 << ") (" << bbox->x1 << "," << bbox->y1 << ") " << opacity << std::endl; 230 Geom::Affine bbox2user(bbox->width(), 0, 0, bbox->height(), bbox->left(), bbox 122 pattern_new(cairo_t * , Geom::OptRect const &bbox, double opacity ) argument [all...] |
H A D | sp-mask.cpp | 34 Geom::OptRect bbox; member in struct:SPMaskView 158 if (this->maskContentUnits == SP_CONTENT_UNITS_OBJECTBOUNDINGBOX && v->bbox) { 159 Geom::Affine t = Geom::Scale(v->bbox->dimensions()); 160 t.setTranslation(v->bbox->min()); 247 if (this->maskContentUnits == SP_CONTENT_UNITS_OBJECTBOUNDINGBOX && this->display->bbox) { 248 Geom::Affine t = Geom::Scale(this->display->bbox->dimensions()); 249 t.setTranslation(this->display->bbox->min()); 277 void SPMask::sp_mask_set_bbox(unsigned int key, Geom::OptRect const &bbox) { argument 280 v->bbox = bbox; [all...] |
H A D | print.h | 39 Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox); 41 Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox);
|
H A D | sp-hatch.h | 86 Inkscape::DrawingPattern *show(Inkscape::Drawing &drawing, unsigned int key, Geom::OptRect bbox); 88 virtual cairo_pattern_t* pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity); 92 void setBBox(unsigned int key, Geom::OptRect const &bbox); 111 Geom::OptRect bbox; member in class:SPHatch::View 124 Geom::OptInterval _calculateStripExtents(Geom::OptRect const &bbox) const;
|
H A D | sp-radial-gradient.cpp | 144 cairo_pattern_t* SPRadialGradient::pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity) { argument 166 if (this->getUnits() == SP_GRADIENT_UNITS_OBJECTBOUNDINGBOX && bbox) { 167 Geom::Affine bbox2user(bbox->width(), 0, 0, bbox->height(), bbox->left(), bbox->top()); 203 sp_gradient_pattern_common_setup(cp, this, bbox, opacity);
|
/inkscape/src/extension/internal/bitmap/ |
H A D | crop.cpp | 35 // Scale bbox 41 // Translate proportionaly to the image/bbox ratio 42 Geom::OptRect bbox(item->desktopGeometricBounds()); 43 //g_warning("bbox. W:%f, H:%f, X:%f, Y:%f", bbox->dimensions()[Geom::X], bbox->dimensions()[Geom::Y], bbox->min()[Geom::X], bbox->min()[Geom::Y]); 46 translate = Geom::Translate(((_left - _right) / 2.0) * (bbox->dimensions()[Geom::X] / (double) image->columns()), 47 ((_bottom - _top) / 2.0) * (bbox [all...] |
/inkscape/src/display/ |
H A D | nr-filter-offset.cpp | 49 Geom::OptRect bbox = slot.get_units().get_item_bbox(); local 50 if( bbox ) { 51 x *= (*bbox).width(); 52 y *= (*bbox).height();
|
H A D | nr-filter.cpp | 184 void Filter::area_enlarge(Geom::IntRect &bbox, Inkscape::DrawingItem const *item) const { argument 186 if (_primitive[i]) _primitive[i]->area_enlarge(bbox, item->ctm()); 215 bbox.x0 -= (int)pixels_per_block; 216 bbox.x1 += (int)pixels_per_block; 217 bbox.y0 -= (int)pixels_per_block; 218 bbox.y1 += (int)pixels_per_block; 222 Geom::OptRect Filter::filter_effect_area(Geom::OptRect const &bbox) argument 228 double len_x = bbox ? bbox->width() : 0; 229 double len_y = bbox [all...] |
/inkscape/src/ui/dialog/ |
H A D | transformation.cpp | 585 Geom::OptRect bbox = selection->preferredBounds(); local 586 if (bbox) { 587 double x = bbox->min()[Geom::X]; 588 double y = bbox->min()[Geom::Y]; 606 Geom::OptRect bbox = selection->preferredBounds(); local 607 if (bbox) { 608 double w = bbox->dimensions()[Geom::X]; 609 double h = bbox->dimensions()[Geom::Y]; 634 Geom::OptRect bbox = selection->preferredBounds(); local 635 if (bbox) { 728 Geom::OptRect bbox = selection->preferredBounds(); local 748 Geom::OptRect bbox = item->desktopPreferredBounds(); local 773 Geom::OptRect bbox = item->desktopPreferredBounds(); local 792 Geom::OptRect bbox = selection->preferredBounds(); local 925 Geom::OptRect bbox = item->desktopPreferredBounds(); local 938 Geom::OptRect bbox = selection->preferredBounds(); local 1040 Geom::OptRect bbox = selection->preferredBounds(); local 1189 Geom::OptRect bbox = selection->preferredBounds(); local [all...] |
/inkscape/src/ui/widget/ |
H A D | object-composite-settings.cpp | 116 Geom::OptRect bbox = _subject->getBounds(SPItem::GEOMETRIC_BBOX); local 118 if (bbox) { 119 double perimeter = bbox->dimensions()[Geom::X] + bbox->dimensions()[Geom::Y]; // fixme: this is only half the perimeter, is that correct? 265 Geom::OptRect bbox = _subject->getBounds(SPItem::GEOMETRIC_BBOX); local 266 if (bbox) { 267 double perimeter = bbox->dimensions()[Geom::X] + bbox->dimensions()[Geom::Y]; // fixme: this is only half the perimeter, is that correct?
|
/inkscape/src/helper/ |
H A D | geom.cpp | 31 /* Fast bbox calculation */ 34 cubic_bbox (Geom::Coord x000, Geom::Coord y000, Geom::Coord x001, Geom::Coord y001, Geom::Coord x011, Geom::Coord y011, Geom::Coord x111, Geom::Coord y111, Geom::Rect &bbox) argument 38 bbox[0].expandTo(x111); 39 bbox[1].expandTo(y111); 45 bool containsXrange = bbox[0].contains(x001) && bbox[0].contains(x011); 46 bool containsYrange = bbox[1].contains(y001) && bbox[1].contains(y011); 81 bbox[0].expandTo(xttt); 95 bbox[ 259 geom_cubic_bbox_wind_distance(Geom::Coord x000, Geom::Coord y000, Geom::Coord x001, Geom::Coord y001, Geom::Coord x011, Geom::Coord y011, Geom::Coord x111, Geom::Coord y111, Geom::Point const &pt, Geom::Rect *bbox, int *wind, Geom::Coord *best, Geom::Coord tolerance) argument 348 geom_curve_bbox_wind_distance(Geom::Curve const & c, Geom::Affine const &m, Geom::Point const &pt, Geom::Rect *bbox, int *wind, Geom::Coord *dist, Geom::Coord tolerance, Geom::Rect const *viewbox, Geom::Point &p0) argument 415 pathv_matrix_point_bbox_wind_distance(Geom::PathVector const & pathv, Geom::Affine const &m, Geom::Point const &pt, Geom::Rect *bbox, int *wind, Geom::Coord *dist, Geom::Coord tolerance, Geom::Rect const *viewbox) argument [all...] |