2014-07-13 10:10:34 +00:00
|
|
|
package Slic3r::GUI::Plater::3D;
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use utf8;
|
|
|
|
|
|
|
|
use List::Util qw();
|
2017-07-21 14:29:40 +00:00
|
|
|
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);
|
2015-01-09 00:18:47 +00:00
|
|
|
|
2014-07-13 10:10:34 +00:00
|
|
|
sub new {
|
|
|
|
my $class = shift;
|
2016-12-12 17:02:24 +00:00
|
|
|
my ($parent, $objects, $model, $print, $config) = @_;
|
2014-07-13 10:10:34 +00:00
|
|
|
|
|
|
|
my $self = $class->SUPER::new($parent);
|
2018-05-22 07:02:42 +00:00
|
|
|
Slic3r::GUI::_3DScene::enable_picking($self, 1);
|
2018-05-31 11:51:50 +00:00
|
|
|
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');
|
2018-06-08 09:37:07 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2017-05-31 15:05:11 +00:00
|
|
|
1;
|