Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_spiral_position_set ( SPSpiral spiral,
gdouble  cx,
gdouble  cy,
gdouble  exp,
gdouble  revo,
gdouble  rad,
gdouble  arg,
gdouble  t0 
)

Set spiral properties and update display.

Todo:
Consider applying CLAMP or adding in-bounds assertions for some of these parameters.

Definition at line 475 of file sp-spiral.cpp.

References SPSpiral::arg, SPSpiral::cx, SPSpiral::cy, SPSpiral::exp, SPSpiral::rad, SPSpiral::revo, and SPSpiral::t0.

{
      g_return_if_fail (spiral != NULL);
      g_return_if_fail (SP_IS_SPIRAL (spiral));

      /** \todo
         * Consider applying CLAMP or adding in-bounds assertions for
         * some of these parameters.
         */
      spiral->cx         = cx;
      spiral->cy         = cy;
      spiral->exp        = exp;
      spiral->revo       = revo;
      spiral->rad        = MAX (rad, 0.001);
      spiral->arg        = arg;
      spiral->t0         = CLAMP(t0, 0.0, 0.999);
      
      ((SPObject *)spiral)->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
}


Generated by  Doxygen 1.6.0   Back to index