Format file FIG (Facility for Interactive Generation of figures)


I Wayan Warmada
Lab. Geokomputasi, Jurusan Teknik Geologi, FT UGM


#FORMAT FILE FIG 3.2
#Bagan ini dibuat untuk memudahkan konversi file ASCII yang diperoleh
#dengan alat digitizer, sehingga dapat dibaca dan diolah dengan XFIG.
#Penjelasan lebih lengkap bisa di-download di
#http://warmada.dhs.org/Graphics/xfig/figformat32.pdf
#********************************************************************
#hanya sekadar iseng...!!!
#
#FIG 3.2
Landscape   # orientation
Center      # justification
Metric      # units
A4          # papersize
100.00      # magnification
Single      # multiple-page
-2          # transparent color
1200 2      # resolution coord_system

# ARC (object_code = 5)
# |------------------------------------------------> sub_type --> 1 open ended arc
# | |----------------------------------------------> line_style
# | | |--------------------------------------------> line_thickness
# | | | |------------------------------------------> pen_color
# | | | | |----------------------------------------> fill_color
# | | | | |  |-------------------------------------> depth
# | | | | |  |  |----------------------------------> pen_style (not used)
# | | | | |  |  |  |-------------------------------> area_fill (-1 = no fill)
# | | | | |  |  |  |   |---------------------------> style_val (1/80 inch)
# | | | | |  |  |  |   |   |-----------------------> cap_style
# | | | | |  |  |  |   |   | |---------------------> direction (0: clockwise)
# | | | | |  |  |  |   |   | | |-------------------> forward_arrow (0: off)
# | | | | |  |  |  |   |   | | | |-----------------> backward_arrow (0: off)
# | | | | |  |  |  |   |   | | | | center_y <----|    last point <---------------|
# | | | | |  |  |  |   |   | | | | center_x      |    2nd point <-----|          |
# | | | | |  |  |  |   |   | | | |     |         |    1st point       |          |
# | | | | |  |  |  |   |   | | | |     |         |         |          |          |
# | | | | |  |  |  |   |   | | | |     |         |         |          |          |

5 1 0 1 0 7 100 0 -1 0.000 0 0 0 0 11217.189 8291.783 10755 9405 10980 7110 12420 8370

# ELLIPSE/CIRCLE (object_code = 1)
# |------------------------------------------> sub_type (1: ellipse defined by radii
# |                                                      2: ellipse defined by diameters
# |                                                      3: circle difined by radius
# |                                                      4: ellipse difined by diameter)
# | |----------------------------------------> line_style
# | | |--------------------------------------> line_thickness
# | | | |------------------------------------> pen_color
# | | | | |----------------------------------> fill_color
# | | | | |  |-------------------------------> depth
# | | | | |  |  |----------------------------> pen_style (not used)
# | | | | |  |  |  |-------------------------> area_fill (-1 = no fill)
# | | | | |  |  |  |   |---------------------> style_val (1/80 inch)
# | | | | |  |  |  |   |   |-----------------> direction (always 1)
# | | | | |  |  |  |   |   |    |------------> angle (radians, the angle of x-axis)
# | | | | |  |  |  |   |   |    |    |-------> center_x
# | | | | |  |  |  |   |   |    |    |    |--> center_y
# | | | | |  |  |  |   |   |    |    |    | radius_x
# | | | | |  |  |  |   |   |    |    |    |   |  radius_y
# | | | | |  |  |  |   |   |    |    |    |   |    | start_x
# | | | | |  |  |  |   |   |    |    |    |   |    |   |  start_y
# | | | | |  |  |  |   |   |    |    |    |   |    |   |    |  end_x
# | | | | |  |  |  |   |   |    |    |    |   |    |   |    |    |  end_y
# | | | | |  |  |  |   |   |    |    |    |   |    |   |    |    |    |
# | | | | |  |  |  |   |   |    |    |    |   |    |   |    |    |    |

1 3 0 1 0 7 100 0 -1 0.000 1 0.0000 1669 1635 973 973 1669 1635 2209 2445
1 1 0 1 0 7 100 0 -1 0.000 1 0.0000 1460 7567 540 1350 1460 7567 2000 6217

