Slic3r/xs/xsp/my.map

106 lines
2.8 KiB
Plaintext
Raw Normal View History

2013-11-24 00:39:05 +04:00
std::vector<Points::size_type> T_STD_VECTOR_INT
std::vector<size_t> T_STD_VECTOR_INT
2013-12-20 19:37:28 +04:00
t_config_option_key T_STD_STRING
2013-11-24 00:39:05 +04:00
BoundingBox* O_OBJECT
BoundingBoxf3* O_OBJECT
DynamicPrintConfig* O_OBJECT
2014-01-02 13:44:54 +04:00
PrintObjectConfig* O_OBJECT
PrintRegionConfig* O_OBJECT
PrintConfig* O_OBJECT
2014-01-02 13:44:54 +04:00
FullPrintConfig* O_OBJECT
2013-06-23 19:07:12 +04:00
ZTable* O_OBJECT
2013-06-24 21:35:49 +04:00
TriangleMesh* O_OBJECT
2013-07-06 17:26:32 +04:00
Point* O_OBJECT
2014-01-07 15:48:09 +04:00
Pointf3* O_OBJECT
Line* O_OBJECT
Polyline* O_OBJECT
2013-08-30 02:06:10 +04:00
PolylineCollection* O_OBJECT
Polygon* O_OBJECT
2013-07-06 18:33:49 +04:00
ExPolygon* O_OBJECT
ExPolygonCollection* O_OBJECT
2013-07-18 21:09:07 +04:00
ExtrusionEntityCollection* O_OBJECT
ExtrusionPath* O_OBJECT
ExtrusionLoop* O_OBJECT
2014-01-05 16:16:13 +04:00
Flow* O_OBJECT
2013-12-20 04:36:42 +04:00
PrintState* O_OBJECT
2013-07-14 15:05:55 +04:00
Surface* O_OBJECT
2013-07-14 16:56:43 +04:00
SurfaceCollection* O_OBJECT
ExtrusionRole T_UV
2014-01-05 16:16:13 +04:00
FlowRole T_UV
2013-12-20 04:36:42 +04:00
PrintStep T_UV
SurfaceType T_UV
ClipperLib::JoinType T_UV
ClipperLib::PolyFillType T_UV
2013-07-16 01:12:13 +04:00
# we return these types whenever we want the items to be cloned
Points T_ARRAYREF
2014-01-07 15:48:09 +04:00
Pointfs T_ARRAYREF
Lines T_ARRAYREF
Polygons T_ARRAYREF
2013-11-21 17:15:38 +04:00
Polylines T_ARRAYREF
ExPolygons T_ARRAYREF
2013-11-23 21:29:25 +04:00
Surfaces T_ARRAYREF
2013-07-16 01:12:13 +04:00
# we return these types whenever we want the items to be returned
# by reference and marked ::Ref because they're contained in another
# Perl object
Polygons* T_ARRAYREF_PTR
# we return these types whenever we want the items to be returned
# by reference and not marked ::Ref because they're newly allocated
# and not referenced by any Perl object
TriangleMeshPtrs T_PTR_ARRAYREF
2013-07-16 01:12:13 +04:00
INPUT
T_ARRAYREF
if (SvROK($arg) && SvTYPE(SvRV($arg)) == SVt_PVAV) {
AV* av = (AV*)SvRV($arg);
const unsigned int len = av_len(av)+1;
$type* tmp = new $type(len);
for (unsigned int i = 0; i < len; i++) {
SV** elem = av_fetch(av, i, 0);
(*tmp)[i].from_SV_check(*elem);
}
$var = *tmp;
delete tmp;
} else
Perl_croak(aTHX_ \"%s: %s is not an array reference\",
${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]},
\"$var\");
2013-07-16 01:12:13 +04:00
OUTPUT
T_ARRAYREF
2013-07-16 01:23:35 +04:00
AV* av = newAV();
$arg = newRV_noinc((SV*)av);
sv_2mortal($arg);
av_extend(av, $var.size()-1);
int i = 0;
for (${type}::const_iterator it = $var.begin(); it != $var.end(); ++it) {
av_store(av, i++, it->to_SV_clone_ref());
}
$var.clear();
T_ARRAYREF_PTR
AV* av = newAV();
$arg = newRV_noinc((SV*)av);
sv_2mortal($arg);
av_extend(av, $var->size()-1);
int i = 0;
for (${ my $t = $type; $t =~ s/\*$//; \$t }::iterator it = $var->begin(); it != $var->end(); ++it) {
av_store(av, i++, it->to_SV_ref());
}
T_PTR_ARRAYREF
AV* av = newAV();
$arg = newRV_noinc((SV*)av);
sv_2mortal($arg);
av_extend(av, $var.size()-1);
int i = 0;
for (${type}::iterator it = $var.begin(); it != $var.end(); ++it) {
av_store(av, i++, (*it)->to_SV());
}