|
|
|||
File indexing completed on 2026-11-12 10:51:54
0001 // Created on: 1993-01-09 0002 // Created by: CKY / Contract Toubro-Larsen (Anand NATRAJAN) 0003 // Copyright (c) 1993-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _IGESDimen_NewDimensionedGeometry_HeaderFile 0018 #define _IGESDimen_NewDimensionedGeometry_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <Standard_Integer.hxx> 0024 #include <IGESData_IGESEntity.hxx> 0025 #include <NCollection_Array1.hxx> 0026 #include <NCollection_HArray1.hxx> 0027 #include <gp_XYZ.hxx> 0028 class gp_Pnt; 0029 0030 //! defines New Dimensioned Geometry, Type <402>, Form <21> 0031 //! in package IGESDimen 0032 //! Links a dimension entity with the geometry entities it 0033 //! is dimensioning, so that later, in the receiving 0034 //! database, the dimension can be automatically recalculated 0035 //! and redrawn should the geometry be changed. 0036 class IGESDimen_NewDimensionedGeometry : public IGESData_IGESEntity 0037 { 0038 0039 public: 0040 Standard_EXPORT IGESDimen_NewDimensionedGeometry(); 0041 0042 //! This method is used to set the fields of the class 0043 //! NewDimensionedGeometry 0044 //! - nbDimen : Number of Dimensions, default = 1 0045 //! - aDimen : Dimension Entity 0046 //! - anOrientation : Dimension Orientation Flag 0047 //! - anAngle : Angle Value 0048 //! - allEntities : Geometric Entities 0049 //! - allLocations : Dimension Location Flags 0050 //! - allPoints : Points on the Geometry Entities 0051 //! exception raised if lengths of entities, locations, points 0052 //! are not the same 0053 Standard_EXPORT void Init( 0054 const int nbDimens, 0055 const occ::handle<IGESData_IGESEntity>& aDimen, 0056 const int anOrientation, 0057 const double anAngle, 0058 const occ::handle<NCollection_HArray1<occ::handle<IGESData_IGESEntity>>>& allEntities, 0059 const occ::handle<NCollection_HArray1<int>>& allLocations, 0060 const occ::handle<NCollection_HArray1<gp_XYZ>>& allPoints); 0061 0062 //! returns the number of dimensions 0063 Standard_EXPORT int NbDimensions() const; 0064 0065 //! returns the number of associated geometry entities 0066 Standard_EXPORT int NbGeometries() const; 0067 0068 //! returns the dimension entity 0069 Standard_EXPORT occ::handle<IGESData_IGESEntity> DimensionEntity() const; 0070 0071 //! returns the dimension orientation flag 0072 Standard_EXPORT int DimensionOrientationFlag() const; 0073 0074 //! returns the angle value 0075 Standard_EXPORT double AngleValue() const; 0076 0077 //! returns the Index'th geometry entity 0078 //! raises exception if Index <= 0 or Index > NbGeometries() 0079 Standard_EXPORT occ::handle<IGESData_IGESEntity> GeometryEntity(const int Index) const; 0080 0081 //! returns the Index'th geometry entity's dimension location flag 0082 //! raises exception if Index <= 0 or Index > NbGeometries() 0083 Standard_EXPORT int DimensionLocationFlag(const int Index) const; 0084 0085 //! coordinate of point on Index'th geometry entity 0086 //! raises exception if Index <= 0 or Index > NbGeometries() 0087 Standard_EXPORT gp_Pnt Point(const int Index) const; 0088 0089 //! coordinate of point on Index'th geometry entity after Transformation 0090 //! raises exception if Index <= 0 or Index > NbGeometries() 0091 Standard_EXPORT gp_Pnt TransformedPoint(const int Index) const; 0092 0093 DEFINE_STANDARD_RTTIEXT(IGESDimen_NewDimensionedGeometry, IGESData_IGESEntity) 0094 0095 private: 0096 int theNbDimensions; 0097 occ::handle<IGESData_IGESEntity> theDimensionEntity; 0098 int theDimensionOrientationFlag; 0099 double theAngleValue; 0100 occ::handle<NCollection_HArray1<occ::handle<IGESData_IGESEntity>>> theGeometryEntities; 0101 occ::handle<NCollection_HArray1<int>> theDimensionLocationFlags; 0102 occ::handle<NCollection_HArray1<gp_XYZ>> thePoints; 0103 }; 0104 0105 #endif // _IGESDimen_NewDimensionedGeometry_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|