1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-21 10:55:33 +03:00
occt/src/Aspect/Aspect_CircularGrid.cdl
abv 6e33d3ced2 0024830: Remove redundant keyword 'mutable' in CDL declarations
Redundant keyword 'mutable' removed in CDL files.
In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed.
Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
2014-05-29 14:58:25 +04:00

96 lines
3.0 KiB
Plaintext

-- 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 <aStep> 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 <aNumber> 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 <RadiusStep> is not strictly positive.
---Warning: raises an exception if <DivisionNumber> 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;