-- Created on: 1995-03-17 -- Created by: Mister rmi -- Copyright (c) 1995-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. class CircularGrid from Aspect inherits Grid from Aspect uses PlaneAngle, Length from Quantity raises NegativeValue,NullValue,NumericError from Standard is Create(aRadiusStep: Length from Quantity; aDivisionNumber: Integer from Standard; XOrigin: Length from Quantity = 0; anYOrigin: Length from Quantity = 0; aRotationAngle: PlaneAngle from Quantity = 0) returns CircularGrid from Aspect; ---Purpose: creates a new grid. By default this grid is not -- active. ---Category: grid definition methods SetRadiusStep(me: mutable; aStep: Length from Quantity) ---Purpose: defines the x step of the grid. raises NegativeValue,NullValue from Standard ---Warning: raises an exception if is not strictly positive. is static; SetDivisionNumber(me: mutable; aNumber: Integer from Standard) ---Purpose: defines the step of the grid. raises NegativeValue,NullValue from Standard ---Warning: raises an exception if is not strictly positive. is static; SetGridValues(me: mutable; XOrigin, YOrigin: Length from Quantity; RadiusStep: Length from Quantity; DivisionNumber: Integer from Standard; RotationAngle: PlaneAngle from Quantity) raises NegativeValue,NullValue from Standard ---Warning: raises an exception if is not strictly positive. ---Warning: raises an exception if is not strictly positive. is static; ---Category: Pick methods -- Compute(me; X,Y: Length from Quantity; gridX, gridY : out Length from Quantity) ---Purpose: returns the point of the grid the closest to the point X,Y is static; ---Category: inquire methods RadiusStep(me) returns Length from Quantity ---Purpose: returns the x step of the grid. is static; DivisionNumber(me) returns Integer from Standard ---Purpose: returns the x step of the grid. is static; ---Category: private methods. Init(me: mutable) is redefined static; fields myRadiusStep: Length from Quantity; myDivisionNumber: Integer from Standard; myAlpha: Real from Standard; myA1,myB1: Real from Standard; end CircularGrid from Aspect;