Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "Projection to Postscript files." legal: "See notice at end of class." status: "See notice at end of class." keywords: "projector, events, postscript" date: "$Date: 2017-05-03 07:56:14 -0800 (Wed, 03 May 2017) $" revision: "$Revision: 100317 $" class interface EV_POSTSCRIPT_PROJECTOR create make_with_filename (a_world: EV_FIGURE_WORLD; a_filename: READABLE_STRING_GENERAL) -- Create with a_world and a_filename. require a_world_not_void: a_world /= Void a_filename_not_void: a_filename /= Void feature -- Access arc_cosine (v: REAL_64): REAL_64 -- Trigonometric arccosine of radian v -- in the range [0, pi]. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class arc_sine (v: REAL_64): REAL_64 -- Trigonometric arcsine of radian v -- in the range [-pi/2, +pi/2]. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class arc_tangent (v: REAL_64): REAL_64 -- Trigonometric arctangent of radian v -- in the range [-pi/2, +pi/2]. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class bottom_margin: INTEGER_32 -- (from EV_FIGURE_POSTSCRIPT_DRAWER) ceiling (v: REAL_64): REAL_64 -- Least integral greater than or equal to v. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class cosine (v: REAL_64): REAL_64 -- Trigonometric cosine of radian v approximated -- in the range [-pi/4, +pi/4]. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class dabs (v: REAL_64): REAL_64 -- Absolute of v. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class Euler: REAL_64 = 2.7182818284590452353602874713526625 -- Logarithm base -- (from MATH_CONST) exp (x: REAL_64): REAL_64 -- Exponential of v. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class floor (v: REAL_64): REAL_64 -- Greatest integral less than or equal to v. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class generating_type: TYPE [detachable EV_POSTSCRIPT_PROJECTOR] -- Type of current object -- (type of which it is a direct instance) -- (from ANY) ensure -- from ANY generating_type_not_void: Result /= Void generator: STRING_8 -- Name of current object's generating class -- (base class of the type of which it is a direct instance) -- (from ANY) ensure -- from ANY generator_not_void: Result /= Void generator_not_empty: not Result.is_empty left_margin: INTEGER_32 -- (from EV_FIGURE_POSTSCRIPT_DRAWER) log (v: REAL_64): REAL_64 -- Natural logarithm of v. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class log10 (v: REAL_64): REAL_64 -- Base 10 logarithm of v. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class log_2 (v: REAL_64): REAL_64 -- Base 2 logarithm of v. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class Pi: REAL_64 = 3.1415926535897932384626433832795029 -- (from MATH_CONST) Pi_2: REAL_64 = 1.5707963267948966192313216916397514 -- (from MATH_CONST) Pi_4: REAL_64 = 0.7853981633974483096156608458198757 -- (from MATH_CONST) point_height: INTEGER_32 -- (from EV_FIGURE_POSTSCRIPT_DRAWER) point_width: INTEGER_32 -- (from EV_FIGURE_POSTSCRIPT_DRAWER) postscript_result: detachable STRING_8 -- (from EV_FIGURE_POSTSCRIPT_DRAWER) sine (v: REAL_64): REAL_64 -- Trigonometric sine of radian v approximated -- in range [-pi/4, +pi/4]. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class sqrt (v: REAL_64): REAL_64 -- Square root of v. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class Sqrt2: REAL_64 = 1.4142135623730950488016887242096981 -- Square root of 2 -- (from MATH_CONST) tangent (v: REAL_64): REAL_64 -- Trigonometric tangent of radian v approximated -- in range [-pi/4, +pi/4]. -- (from DOUBLE_MATH) ensure -- from DOUBLE_MATH instance_free: class world: EV_FIGURE_WORLD -- Figure-world that will be projected. -- (from EV_PROJECTOR) feature -- Comparison frozen deep_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void -- or attached to isomorphic object structures? -- (from ANY) ensure -- from ANY instance_free: class shallow_implies_deep: standard_equal (a, b) implies Result both_or_none_void: (a = Void) implies (Result = (b = Void)) same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b)) symmetric: Result implies deep_equal (b, a) frozen equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached -- to objects considered equal? -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.is_equal (b)) frozen is_deep_equal alias "≡≡≡" (other: EV_POSTSCRIPT_PROJECTOR): BOOLEAN -- Are Current and other attached to isomorphic object structures? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY shallow_implies_deep: standard_is_equal (other) implies Result same_type: Result implies same_type (other) symmetric: Result implies other.is_deep_equal (Current) is_equal (other: EV_POSTSCRIPT_PROJECTOR): BOOLEAN -- Is other attached to an object considered -- equal to current object? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY symmetric: Result implies other ~ Current consistent: standard_is_equal (other) implies Result frozen standard_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached to -- field-by-field identical objects of the same type? -- Always uses default object comparison criterion. -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.standard_is_equal (b)) frozen standard_is_equal alias "" (other: EV_POSTSCRIPT_PROJECTOR): BOOLEAN -- Is other attached to an object of the same type -- as current object, and field-by-field identical to it? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY same_type: Result implies same_type (other) symmetric: Result implies other.standard_is_equal (Current) feature -- Status report conforms_to (other: ANY): BOOLEAN -- Does type of current object conform to type -- of other (as per Eiffel: The Language, chapter 13)? -- (from ANY) require -- from ANY other_not_void: other /= Void Default_bottom_margin: INTEGER_32 = 20 -- Default size in pixels of the right side page margin. -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) Default_left_margin: INTEGER_32 = 20 -- Default size in pixels of the left side page margin. -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) page_height (a_size: INTEGER_32; landscape: BOOLEAN): INTEGER_32 -- Return the page height in points (1 inch/72) -- for the specified page size and orientation. -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) require -- from EV_POSTSCRIPT_PAGE_CONSTANTS valid_size: valid_page_size (a_size) page_width (a_size: INTEGER_32; landscape: BOOLEAN): INTEGER_32 -- Return the page width in points (1 inch/72) -- for the specified page size and orientation. -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) require -- from EV_POSTSCRIPT_PAGE_CONSTANTS valid_size: valid_page_size (a_size) same_type (other: ANY): BOOLEAN -- Is type of current object identical to type of other? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY definition: Result = (conforms_to (other) and other.conforms_to (Current)) feature -- Status setting set_margins (a_left_margin, a_bottom_margin: INTEGER_32) -- Set left and bottom margins to a_left_margin -- and a_bottom_margin. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) set_page_size (a_size: INTEGER_32; landscape: BOOLEAN) -- Set horizontal and vertical dimensions of page. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) set_world (a_world: EV_FIGURE_WORLD) -- Set `world` to a_world. -- (from EV_PROJECTOR) require -- from EV_PROJECTOR a_world_exists: a_world /= Void ensure -- from EV_PROJECTOR world_assigned: world = a_world feature -- Duplication copy (other: EV_POSTSCRIPT_PROJECTOR) -- Update current object using fields of object attached -- to other, so as to yield equal objects. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_equal: Current ~ other frozen deep_copy (other: EV_POSTSCRIPT_PROJECTOR) -- Effect equivalent to that of: -- `copy` (other . `deep_twin`) -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY deep_equal: deep_equal (Current, other) frozen deep_twin: EV_POSTSCRIPT_PROJECTOR -- New object structure recursively duplicated from Current. -- (from ANY) ensure -- from ANY deep_twin_not_void: Result /= Void deep_equal: deep_equal (Current, Result) frozen standard_copy (other: EV_POSTSCRIPT_PROJECTOR) -- Copy every field of other onto corresponding field -- of current object. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_standard_equal: standard_is_equal (other) frozen standard_twin: EV_POSTSCRIPT_PROJECTOR -- New object field-by-field identical to other. -- Always uses default copying semantics. -- (from ANY) ensure -- from ANY standard_twin_not_void: Result /= Void equal: standard_equal (Result, Current) frozen twin: EV_POSTSCRIPT_PROJECTOR -- New object equal to Current -- `twin` calls `copy`; to change copying/twinning semantics, redefine `copy`. -- (from ANY) ensure -- from ANY twin_not_void: Result /= Void is_equal: Result ~ Current feature -- Basic operations frozen default: detachable EV_POSTSCRIPT_PROJECTOR -- Default value of object's type -- (from ANY) frozen default_pointer: POINTER -- Default value of type POINTER -- (Avoid the need to write p.`default` for -- some p of type POINTER.) -- (from ANY) ensure -- from ANY instance_free: class default_rescue -- Process exception for routines with no Rescue clause. -- (Default: do nothing.) -- (from ANY) frozen do_nothing -- Execute a null action. -- (from ANY) ensure -- from ANY instance_free: class is_projecting: BOOLEAN -- Is a project currently being performed? -- Then, do not start a new one. -- (from EV_PROJECTION_ROUTINES) project -- Make standard projection of world on device. register_figure (a_figure: EV_FIGURE; a_routine: PROCEDURE [EV_FIGURE]) -- Assign a_routine for drawing of a_figure. -- (from EV_PROJECTION_ROUTINES) feature -- Implementation between (n, a, b: INTEGER_32): BOOLEAN -- Is n a value between a and b? -- (from EV_FIGURE_MATH) delta_x (angle: REAL_64; length: INTEGER_32): INTEGER_32 -- Get dx component of line segment with length and angle. -- (from EV_FIGURE_MATH) delta_y (angle: REAL_64; length: INTEGER_32): INTEGER_32 -- Get dy component of line segment with length and angle. -- (from EV_FIGURE_MATH) distance (x1, y1, x2, y2: INTEGER_32): INTEGER_32 -- Calculate distance between (x1, y1) and (x2, y2). -- (from EV_FIGURE_MATH) distance_from_line (x, y, x1, y1, x2, y2: INTEGER_32): INTEGER_32 -- Calculate distance between (x, y) and (x1, y1)-(x2, y2). -- The line is considered to be infinite. -- (from EV_FIGURE_MATH) line_angle (x1, y1, x2, y2: INTEGER_32): REAL_64 -- Return angle of line from (x1, y1) to (x2, y2) relative to world. -- (from EV_FIGURE_MATH) modulo (a, b: REAL_64): REAL_64 -- a modulo b. -- (from EV_FIGURE_MATH) require -- from EV_FIGURE_MATH divisible: b > 0.0 ensure -- from EV_FIGURE_MATH in_interval: Result >= 0.0 and Result < b Pi_half: REAL_64 = 1.57079633 -- (from EV_FIGURE_MATH) Pi_half_times_three: REAL_64 = 4.71238898 -- (from EV_FIGURE_MATH) Pi_quater: REAL_64 = 0.785398163 -- (from EV_FIGURE_MATH) Pi_times_three: REAL_64 = 9.42477796 -- (from EV_FIGURE_MATH) Pi_times_two: REAL_64 = 6.28318531 -- (from EV_FIGURE_MATH) point_on_ellipse (x, y, xc, yc, r1, r2: INTEGER_32): BOOLEAN -- Is (x, y) inside specified ellipse? -- (from EV_FIGURE_MATH) point_on_ellipse_boundary (x, y, xc, yc, r1, r2, width: INTEGER_32): BOOLEAN -- Is (x, y) on specified ellipse border? -- (from EV_FIGURE_MATH) point_on_line (x, y, x1, y1, x2, y2, width: INTEGER_32): BOOLEAN -- Is (x, y) on line from (x2, y2) to (x1, y1) with width? -- (from EV_FIGURE_MATH) point_on_polygon (x, y: INTEGER_32; points: ARRAY [EV_COORDINATE]): BOOLEAN -- Is (x, y) contained in polygon with points? -- Based on code by Hanpeter van Vliet. -- (from EV_FIGURE_MATH) point_on_rectangle (x, y, x1, y1, x2, y2: INTEGER_32): BOOLEAN -- Is (x, y) inside specified box? -- (from EV_FIGURE_MATH) point_on_segment (x, y, x1, y1, x2, y2, width: INTEGER_32): BOOLEAN -- Is (x, y) on segment [(x2, y2), (x1, y1)] with width? -- (from EV_FIGURE_MATH) feature -- Constants A0: INTEGER_32 = 10 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) A1: INTEGER_32 = 11 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) A2: INTEGER_32 = 12 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) A3: INTEGER_32 = 13 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) A4: INTEGER_32 = 14 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) A5: INTEGER_32 = 15 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) A6: INTEGER_32 = 16 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) A7: INTEGER_32 = 17 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) A8: INTEGER_32 = 18 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) A9: INTEGER_32 = 19 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B0: INTEGER_32 = 20 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B1: INTEGER_32 = 21 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B10: INTEGER_32 = 30 -- Valid page constants. -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B2: INTEGER_32 = 22 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B3: INTEGER_32 = 23 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B4: INTEGER_32 = 24 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B5: INTEGER_32 = 25 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B6: INTEGER_32 = 26 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B7: INTEGER_32 = 27 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B8: INTEGER_32 = 28 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) B9: INTEGER_32 = 29 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) C5envelope: INTEGER_32 = 2 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) Comm10envelope: INTEGER_32 = 1 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) Dlenvelope: INTEGER_32 = 3 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) Executive: INTEGER_32 = 5 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) Folio: INTEGER_32 = 4 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) Ledger: INTEGER_32 = 8 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) Legal: INTEGER_32 = 7 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) Letter: INTEGER_32 = 6 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) Tabloid: INTEGER_32 = 9 -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) feature -- Contract support valid_page_size (a_size: INTEGER_32): BOOLEAN -- Is a_size a valid page value? -- (from EV_POSTSCRIPT_PAGE_CONSTANTS) feature -- Figure drawing draw_figure_arc (arc: EV_FIGURE_ARC) -- Draw standard representation of arc to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES arc_not_void: arc /= Void draw_figure_dot (dot: EV_FIGURE_DOT) -- Draw standard representation of dot to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES dot_not_void: dot /= Void draw_figure_ellipse (ellipse: EV_FIGURE_ELLIPSE) -- Draw standard representation of ellipse to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES ellipse_not_void: ellipse /= Void draw_figure_equilateral (eql: EV_FIGURE_EQUILATERAL) -- Draw standard representation of eql to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES eql_not_void: eql /= Void draw_figure_line (line: EV_FIGURE_LINE) -- Draw standard representation of line to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES line_not_void: line /= Void draw_figure_picture (picture: EV_FIGURE_PICTURE) -- Draw standard representation of picture to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES picture_not_void: picture /= Void draw_figure_pie_slice (slice: EV_FIGURE_PIE_SLICE) -- Draw standard representation of slice to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES slice_not_void: slice /= Void draw_figure_polygon (polygon: EV_FIGURE_POLYGON) -- Draw standard representation of polygon to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES polygon_not_void: polygon /= Void draw_figure_polyline (line: EV_FIGURE_POLYLINE) -- Draw standard representation of polyline to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES line_not_void: line /= Void draw_figure_rectangle (rectangle: EV_FIGURE_RECTANGLE) -- Draw standard representation of rectangle to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES rectangle_not_void: rectangle /= Void draw_figure_rounded_rectangle (rounded_rectangle: EV_FIGURE_ROUNDED_RECTANGLE) -- Draw standard representation of rounded_rectangle to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES f_not_void: rounded_rectangle /= Void draw_figure_star (star: EV_FIGURE_STAR) -- Draw standard representation of star to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES star_not_void: star /= Void draw_figure_text (text_figure: EV_FIGURE_TEXT) -- Draw standard representation of text_figure to canvas. -- (from EV_FIGURE_POSTSCRIPT_DRAWER) require -- from EV_FIGURE_DRAWING_ROUTINES text_figure_not_void: text_figure /= Void feature -- Output Io: STD_FILES -- Handle to standard file setup -- (from ANY) ensure -- from ANY instance_free: class io_not_void: Result /= Void out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY out_not_void: Result /= Void print (o: detachable ANY) -- Write terse external representation of o -- on standard output. -- (from ANY) ensure -- from ANY instance_free: class frozen tagged_out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY tagged_out_not_void: Result /= Void feature -- Platform Operating_environment: OPERATING_ENVIRONMENT -- Objects available from the operating system -- (from ANY) ensure -- from ANY instance_free: class operating_environment_not_void: Result /= Void invariant -- from EV_PROJECTOR world_exists: world /= Void -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note copyright: "Copyright (c) 1984-2013, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class EV_POSTSCRIPT_PROJECTOR
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

-- Generated by Eiffel Studio --
For more details: eiffel.org