Ignore:
Timestamp:
Mar 24, 2010, 8:47:23 PM (14 years ago)
Author:
sommeria
Message:

name_generator: remove unneeded indices at output
civ.m: & introduced at the end of system command lines (beginning by !) to allow matlab operations during civ in run mode
uvmat.m: debugging in dealing with projections
prove image pair movies superposed to velocity vectors
mouse: put circles along detected vectors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_motion.m

    r61 r65  
    8989                          (AxeData.Y<(xy(1,2)+AxeData.Mesh/3) & AxeData.Y>(xy(1,2)-AxeData.Mesh/3));%f
    9090                    ivec=find(flag_vec);% search the selected vector index ivec
     91                    hhh=findobj(haxes,'Tag','vector_marker');
    9192                    if length(ivec)>0
     93                        %ivec=ivec(1);%choice the first selected vector if several are selected
    9294                        if ~test_create
    9395                            pointershape='arrow'; %mouse indicates  the detection of a vector
    94                             hhh=findobj(haxes,'Tag','vector_marker');
     96 
    9597                            if isempty(hhh)
    96                                 line(AxeData.X(ivec),AxeData.Y(ivec),'Color','m','Tag','vector_marker','LineStyle','.','Marker','o','MarkerSize',AxeData.Mesh);
     98                                set(currentfig,'CurrentAxes',haxes)
     99                                rectangle('Curvature',[1 1],...
     100                  'Position',[AxeData.X(ivec)-AxeData.Mesh AxeData.Y(ivec)/2-AxeData.Mesh/2 AxeData.Mesh AxeData.Mesh],'EdgeColor','m',...
     101                  'LineStyle','-','Tag','vector_marker');
     102%                                 line(AxeData.X(ivec),AxeData.Y(ivec),'Color','m','Tag','vector_marker','LineStyle','.','Marker','o','MarkerSize',AxeData.Mesh);
    97103                            else
    98                                 set(hhh,'XData',AxeData.X(ivec))
    99                                 set(hhh,'YData',AxeData.Y(ivec))
     104                                set(hhh,'Position',[AxeData.X(ivec)-AxeData.Mesh/2 AxeData.Y(ivec)-AxeData.Mesh/2 AxeData.Mesh AxeData.Mesh])
    100105                            end
    101                         end
    102                         ivec=ivec(1);%choice the first selected vector if several are selected
     106                        end                 
    103107                        mouse.X=AxeData.X(ivec);
    104108                        mouse.Y=AxeData.Y(ivec);
     
    106110                        v_mouse=AxeData.V(ivec);
    107111                        w_mouse=0; %default
    108                         if isfield(AxeData,'W')&length(AxeData.W)>=ivec
     112                        if isfield(AxeData,'W') & length(AxeData.W)>=ivec
    109113                            w_text=[',  w=' num2str(AxeData.W(ivec),3)];
    110114                        else
     
    124128                        else
    125129                            ff_text='';
     130                        end
     131                    else
     132                        if ~isempty(hhh)
     133                            delete(hhh)
    126134                        end
    127135                    end
Note: See TracChangeset for help on using the changeset viewer.