mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-04 11:36:52 +08:00
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.
116 lines
4.1 KiB
Plaintext
116 lines
4.1 KiB
Plaintext
-- Created on: 1996-12-05
|
|
-- Created by: Jean-Pierre COMBE/Odile Olivier
|
|
-- Copyright (c) 1996-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 ParallelRelation from AIS inherits Relation from AIS
|
|
|
|
---Purpose: A framework to display constraints of parallelism
|
|
-- between two or more Interactive Objects. These
|
|
-- entities can be faces or edges.
|
|
|
|
uses Shape from TopoDS,
|
|
Presentation from Prs3d,
|
|
PresentationManager3d from PrsMgr,
|
|
Selection from SelectMgr,
|
|
Plane from Geom,
|
|
Dir from gp,
|
|
Pnt from gp,
|
|
Projector from Prs3d,
|
|
Transformation from Geom,
|
|
ArrowSide from DsgPrs
|
|
|
|
is
|
|
Create (aFShape : Shape from TopoDS;
|
|
aSShape : Shape from TopoDS;
|
|
aPlane : Plane from Geom)
|
|
---Purpose: Constructs an object to display parallel constraints.
|
|
-- This object is defined by the first shape aFShape and
|
|
-- the second shape aSShape and the plane aPlane.
|
|
returns ParallelRelation from AIS;
|
|
|
|
Create (aFShape : Shape from TopoDS;
|
|
aSShape : Shape from TopoDS;
|
|
aPlane : Plane from Geom;
|
|
aPosition : Pnt from gp;
|
|
aSymbolPrs : ArrowSide from DsgPrs;
|
|
anArrowSize : Real from Standard = 0.01)
|
|
---Purpose: Constructs an object to display parallel constraints.
|
|
-- This object is defined by the first shape aFShape and
|
|
-- the second shape aSShape the plane aPlane, the
|
|
-- position aPosition, the type of arrow, aSymbolPrs and
|
|
-- its size anArrowSize.
|
|
returns ParallelRelation from AIS;
|
|
|
|
IsMovable(me) returns Boolean from Standard
|
|
---Purpose: Returns true if the parallelism is movable.
|
|
---C++: inline
|
|
is redefined;
|
|
|
|
-- Methods from PresentableObject
|
|
|
|
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 <aProjector>.
|
|
-- To be Used when the associated degenerated Presentations
|
|
-- have been transformed by <aTrsf> which is not a Pure
|
|
-- Translation. The HLR Prs can't be deducted automatically
|
|
-- WARNING :<aTrsf> 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;
|
|
|
|
|
|
|
|
--
|
|
-- Computation private methods
|
|
--
|
|
|
|
ComputeTwoFacesParallel(me: mutable;
|
|
aPresentation : Presentation from Prs3d)
|
|
is private;
|
|
|
|
ComputeTwoEdgesParallel(me: mutable;
|
|
aPresentation : Presentation from Prs3d)
|
|
is private;
|
|
|
|
|
|
fields
|
|
|
|
myFAttach : Pnt from gp;
|
|
mySAttach : Pnt from gp;
|
|
myDirAttach : Dir from gp;
|
|
|
|
end ParallelRelation;
|
|
|