@@ -4,7 +4,7 @@ use strict;
44use warnings;
55use Scalar::Util qw( weaken) ;
66use Carp ' confess' ;
7- use PDL::ImageND;
7+ use PDL::ImageND () ;
88
99use fields qw( Objects IsValid ChangedSub Impl Options) ;
1010
@@ -43,7 +43,7 @@ sub normalise_as {
4343# Allowable forms:
4444# x(3,..) [x(..),y(..),z(..)]
4545sub realcoords {
46- my ($type ,$c ) = @_ ;
46+ my ($type ,$c ) = @_ ;
4747 if (ref $c ne " ARRAY" ) {
4848 my $dim0 = $c -> getdim(0);
4949 confess " If one ndarray given for coordinate, must be (2|3,...) or have default interpretation" if $dim0 != 2 and $dim0 != 3;
@@ -96,13 +96,13 @@ sub get_valid_options { +{
9696}}
9797
9898sub clear_objects {
99- my ($this ) = @_ ;
99+ my ($this ) = @_ ;
100100 $this -> {Objects } = [];
101101 $this -> {IsValid } = 0;
102102}
103103
104104sub delete_object {
105- my ($this ,$object ) = @_ ;
105+ my ($this ,$object ) = @_ ;
106106 my $ref = $this -> {Objects };
107107 return unless defined $object && defined $ref ;
108108 my @inds = grep $object == $ref -> [$_ ], 0..$# $ref ;
@@ -127,13 +127,13 @@ sub contained_objects {
127127}
128128
129129sub changed_from_above {
130- my ($this ) = @_ ;
130+ my ($this ) = @_ ;
131131 print " CHANGED_FROM_ABOVE\n " if $PDL::Graphics::TriD::verbose ;
132132 $this -> changed;
133133}
134134
135135sub add_changedsub {
136- my ($this ,$chsub ) = @_ ;
136+ my ($this ,$chsub ) = @_ ;
137137 push @{$this -> {ChangedSub }}, $chsub ;
138138 for (@{$this -> {Objects }}) {
139139 $_ -> add_changedsub($chsub );
@@ -142,7 +142,7 @@ sub add_changedsub {
142142
143143
144144sub clear {
145- my ($this ) = @_ ;
145+ my ($this ) = @_ ;
146146 # print "Clear: $this\n";
147147 for (@{$this -> {Objects }}) {
148148 $_ -> clear();
@@ -153,15 +153,15 @@ sub clear {
153153}
154154
155155sub changed {
156- my ($this ) = @_ ;
156+ my ($this ) = @_ ;
157157 print " VALID0 $this \n " if $PDL::Graphics::TriD::verbose ;
158158 $this -> {IsValid } = 0;
159159 $_ -> ($this ) for @{$this -> {ChangedSub }};
160160}
161161
162162# In the future, have this happen automatically by the ndarrays.
163163sub data_changed {
164- my ($this ) = @_ ;
164+ my ($this ) = @_ ;
165165 $this -> changed;
166166 $_ -> changed for $this -> contained_objects;
167167}
0 commit comments