# POLYLINE (object_code = 2)
# |--------------------------------------> sub_type (1: polyline
# |                                                  2: box
# |                                                  3: polygon
# |                                                  4: arc-box
# |                                                  5: imported-picture bounding-box)
# | |------------------------------------> line_style
# | | |----------------------------------> thickness
# | | | |--------------------------------> pen_color
# | | | | |------------------------------> fill_color
# | | | | |  |---------------------------> depth
# | | | | |  |  |------------------------> pen_style (not used)
# | | | | |  |  |  |---------------------> area_fill (-1 = no fill)
# | | | | |  |  |  |   |-----------------> style_val (1/80 inch)
# | | | | |  |  |  |   |   |-------------> joint style
# | | | | |  |  |  |   |   | |-----------> cap_style (only for POLYLINE)
# | | | | |  |  |  |   |   | |  |--------> radius (radius of arc-boxes)
# | | | | |  |  |  |   |   | |  | |------> forward_arrow (0: off, 1: on)
# | | | | |  |  |  |   |   | |  | | |----> backward_arrow (0: off, 1: on)
# | | | | |  |  |  |   |   | |  | | | |--> number of points in line
# | | | | |  |  |  |   |   | |  | | | |
# | | | | |  |  |  |   |   | |  | | | |

2 2 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 5
     450 405 12735 405 12735 9720 450 9720 450 405
2 1 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 4
     3322 1606 4807 1021 6247 1921 7642 1111
2 3 0 1 0 7 100 0 -1 0.000 0 0 0 0 0 7
     9585 7425 9624 6052 8454 5332 7245 5985 7206 7358 8376 8078
     9585 7425

# SPLINE (object_code = 3)
# |------------------------------------> sub_type (0: opened approximated spline
# |                                                1: closed approximated spline
# |                                                2: opened interpolated spline
# |                                                3: closed interpolated spline
# |                                                4: opened x-spline
# |                                                5: closed x-spline)
# | |----------------------------------> line_style
# | | |--------------------------------> thickness
# | | | |------------------------------> pen_color
# | | | |  |---------------------------> fill_color
# | | | |  |  |------------------------> depth
# | | | |  |  |  |---------------------> pen_style (not used)
# | | | |  |  |  |  |------------------> area_fill (-1 = no fill)
# | | | |  |  |  |  |   |--------------> style_val (1/80 inch)
# | | | |  |  |  |  |   |   |----------> cap_style
# | | | |  |  |  |  |   |   | |--------> forward_arrow (0: off, 1: on)
# | | | |  |  |  |  |   |   | | |------> backward_arrow (0: off, 1: on)
# | | | |  |  |  |  |   |   | | | |----> number of control points
# | | | |  |  |  |  |   |   | | | |
# | | | |  |  |  |  |   |   | | | |

3 2 0 1 10 7 100 0 -1 0.000 0 0 0 17
     1350 4950 1800 4500 2700 4950 3150 4500 4050 4950 4500 4500
     5400 4950 5850 4500 6750 4950 7650 4500 8100 4950 9000 4500
     9450 4950 10350 4500 10800 4950 11700 4500 12150 4950
     0.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000
     -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000
     0.000
3 0 0 1 0 7 100 0 -1 0.000 0 0 0 4
     8460 1575 9675 765 10935 2205 12285 1170
     0.000 1.000 1.000 0.000

# TEXT (object_code = 4)
# |----------------------------------------------> sub_type (0: Left justified
# |                                                          1: Center justified
# |                                                          2: Right justified)
# | |--------------------------------------------> color
# | |   |----------------------------------------> depth
# | |   |  |-------------------------------------> pen_style
# | |   |  | |-----------------------------------> font
# | |   |  | | |---------------------------------> font_size
# | |   |  | | |    |----------------------------> angle (radians)
# | |   |  | | |    |    |-----------------------> font_flags
# | |   |  | | |    |    |  |--------------------> height
# | |   |  | | |    |    |  |   |----------------> length
# | |   |  | | |    |    |  |   |       |--------> coordinate of the origin of the string
# | |   |  | | |    |    |  |   |       |     |--> string []
# | |   |  | | |    |    |  |   |       |     |
# | |   |  | | |    |    |  |   |       |     |

4 0 10 100 0 0 40 0.0000 4 555 7155 3150 3600 Design grafik dengan Xfig 3.2\001
4 0 5 100 0 0 40 0.7854 4 555 3765 2700 7650 Text miring 45\260\001
4 0 3 100 0 0 40 0.5236 4 555 3765 3150 8100 Text miring 30\260\001
4 0 4 100 0 0 40 0.2618 4 555 3765 3375 8775 Text miring 15\260\001

# \260 ---> ASCII code untuk simbol derajat
# \001 ---> sequence untuk mengakhiri string...$-)