3D.pm 772 B

1234567891011121314151617181920212223242526
  1. package Slic3r::GUI::Plater::3D;
  2. use strict;
  3. use warnings;
  4. use utf8;
  5. use List::Util qw();
  6. use Wx qw(:misc :pen :brush :sizer :font :cursor :keycode wxTAB_TRAVERSAL);
  7. use base qw(Slic3r::GUI::3DScene Class::Accessor);
  8. sub new {
  9. my $class = shift;
  10. my ($parent, $objects, $model, $print, $config) = @_;
  11. my $self = $class->SUPER::new($parent);
  12. Slic3r::GUI::_3DScene::enable_picking($self, 1);
  13. Slic3r::GUI::_3DScene::enable_moving($self, 1);
  14. Slic3r::GUI::_3DScene::set_select_by($self, 'object');
  15. Slic3r::GUI::_3DScene::set_drag_by($self, 'instance');
  16. Slic3r::GUI::_3DScene::set_model($self, $model);
  17. Slic3r::GUI::_3DScene::set_print($self, $print);
  18. Slic3r::GUI::_3DScene::set_config($self, $config);
  19. return $self;
  20. }
  21. 1;