Previous Next Up Title Contents General Index Functions Index Bookshelf

1.7.4. TRACÉ D'UN CERCLE AVEC 2 AXES LINÉAIRES ET UN ATTRIBUT POINTILLÉ SUR UN AXE


	program p74
	include 'PHIGS.H'

	integer circid, scenid, wkid, viewid, xaxid,yaxid, listid(3)
	real viewpt(4)
	data wkid , viewid, scenid, circid / 1,1, 10, 11 /
	data xaxid,yaxid, listid /12,13, 11,12,13/
	data zoom, radius, xc,yc   / 0.8, 5.0, 15.,15. /
	data xmin,ymin, xmax,ymax  / 10.,10.,20.,20. /
	data viewpt /0.,1., 0.,1./

c---------------------------------------------------------------------

c	ouverture de PHIGURE et du poste de travail */
	call topph (6)
	call topwk (wkid,30,8887)

c	definition du domaine 2D de travail
	call tdoma2 (xmin,ymin, xmax,ymax)

c	attribut de l'axe x
	call tsaxlb (xaxid, PON, 2,1, 0.0, 'X-axis')

c	construction des deux axes
	call taxyln (xaxid, 10.,10.,0., 20.0,0.0)
	call tayxln (yaxid, 10.,10.,0., 20.0,0.0)

c	insertion d'un attribut type de ligne dans la structure xaxid
	call tsln (xaxid, -1, PLDASH)

c	construction d'un cercle 
	call tccr2 (circid, xc,yc, radius)

	call tscene (scenid,3,listid,viewid)
   
c	definition d'une vue centree 2D 
	call tv2cen (wkid,viewid,0.5,0.5,zoom,viewpt)
	
c	trace sur le poste de travail 
	call ppost (wkid,scenid,1.0)
	call prst (wkid,PALWAY)

c	fermeture du poste de travail et de PHIGURE 
	call tclwk (wkid)
	call tclph 
	end

Ce programme est identique au P73 avec la définition d'un attribut label à l'axe X puis l'insertion d'un attribut type de ligne dans la structure de l'axe X.


Previous Next Up Title Contents General Index Functions Index Bookshelf