mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-20 19:28:34 +08:00
158 lines
6.7 KiB
Plaintext
Executable File
158 lines
6.7 KiB
Plaintext
Executable File
-- Created on: 1993-01-11
|
|
-- Created by: CKY / Contract Toubro-Larsen ( Niraj RANGWALA )
|
|
-- Copyright (c) 1993-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 NetworkSubfigureDef from IGESDraw inherits IGESEntity
|
|
|
|
---Purpose : defines IGESNetworkSubfigureDef,
|
|
-- Type <320> Form Number <0> in package IGESDraw
|
|
--
|
|
-- This class differs from the ordinary subfigure definition
|
|
-- in that it defines a specialized subfigure, one whose
|
|
-- instances may participate in networks.
|
|
--
|
|
-- The Number of associated(child) Connect Point Entities
|
|
-- in the Network Subfigure Instance must match the number
|
|
-- in the Network Subfigure Definition, their order must
|
|
-- be identical, and any unused points of connection in
|
|
-- the instance must be indicated by a null(zero) pointer.
|
|
--
|
|
|
|
uses
|
|
|
|
HArray1OfIGESEntity from IGESData,
|
|
ConnectPoint from IGESDraw,
|
|
HArray1OfConnectPoint from IGESDraw,
|
|
TextDisplayTemplate from IGESGraph,
|
|
HAsciiString from TCollection
|
|
|
|
raises OutOfRange
|
|
|
|
is
|
|
|
|
Create returns mutable NetworkSubfigureDef;
|
|
|
|
-- Specific Methods pertaining to the class
|
|
|
|
Init (me : mutable;
|
|
aDepth : Integer;
|
|
aName : HAsciiString;
|
|
allEntities : HArray1OfIGESEntity;
|
|
aTypeFlag : Integer;
|
|
aDesignator : HAsciiString;
|
|
aTemplate : TextDisplayTemplate;
|
|
allPointEntities : HArray1OfConnectPoint);
|
|
---Purpose : This method is used to set fields of the class
|
|
-- NetworkSubfigureDef
|
|
-- - aDepth : Depth of Subfigure
|
|
-- (indicating the amount of nesting)
|
|
-- - aName : Subfigure Name
|
|
-- - allEntities : Associated subfigures Entities exclusive
|
|
-- of primary reference designator and
|
|
-- Control Points.
|
|
-- - aTypeFlag : Type flag determines which Entity
|
|
-- belongs in which design
|
|
-- (Logical design or Physical design)
|
|
-- - aDesignator : Designator HAsciiString and its Template
|
|
-- - allPointEntities : Associated Connect Point Entities
|
|
|
|
Depth (me) returns Integer;
|
|
---Purpose : returns Depth of Subfigure(indication the amount of nesting)
|
|
-- Note : The Depth is inclusive of both Network Subfigure Definition
|
|
-- Entity and the Ordinary Subfigure Definition Entity.
|
|
-- Thus, the two may be nested.
|
|
|
|
Name (me) returns HAsciiString from TCollection;
|
|
---Purpose : returns the Subfigure Name
|
|
|
|
NbEntities (me) returns Integer;
|
|
---Purpose : returns Number of Associated(child) entries in subfigure exclusive
|
|
-- of primary reference designator and Control Points
|
|
|
|
Entity (me; Index : Integer) returns IGESEntity
|
|
raises OutOfRange;
|
|
---Purpose : returns the Index'th IGESEntity in subfigure exclusive of primary
|
|
-- reference designator and Control Points
|
|
-- raises exception if Index <=0 or Index > NbEntities()
|
|
|
|
TypeFlag (me) returns Integer;
|
|
---Purpose : return value = 0 : Not Specified
|
|
-- = 1 : Logical design
|
|
-- = 2 : Physical design
|
|
|
|
Designator (me) returns HAsciiString from TCollection;
|
|
---Purpose : returns Primary Reference Designator
|
|
|
|
HasDesignatorTemplate (me) returns Boolean;
|
|
---Purpose : returns True if Text Display Template is specified for
|
|
-- primary designator else returns False
|
|
|
|
DesignatorTemplate (me) returns TextDisplayTemplate;
|
|
---Purpose : if Text Display Template specified then return TextDisplayTemplate
|
|
-- else return NULL Handle
|
|
|
|
NbPointEntities (me) returns Integer;
|
|
---Purpose : returns the Number Of Associated(child) Connect Point Entities
|
|
|
|
HasPointEntity (me; Index : Integer) returns Boolean
|
|
raises OutOfRange;
|
|
---Purpose : returns True is Index'th Associated Connect Point Entity is present
|
|
-- else returns False
|
|
-- raises exception if Index is out of bound
|
|
|
|
PointEntity (me; Index : Integer) returns ConnectPoint
|
|
raises OutOfRange;
|
|
---Purpose : returns the Index'th Associated Connect Point Entity
|
|
-- raises exception if Index <= 0 or Index > NbPointEntities()
|
|
|
|
fields
|
|
|
|
--
|
|
-- Class : IGESDraw_NetworkSubfigureDef
|
|
--
|
|
-- Purpose : Declaration of the variables specific to a NetworkSubfigureDef.
|
|
--
|
|
-- Reminder : A NetworkSubfigureDef is defined by :
|
|
-- - Depth of Subfigure(indicating the amount of nesting)
|
|
-- - Subfigure Name
|
|
-- - Associated subfigures Entities exclusive
|
|
-- of primary reference designator and Control Points.
|
|
-- - Type flag determines which Entity belongs in which design
|
|
-- (Logical design or Physical design)
|
|
-- - Designator HAsciiString and its Template
|
|
-- - Associated Connect Point Entities
|
|
--
|
|
|
|
theDepth : Integer;
|
|
|
|
theName : HAsciiString;
|
|
|
|
theEntities : HArray1OfIGESEntity;
|
|
|
|
theTypeFlag : Integer;
|
|
|
|
theDesignator : HAsciiString;
|
|
|
|
theDesignatorTemplate : TextDisplayTemplate;
|
|
|
|
thePointEntities : HArray1OfConnectPoint;
|
|
|
|
end NetworkSubfigureDef;
|