-- Created on: 1997-04-28 -- Created by: Christian CAILLET -- Copyright (c) 1997-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. class MakeTransformed from StepToTopoDS inherits Root ---Purpose : Produces instances by Transformation of a basic item uses Trsf from gp, Shape from TopoDS, TransientProcess from Transfer, Axis2Placement3d from StepGeom, CartesianTransformationOperator3d from StepGeom, MappedItem from StepRepr is Create returns MakeTransformed; Compute (me : in out; Origin, Target : Axis2Placement3d from StepGeom) returns Boolean; ---Purpose : Computes a transformation to pass from an Origin placement to -- a Target placement. Returns True when done -- If not done, the transformation will by Identity Compute (me : in out; Operator : CartesianTransformationOperator3d from StepGeom) returns Boolean; ---Purpose : Computes a transformation defined by an operator 3D Transformation (me) returns Trsf from gp; ---Purpose : Returns the computed transformation (Identity if not yet or -- if failed) ---C++ : return const & Transform (me; shape : in out Shape from TopoDS) returns Boolean; ---Purpose : Applies the computed transformation to a shape -- Returns False if the transformation is Identity TranslateMappedItem (me : in out; mapit : MappedItem from StepRepr; TP : mutable TransientProcess from Transfer) returns Shape; ---Purpose : Translates a MappedItem. More precisely -- A MappedItem has a MappingSource and a MappingTarget -- MappingSource has a MappedRepresentation and a MappingOrigin -- MappedRepresentation is the basic item to be instanced -- MappingOrigin is the starting placement -- MappingTarget is the final placement -- -- Hence, the transformation from MappingOrigin and MappingTarget -- is computed, the MappedRepr. is converted to a Shape, then -- transformed as an instance of this Shape fields theTrsf : Trsf from gp; end MakeTransformed;