0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / IGESGeom / IGESGeom_CompositeCurve.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-01-09
2// Created by: CKY / Contract Toubro-Larsen (Kiran)
3// Copyright (c) 1993-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _IGESGeom_CompositeCurve_HeaderFile
18#define _IGESGeom_CompositeCurve_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <IGESData_HArray1OfIGESEntity.hxx>
24#include <IGESData_IGESEntity.hxx>
25#include <Standard_Integer.hxx>
26class Standard_OutOfRange;
27class IGESData_IGESEntity;
28
29
30class IGESGeom_CompositeCurve;
31DEFINE_STANDARD_HANDLE(IGESGeom_CompositeCurve, IGESData_IGESEntity)
32
33//! defines IGESCompositeCurve, Type <102> Form <0>
34//! in package IGESGeom
35//! A composite curve is defined as an ordered list of entities
36//! consisting of a point, connect point and parametrised curve
37//! entities (excluding the CompositeCurve entity).
38class IGESGeom_CompositeCurve : public IGESData_IGESEntity
39{
40
41public:
42
43
44 Standard_EXPORT IGESGeom_CompositeCurve();
45
46 //! This method is used to set the fields of the class
47 //! CompositeCurve
48 //! - allEntities : Constituent Entities of the composite curve
49 Standard_EXPORT void Init (const Handle(IGESData_HArray1OfIGESEntity)& allEntities);
50
51 //! returns the number of curves contained in the CompositeCurve
52 Standard_EXPORT Standard_Integer NbCurves() const;
53
54 //! returns Component of the CompositeCurve (a curve or a point)
55 //! raises exception if Index <= 0 or Index > NbCurves()
56 Standard_EXPORT Handle(IGESData_IGESEntity) Curve (const Standard_Integer Index) const;
57
58
59
60
61 DEFINE_STANDARD_RTTI(IGESGeom_CompositeCurve,IGESData_IGESEntity)
62
63protected:
64
65
66
67
68private:
69
70
71 Handle(IGESData_HArray1OfIGESEntity) theEntities;
72
73
74};
75
76
77
78
79
80
81
82#endif // _IGESGeom_CompositeCurve_HeaderFile