// Created on: 1993-01-11 // Created by: CKY / Contract Toubro-Larsen ( TCD ) // Copyright (c) 1993-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. #ifndef _IGESDraw_NetworkSubfigure_HeaderFile #define _IGESDraw_NetworkSubfigure_HeaderFile #include "Standard.hxx" #include "Standard_Type.hxx" #include "gp_XYZ.hxx" #include "Standard_Integer.hxx" #include "IGESDraw_ConnectPoint.hxx" #include "NCollection_Array1.hxx" #include "NCollection_HArray1.hxx" #include "IGESData_IGESEntity.hxx" class IGESDraw_NetworkSubfigureDef; class TCollection_HAsciiString; class IGESGraph_TextDisplayTemplate; class IGESDraw_ConnectPoint; //! defines IGES Network Subfigure Instance Entity, //! Type <420> Form Number <0> in package IGESDraw //! //! Used to specify each instance of Network Subfigure //! Definition Entity (Type 320, Form 0). class IGESDraw_NetworkSubfigure : public IGESData_IGESEntity { public: Standard_EXPORT IGESDraw_NetworkSubfigure(); //! This method is used to set the fields of the class //! NetworkSubfigure //! - aDefinition : Network Subfigure Definition Entity //! - aTranslation : Translation data relative to the model //! space or the definition space //! - aScaleFactor : Scale factors in the definition space //! - aTypeFlag : Type flag //! - aDesignator : Primary reference designator //! - aTemplate : Primary reference designator Text //! display Template Entity //! - allConnectPoints : Associated Connect Point Entities Standard_EXPORT void Init( const occ::handle& aDefinition, const gp_XYZ& aTranslation, const gp_XYZ& aScaleFactor, const int aTypeFlag, const occ::handle& aDesignator, const occ::handle& aTemplate, const occ::handle>>& allConnectPoints); //! returns Network Subfigure Definition Entity specified by this entity Standard_EXPORT occ::handle SubfigureDefinition() const; //! returns Translation Data relative to either model space or to //! the definition space of a referring entity Standard_EXPORT gp_XYZ Translation() const; //! returns the Transformed Translation Data relative to either model //! space or to the definition space of a referring entity Standard_EXPORT gp_XYZ TransformedTranslation() const; //! returns Scale factor in definition space(x, y, z axes) Standard_EXPORT gp_XYZ ScaleFactors() const; //! returns Type Flag which implements the distinction between Logical //! design and Physical design data,and is required if both are present. //! Type Flag = 0 : Not specified (default) //! = 1 : Logical //! = 2 : Physical Standard_EXPORT int TypeFlag() const; //! returns the primary reference designator Standard_EXPORT occ::handle ReferenceDesignator() const; //! returns True if Text Display Template Entity is specified, //! else False Standard_EXPORT bool HasDesignatorTemplate() const; //! returns primary reference designator Text Display Template Entity, //! or null. If null, no Text Display Template Entity specified Standard_EXPORT occ::handle DesignatorTemplate() const; //! returns the number of associated Connect Point Entities Standard_EXPORT int NbConnectPoints() const; //! returns the Index'th associated Connect point Entity //! raises exception if Index <= 0 or Index > NbConnectPoints() Standard_EXPORT occ::handle ConnectPoint(const int Index) const; DEFINE_STANDARD_RTTIEXT(IGESDraw_NetworkSubfigure, IGESData_IGESEntity) private: occ::handle theSubfigureDefinition; gp_XYZ theTranslation; gp_XYZ theScaleFactor; int theTypeFlag; occ::handle theDesignator; occ::handle theDesignatorTemplate; occ::handle>> theConnectPoints; }; #endif // _IGESDraw_NetworkSubfigure_HeaderFile