2 -- Created: Fri Jan 17 11:54:50 1992
4 -- Modified: GG 23/11/00 Add Display(),Erase(),IsDisplayed() methods
5 ---Copyright: Matra Datavision 1992
13 ---Purpose: Defines the services of Plane type objects. Only
14 -- the creation and editing of the functions is dealt
16 -- Warning: The representation of the clipping plane must be
17 -- calculated by the application by means of Graphic3d.
18 -- Editing of this representation must be coherent with
19 -- respect to the position of the plane.
25 ClipPlane from Visual3d,
26 Structure from Graphic3d,
27 Parameter from Quantity,
41 Create ( VM : Viewer ; A: Parameter = 0.0;
45 ) returns mutable Plane
47 ---Purpose: Creates a clipping plane using the equation :
48 -- <A>*X + <B>*Y + <C>*Z + <D> = 0.0
49 raises BadValue from Viewer;
50 ---Purpose: Warning! raises BadValue from Viewer
51 -- if the norm of the plane is NULL.
53 --------------------------------------------------------
54 ---Category: Methods to modify the Attributs of the Plane
55 --------------------------------------------------------
57 SetPlane( me : mutable; A,B,C,D : Parameter)
59 ---Purpose: Modifies the plane equation.
60 raises BadValue from Viewer
61 ---Purpose: Warning! raises BadValue from Viewer
62 -- if the norm of the plane is NULL.
63 -- If the norm of the plane is NULL.
66 Display(me: mutable; aView: View from V3d;
67 aColor: Color from Quantity= Quantity_NOC_GRAY)
69 ---Purpose: Display the plane representation
70 -- in the choosen view.
73 Erase(me: mutable) is static;
75 ---Purpose: Erase the plane representation.
77 ---------------------------------------------------
78 ---Category: Inquire methods
79 ---------------------------------------------------
81 Plane( me ; A,B,C,D : out Parameter ) is static;
83 ---Purpose: Returns the parameters of the plane .
85 IsDisplayed( me ) returns Boolean from Standard is static;
87 ---Purpose: Returns TRUE when the plane representation is displayed
89 -----------------------------------------
90 ---Category: Private or Protected methods
91 -----------------------------------------
93 Plane( me) returns mutable ClipPlane from Visual3d is static private ;
95 ---Purpose: Returns the associated plane from Visual3d.
97 Update( me : mutable ) is static private;
99 ---Purpose: Updates the the plane representation.
104 MyPlane: ClipPlane from Visual3d ;
105 MyGraphicStructure: Structure from Graphic3d is protected;
109 SetPlaneOn from class View from V3d ( me : mutable ),
110 SetPlaneOn from class View from V3d
111 ( me : mutable ; Plane : Plane from V3d ),
112 SetPlaneOff from class View from V3d ( me : mutable ),
113 SetPlaneOff from class View from V3d
114 ( me : mutable ; Plane : Plane from V3d )