PrusaSlicer-NonPlainar/lib/Slic3r/GUI/Plater/3D.pm

27 lines
772 B
Perl
Raw Normal View History

2014-07-13 10:10:34 +00:00
package Slic3r::GUI::Plater::3D;
use strict;
use warnings;
use utf8;
use List::Util qw();
use Wx qw(:misc :pen :brush :sizer :font :cursor :keycode wxTAB_TRAVERSAL);
2015-01-09 00:30:04 +00:00
use base qw(Slic3r::GUI::3DScene Class::Accessor);
2014-07-13 10:10:34 +00:00
sub new {
my $class = shift;
my ($parent, $objects, $model, $print, $config) = @_;
2014-07-13 10:10:34 +00:00
my $self = $class->SUPER::new($parent);
Slic3r::GUI::_3DScene::enable_picking($self, 1);
Slic3r::GUI::_3DScene::enable_moving($self, 1);
2018-06-06 10:36:52 +00:00
Slic3r::GUI::_3DScene::set_select_by($self, 'object');
Slic3r::GUI::_3DScene::set_drag_by($self, 'instance');
Slic3r::GUI::_3DScene::set_model($self, $model);
Slic3r::GUI::_3DScene::set_print($self, $print);
Slic3r::GUI::_3DScene::set_config($self, $config);
2014-07-13 10:10:34 +00:00
return $self;
}
1;