void Image::init_type() { _VERBOSE("Image::init_type"); behaviors().name("Image"); behaviors().doc("Image"); behaviors().supportGetattr(); behaviors().supportSetattr(); add_varargs_method( "apply_rotation", &Image::apply_rotation, Image::apply_rotation__doc__); add_varargs_method( "apply_scaling", &Image::apply_scaling, Image::apply_scaling__doc__); add_varargs_method( "apply_translation", &Image::apply_translation, Image::apply_translation__doc__); add_keyword_method( "as_rgba_str", &Image::as_rgba_str, Image::as_rgba_str__doc__); add_varargs_method( "color_conv", &Image::color_conv, Image::color_conv__doc__); add_varargs_method( "buffer_rgba", &Image::buffer_rgba, Image::buffer_rgba__doc__); add_varargs_method( "get_aspect", &Image::get_aspect, Image::get_aspect__doc__); add_varargs_method( "get_interpolation", &Image::get_interpolation, Image::get_interpolation__doc__); add_varargs_method( "get_size", &Image::get_size, Image::get_size__doc__); add_varargs_method( "get_size_out", &Image::get_size_out, Image::get_size_out__doc__); add_varargs_method( "reset_matrix", &Image::reset_matrix, Image::reset_matrix__doc__); add_varargs_method( "get_matrix", &Image::get_matrix, Image::get_matrix__doc__); add_keyword_method( "resize", &Image::resize, Image::resize__doc__); add_varargs_method( "set_interpolation", &Image::set_interpolation, Image::set_interpolation__doc__); add_varargs_method( "set_aspect", &Image::set_aspect, Image::set_aspect__doc__); add_varargs_method( "write_png", &Image::write_png, Image::write_png__doc__); add_varargs_method( "set_bg", &Image::set_bg, Image::set_bg__doc__); add_varargs_method( "flipud_out", &Image::flipud_out, Image::flipud_out__doc__); add_varargs_method( "flipud_in", &Image::flipud_in, Image::flipud_in__doc__); }
void Transformation::init_type() { _VERBOSE("Transformation::init_type"); behaviors().name("Transformation"); behaviors().doc("Transformation base class"); add_varargs_method("freeze", &Transformation::freeze, "freeze(); eval and freeze the lazy objects\n"); add_varargs_method("thaw", &Transformation::thaw, "thaw(); release the laszy objects\n"); add_varargs_method("get_bbox1", &Transformation::get_bbox1, "get_bbox1(); return the input bbox\n"); add_varargs_method("get_bbox2", &Transformation::get_bbox2, "get_bbox2(); return the output bbox\n"); add_varargs_method("set_bbox1", &Transformation::set_bbox1, "set_bbox1(); set the input bbox\n"); add_varargs_method("set_bbox2", &Transformation::set_bbox2, "set_bbox2(); set the output bbox\n"); add_varargs_method("get_funcx", &Transformation::get_funcx, "get_funcx(); return the Func instance on x\n"); add_varargs_method("get_funcy", &Transformation::get_funcy, "get_funcy(); return the Func instance on y\n"); add_varargs_method("set_funcx", &Transformation::set_funcx, "set_funcx(); set the Func instance on x\n"); add_varargs_method("set_funcy", &Transformation::set_funcy, "set_funcy(); set the Func instance on y\n"); add_varargs_method("get_funcxy", &Transformation::get_funcxy, "get_funcxy(); return the FuncXY instance\n"); add_varargs_method("set_funcxy", &Transformation::set_funcxy, "set_funcxy(); set the FuncXY instance\n"); add_varargs_method("xy_tup", &Transformation::xy_tup, "xy_tup(xy)\n"); add_varargs_method("seq_x_y", &Transformation::seq_x_y, "seq_x_y(x, y)\n"); add_keyword_method("numerix_x_y", &Transformation::numerix_x_y, "numerix_x_y(x, y)\n"); add_keyword_method("nonlinear_only_numerix", &Transformation::nonlinear_only_numerix, "nonlinear_only_numerix\n"); add_varargs_method("need_nonlinear", &Transformation::need_nonlinear, "need_nonlinear\n"); add_varargs_method("seq_xy_tups", &Transformation::seq_xy_tups, "seq_xy_tups(seq)\n"); add_varargs_method("inverse_xy_tup", &Transformation::inverse_xy_tup, "inverse_xy_tup(xy)\n"); add_varargs_method("set_offset", &Transformation::set_offset, "set_offset(xy, trans)\n"); add_varargs_method("as_vec6", &Transformation::as_vec6, "as_vec6(): return the affine as length 6 list of Values\n"); add_varargs_method("as_vec6_val", &Transformation::as_vec6_val, "as_vec6_val(): return the affine as length 6 list of float\n"); add_varargs_method("deepcopy", &Transformation::deepcopy, "deepcopy()\n"); }
Module() : Py::ExtensionModule<Module>("MeshPart") { add_varargs_method("loftOnCurve",&Module::loftOnCurve, "Loft on curve." ); add_varargs_method("wireFromSegment",&Module::wireFromSegment, "Create wire(s) from boundary of segment" ); add_keyword_method("meshFromShape",&Module::meshFromShape, "Create mesh from shape" ); initialize("This module is the MeshPart module."); // register with Python }
Module() : Py::ExtensionModule<Module>("ReverseEngineering") { add_keyword_method("approxSurface",&Module::approxSurface, "approxSurface(Points=,UDegree=3,VDegree=3,NbUPoles=6,NbVPoles=6,Smooth=True)\n" "Weight=0.1,Grad=1.0,Bend=0.0,\n" "Iterations=5,Correction=True,PatchFactor=1.0" ); #if defined(HAVE_PCL_SURFACE) add_varargs_method("triangulate",&Module::triangulate, "triangulate(PointKernel,searchRadius[,mu=2.5])." ); #endif initialize("This module is the ReverseEngineering module."); // register with Python }
Module() : Py::ExtensionModule<Module>("Drawing") { add_varargs_method("project",&Module::project, "[visiblyG0,visiblyG1,hiddenG0,hiddenG1] = project(TopoShape[,App.Vector Direction, string type])\n" " -- Project a shape and return the visible/invisible parts of it." ); add_varargs_method("projectEx",&Module::projectEx, "[V,V1,VN,VO,VI,H,H1,HN,HO,HI] = projectEx(TopoShape[,App.Vector Direction, string type])\n" " -- Project a shape and return the all parts of it." ); add_keyword_method("projectToSVG",&Module::projectToSVG, "string = projectToSVG(TopoShape[, App.Vector direction, string type, float tolerance, dict vStyle, dict v0Style, dict v1Style, dict hStyle, dict h0Style, dict h1Style])\n" " -- Project a shape and return the SVG representation as string." ); add_varargs_method("projectToDXF",&Module::projectToDXF, "string = projectToDXF(TopoShape[,App.Vector Direction, string type])\n" " -- Project a shape and return the DXF representation as string." ); add_varargs_method("removeSvgTags",&Module::removeSvgTags, "string = removeSvgTags(string) -- Removes the opening and closing svg tags\n" "and other metatags from a svg code, making it embeddable" ); initialize("This module is the Drawing module."); // register with Python }