1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-01 10:26:12 +03:00
occt/src/IGESBasic/IGESBasic_SubfigureDef.hxx
abv 92efcf78a6 0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
Automatic restore of IMPLEMENT_STANDARD_RTTIEXT macro (upgrade -rtti)
2015-12-04 14:15:06 +03:00

100 lines
3.0 KiB
C++

// Created on: 1993-01-09
// Created by: CKY / Contract Toubro-Larsen ( Arun MENON )
// 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 _IGESBasic_SubfigureDef_HeaderFile
#define _IGESBasic_SubfigureDef_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
class Standard_OutOfRange;
class IGESData_IGESEntity;
class Standard_Transient;
class IGESBasic_SubfigureDef;
DEFINE_STANDARD_HANDLE(IGESBasic_SubfigureDef, IGESData_IGESEntity)
//! defines SubfigureDef, Type <308> Form <0>
//! in package IGESBasic
//! This Entity permits a single definition of a detail to
//! be utilized in multiple instances in the creation of
//! the whole picture
class IGESBasic_SubfigureDef : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESBasic_SubfigureDef();
//! This method is used to set the fields of the class
//! SubfigureDef
//! - aDepth : It indicates the amount of nesting
//! - aName : the subfigure name
//! - allAssocEntities : the associated entities
Standard_EXPORT void Init (const Standard_Integer aDepth, const Handle(TCollection_HAsciiString)& aName, const Handle(IGESData_HArray1OfIGESEntity)& allAssocEntities);
//! returns depth of the Subfigure
//! if theDepth = 0 - No reference to any subfigure instance.
Standard_EXPORT Standard_Integer Depth() const;
//! returns the name of Subfigure
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
//! returns number of entities. Is greater than or equal to zero.
Standard_EXPORT Standard_Integer NbEntities() const;
//! returns the specific entity as indicated by Index
//! raises exception if Index <= 0 or Index > NbEntities()
Standard_EXPORT Handle(IGESData_IGESEntity) AssociatedEntity (const Standard_Integer Index) const;
//! returns the specific entity as indicated by Index
//! raises exception if Index <= 0 or Index > NbEntities()
Standard_EXPORT Handle(Standard_Transient) Value (const Standard_Integer Index) const;
DEFINE_STANDARD_RTTIEXT(IGESBasic_SubfigureDef,IGESData_IGESEntity)
protected:
private:
Standard_Integer theDepth;
Handle(TCollection_HAsciiString) theName;
Handle(IGESData_HArray1OfIGESEntity) theAssocEntities;
};
#endif // _IGESBasic_SubfigureDef_HeaderFile