Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:59

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_HArray1OfIGESEntity.hxx>
0025 #include <TColStd_HArray1OfInteger.hxx>
0026 #include <TColgp_HArray1OfXYZ.hxx>
0027 #include <IGESData_IGESEntity.hxx>
0028 class gp_Pnt;
0029 
0030 
0031 class IGESDimen_NewDimensionedGeometry;
0032 DEFINE_STANDARD_HANDLE(IGESDimen_NewDimensionedGeometry, IGESData_IGESEntity)
0033 
0034 //! defines New Dimensioned Geometry, Type <402>, Form <21>
0035 //! in package IGESDimen
0036 //! Links a dimension entity with the geometry entities it
0037 //! is dimensioning, so that later, in the receiving
0038 //! database, the dimension can be automatically recalculated
0039 //! and redrawn should the geometry be changed.
0040 class IGESDimen_NewDimensionedGeometry : public IGESData_IGESEntity
0041 {
0042 
0043 public:
0044 
0045   
0046   Standard_EXPORT IGESDimen_NewDimensionedGeometry();
0047   
0048   //! This method is used to set the fields of the class
0049   //! NewDimensionedGeometry
0050   //! - nbDimen       : Number of Dimensions, default = 1
0051   //! - aDimen        : Dimension Entity
0052   //! - anOrientation : Dimension Orientation Flag
0053   //! - anAngle       : Angle Value
0054   //! - allEntities   : Geometric Entities
0055   //! - allLocations  : Dimension Location Flags
0056   //! - allPoints     : Points on the Geometry Entities
0057   //! exception raised if lengths of entities, locations, points
0058   //! are not the same
0059   Standard_EXPORT void Init (const Standard_Integer nbDimens, const Handle(IGESData_IGESEntity)& aDimen, const Standard_Integer anOrientation, const Standard_Real anAngle, const Handle(IGESData_HArray1OfIGESEntity)& allEntities, const Handle(TColStd_HArray1OfInteger)& allLocations, const Handle(TColgp_HArray1OfXYZ)& allPoints);
0060   
0061   //! returns the number of dimensions
0062   Standard_EXPORT Standard_Integer NbDimensions() const;
0063   
0064   //! returns the number of associated geometry entities
0065   Standard_EXPORT Standard_Integer NbGeometries() const;
0066   
0067   //! returns the dimension entity
0068   Standard_EXPORT Handle(IGESData_IGESEntity) DimensionEntity() const;
0069   
0070   //! returns the dimension orientation flag
0071   Standard_EXPORT Standard_Integer DimensionOrientationFlag() const;
0072   
0073   //! returns the angle value
0074   Standard_EXPORT Standard_Real AngleValue() const;
0075   
0076   //! returns the Index'th geometry entity
0077   //! raises exception if Index <= 0 or Index > NbGeometries()
0078   Standard_EXPORT Handle(IGESData_IGESEntity) GeometryEntity (const Standard_Integer Index) const;
0079   
0080   //! returns the Index'th geometry entity's dimension location flag
0081   //! raises exception if Index <= 0 or Index > NbGeometries()
0082   Standard_EXPORT Standard_Integer DimensionLocationFlag (const Standard_Integer Index) const;
0083   
0084   //! coordinate of point on Index'th geometry entity
0085   //! raises exception if Index <= 0 or Index > NbGeometries()
0086   Standard_EXPORT gp_Pnt Point (const Standard_Integer Index) const;
0087   
0088   //! coordinate of point on Index'th geometry entity after Transformation
0089   //! raises exception if Index <= 0 or Index > NbGeometries()
0090   Standard_EXPORT gp_Pnt TransformedPoint (const Standard_Integer Index) const;
0091 
0092 
0093 
0094 
0095   DEFINE_STANDARD_RTTIEXT(IGESDimen_NewDimensionedGeometry,IGESData_IGESEntity)
0096 
0097 protected:
0098 
0099 
0100 
0101 
0102 private:
0103 
0104 
0105   Standard_Integer theNbDimensions;
0106   Handle(IGESData_IGESEntity) theDimensionEntity;
0107   Standard_Integer theDimensionOrientationFlag;
0108   Standard_Real theAngleValue;
0109   Handle(IGESData_HArray1OfIGESEntity) theGeometryEntities;
0110   Handle(TColStd_HArray1OfInteger) theDimensionLocationFlags;
0111   Handle(TColgp_HArray1OfXYZ) thePoints;
0112 
0113 
0114 };
0115 
0116 
0117 
0118 
0119 
0120 
0121 
0122 #endif // _IGESDimen_NewDimensionedGeometry_HeaderFile