/inkscape/share/extensions/ |
H A D | whirl.py | 29 self.OptionParser.add_option("-r", "--rotation", 31 dest="rotation", default=True, 32 help="direction of rotation") 36 rotation = -1 37 if self.options.rotation == True: 38 rotation = 1 50 a = rotation * dist * whirl
|
H A D | spirograph.py | 41 self.OptionParser.add_option("-a", "--rotation", 43 dest="rotation", default=0.0, 72 rotation = - math.pi * self.options.rotation / 180; 86 x = a * math.cos(theta + rotation) + \ 87 self.options.penr * math.cos(ratio * theta + rotation) * flip + \ 89 y = a * math.sin(theta + rotation) - \ 90 self.options.penr * math.sin(ratio * theta + rotation) + \ 93 dx = (-a * math.sin(theta + rotation) - \ 94 ratio * self.options.penr * math.sin(ratio * theta + rotation) * fli [all...] |
H A D | wireframe_sphere.py | 103 self.OptionParser.add_option("--rotation", 164 #calculate the rotation of the ellipse to get it to pass through the pole (in degrees) 165 rotation = atan(height/width)*(180.0/pi) 166 transform = "rotate("+str(rotation)+')' #generate the transform string 167 #the rotation will be applied about the group centre (the centre of the sphere)
|
/inkscape/src/ |
H A D | sp-item-transform.h | 8 void sp_item_rotate_rel(SPItem *item, Geom::Rotate const &rotation);
|
H A D | sp-item-transform.cpp | 23 void sp_item_rotate_rel(SPItem *item, Geom::Rotate const &rotation) argument 27 Geom::Affine affine = Geom::Affine(s).inverse() * Geom::Affine(rotation) * Geom::Affine(s);
|
H A D | text-editing.cpp | 130 double height, rotation; local 131 layout->queryCursorShape(position, p0, height, rotation); 132 p1 = Geom::Point(p0[Geom::X] + height * sin(rotation), p0[Geom::Y] - height * cos(rotation));
|
/inkscape/src/libnrtype/ |
H A D | Layout-TNG-OutIter.cpp | 163 double rotation; local 165 Geom::Rect box = characterBoundingBox(it, &rotation); 166 // todo: rotation 204 Geom::OptRect Layout::glyphBoundingBox(iterator const &it, double *rotation) const 206 if (rotation) *rotation = _glyphs[it._glyph_index].rotation; 298 Geom::Rect Layout::characterBoundingBox(iterator const &it, double *rotation) const 325 if (rotation) 326 *rotation [all...] |
H A D | Layout-TNG-Output.cpp | 125 double rotation = _glyphs[glyph_index].rotation; local 129 rotation += M_PI/2.0; 131 double sin_rotation = sin(rotation); 132 double cos_rotation = cos(rotation); 302 glyph_matrix = Geom::Scale(1.0, -1.0) * (Geom::Affine)Geom::Rotate(_glyphs[glyph_index].rotation); 595 j, _glyphs[j].glyph, _glyphs[j].x, _glyphs[j].y, _glyphs[j].rotation, _glyphs[j].width, _glyphs[j].in_character); 635 snprintf(line, sizeof(line), " %u: %d (%f,%f) rot=%f cx=%f char=%d\n", glyph_index, _glyphs[glyph_index].glyph, _glyphs[glyph_index].x, _glyphs[glyph_index].y, _glyphs[glyph_index].rotation, _glyphs[glyph_index].width, _glyphs[glyph_index].in_character); 675 _empty_cursor_shape.rotation = atan2(-tangent[Geom::X], tangent[Geom::Y]); 677 _empty_cursor_shape.rotation 756 double rotation = atan2(-tangent[Geom::X], tangent[Geom::Y]); local 763 double rotation = atan2(tangent[Geom::Y], tangent[Geom::X]); local [all...] |
H A D | Layout-TNG.h | 501 /** Returns the bounding box of the given glyph, and its rotation. 502 The centre of rotation is the horizontal centre of the box at the 504 Geom::OptRect glyphBoundingBox(iterator const &it, double *rotation) const; 547 The centre of rotation is at the horizontal centre of the box on the 549 Geom::Rect characterBoundingBox(iterator const &it, double *rotation = NULL) const; 567 \param rotation The angle to draw from \a position. Radians, zero up, 570 void queryCursorShape(iterator const &it, Geom::Point &position, double &height, double &rotation) const; 793 double rotation; member in struct:Inkscape::Text::Layout::CursorShape 821 float rotation; /// absolute, modulo any object transforms, which we don't know about member in struct:Inkscape::Text::Layout::Glyph
|
H A D | Layout-TNG-Compute.cpp | 699 new_glyph.rotation = glyph_rotate; 735 // Sideways orientation (Latin characters, CJK punctuation), 90deg rotation done at output stage. zzzzzzz 1219 or change in one of the attributes altering position/rotation. */ 1839 _empty_cursor_shape.rotation = 0.0; 1858 _empty_cursor_shape.rotation = caret_slope;
|
/inkscape/src/ui/dialog/ |
H A D | polar-arrange-tab.cpp | 165 * @param center center of the rotation to perform 166 * @param rotation amount to rotate the object by 168 static void rotateAround(SPItem *item, Geom::Point center, Geom::Rotate const &rotation) argument 171 Geom::Affine affine = Geom::Affine(s).inverse() * Geom::Affine(rotation) * Geom::Affine(s);
|
/inkscape/src/widgets/ |
H A D | text-toolbar.cpp | 1405 // Kerning (xshift), yshift, rotation. NB: These are not CSS attributes. 1429 double rotation = attributes->getRotate( char_index ); local 1431 if( rotation > 180.0 ) rotation -= 360.0; 1435 gtk_adjustment_set_value( rotationAdjustment, rotation ); 1440 std::cout << " GUI: Rotation: " << rotation << std::endl; 2005 /* Character rotation */ 2013 _("Letter rotation"), /* label */ 2015 _("Character rotation (degrees)"),/* tooltip */ 2016 "/tools/text/rotation", /* preference [all...] |
/inkscape/src/extension/dbus/ |
H A D | document-interface.h | 91 int radius, int rotation, int sides,
|
H A D | document-interface.cpp | 405 int radius, int rotation, int sides, 408 gdouble rot = ((rotation / 180.0) * 3.14159265) - ( 3.14159265 / 2.0); 404 document_interface_polygon(DocumentInterface *doc_interface, int cx, int cy, int radius, int rotation, int sides, GError **error) argument
|
/inkscape/src/ui/tools/ |
H A D | spray-tool.cpp | 129 static void sp_spray_rotate_rel(Geom::Point c, SPDesktop */*desktop*/, SPItem *item, Geom::Rotate const &rotation) argument 132 Geom::Affine affine = s.inverse() * rotation * s;
|