-- Created on: 1997-01-21 -- Created by: Prestataire Christiane ARMAND -- Copyright (c) 1997-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. -- GG : GER61351 17/11/1999 Change SetColor() with a compatible Quantity_Color instead -- the restricted NameOfColor. class Circle from AIS inherits InteractiveObject from AIS ---Purpose: Constructs circle datums to be used in construction of -- composite shapes. uses Circle from Geom, Point from Geom, Presentation from Prs3d, PresentationManager3d from PrsMgr, NameOfColor from Quantity, Color from Quantity, Selection from SelectMgr, Projector from Prs3d, Transformation from Geom, Line from AIS, KindOfInteractive from AIS is Create(aCircle : Circle from Geom) returns Circle from AIS; ---Purpose: Initializes this algorithm for constructing AIS circle -- datums initializes the circle aCircle Create(theCircle : Circle from Geom; theUStart : Real from Standard; theUEnd : Real from Standard; theIsFilledCircleSens : Boolean from Standard = Standard_False) returns Circle from AIS; ---Purpose: Initializes this algorithm for constructing AIS circle datums. -- Initializes the circle theCircle, the arc -- starting point theUStart, the arc ending point theUEnd, -- and the type of sensitivity theIsFilledCircleSens. Compute(me : mutable; aPresentationManager: PresentationManager3d from PrsMgr; aPresentation : Presentation from Prs3d; aMode : Integer from Standard = 0) is redefined static private; Compute(me:mutable; aProjector: Projector from Prs3d; aPresentation: Presentation from Prs3d) is redefined static private; Compute(me : mutable; aProjector : Projector from Prs3d; aTrsf : Transformation from Geom; aPresentation : Presentation from Prs3d) is redefined; ---Purpose: computes the presentation according to a point of view -- given by . -- To be Used when the associated degenerated Presentations -- have been transformed by which is not a Pure -- Translation. The HLR Prs can't be deducted automatically -- WARNING : must be applied -- to the object to display before computation !!! -- Methods from SelectableObject ComputeSelection(me : mutable; aSelection : Selection from SelectMgr; aMode : Integer from Standard)is private; -- Methods from InteractiveObject Signature(me) returns Integer from Standard is redefined; ---C++: inline ---Purpose: Returns index 6 by default. Type(me) returns KindOfInteractive from AIS is redefined; ---C++: inline ---Purpose: Indicates that the type of Interactive Object is a datum. Circle(me) returns any Circle from Geom; ---C++: inline ---C++: return const & ---Purpose: Returns the circle component defined in SetCircle. Parameters(me; u1,u2 : in out Real from Standard); ---C++: inline ---Purpose: -- Constructs instances of the starting point and the end -- point parameters, u1 and u2. SetCircle(me:mutable;aCircle : Circle from Geom); ---C++: inline ---Purpose: Allows you to provide settings for the circle datum aCircle. SetFirstParam(me:mutable;u:Real); ---C++: inline ---Purpose: Allows you to set the parameter u for the starting point of an arc. SetLastParam(me:mutable;u:Real); ---C++: inline ---Purpose: Allows you to provide the parameter u for the end point of an arc. SetColor(me :mutable; aColor : NameOfColor from Quantity) is redefined static; --- Purpose: Assigns the color aColor to the solid line boundary of the circle datum. SetColor(me :mutable; aColor : Color from Quantity) is redefined static; SetWidth(me:mutable; aValue:Real from Standard) is redefined static; ---Purpose: Assigns the width aValue to the solid line boundary of the circle datum. UnsetColor(me:mutable) is redefined static; ---Purpose: Removes color from the solid line boundary of the circle datum. UnsetWidth(me:mutable) is redefined static; ---Purpose: Removes width settings from the solid line boundary of the circle datum. IsFilledCircleSens (me) returns Boolean from Standard; ---C++: inline ---Purpose: Returns the type of sensitivity for the circle; SetFilledCircleSens (me: mutable; theIsFilledCircleSens : Boolean from Standard); ---C++: inline ---Purpose: Sets the type of sensitivity for the circle. If theIsFilledCircleSens set to Standard_True -- then the whole circle will be detectable, otherwise only the boundary of the circle. ComputeCircle(me: mutable; aPresentation : Presentation from Prs3d) is private; ComputeArc(me: mutable; aPresentation : Presentation from Prs3d) is private; ComputeCircleSelection(me: mutable; aSelection : Selection from SelectMgr) is private; ComputeArcSelection(me: mutable; aSelection : Selection from SelectMgr) is private; fields myComponent : Circle from Geom; myUStart : Real from Standard; myUEnd : Real from Standard; myCircleIsArc : Boolean from Standard; myIsFilledCircleSens : Boolean from Standard; end Circle ;