~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/scicos_blocks/TIME_f.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function [x,y,typ]=TIME_f(job,arg1,arg2)
2
 
// Copyright INRIA
3
 
x=[];y=[],typ=[]
4
 
select job
5
 
case 'plot' then
6
 
  standard_draw(arg1)
7
 
case 'getinputs' then
8
 
  [x,y,typ]=standard_inputs(arg1)
9
 
case 'getoutputs' then
10
 
  [x,y,typ]=standard_outputs(arg1)
11
 
case 'getorigin' then
12
 
  [x,y]=standard_origin(arg1)
13
 
case 'set' then
14
 
  x=arg1
15
 
  x(3)(11)=[] //compatibility
16
 
case 'define' then
17
 
  model=list('timblk',[],1,[],[],[],[],[],[],'c',[],[%f %t],' ',list())
18
 
  gr_i=['wd=xget(''wdim'').*[1.016,1.12];';
19
 
    'thick=xget(''thickness'');xset(''thickness'',2);';
20
 
    'p=wd(2)/wd(1);p=1;';
21
 
    'rx=sz(1)*p/2;ry=sz(2)/2;';
22
 
    'xarc(orig(1)+0.05*sz(1),orig(2)+0.95*sz(2),0.9*sz(1)*p,0.9*sz(2),0,360*64);';
23
 
    'xset(''thickness'',1);';
24
 
    'xx=[orig(1)+rx    orig(1)+rx;';
25
 
    'orig(1)+rx    orig(1)+rx+0.6*rx*cos(%pi/6)];';
26
 
    'yy=[orig(2)+ry    orig(2)+ry ;';
27
 
    '     orig(2)+1.8*ry  orig(2)+ry+0.6*ry*sin(%pi/6)];';
28
 
    'xsegs(xx,yy,0);';
29
 
    'xset(''thickness'',thick);']
30
 
   x=standard_define([2 2],model,[],gr_i)
31
 
end
32
 
 
33
 
 
34
 
 
35