Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:00

0001 // Created on: 1993-01-09
0002 // Created by: CKY / Contract Toubro-Larsen ( TCD )
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 _IGESDraw_DrawingWithRotation_HeaderFile
0018 #define _IGESDraw_DrawingWithRotation_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <IGESDraw_HArray1OfViewKindEntity.hxx>
0024 #include <TColgp_HArray1OfXY.hxx>
0025 #include <TColStd_HArray1OfReal.hxx>
0026 #include <IGESData_HArray1OfIGESEntity.hxx>
0027 #include <IGESData_IGESEntity.hxx>
0028 #include <Standard_Integer.hxx>
0029 class IGESData_ViewKindEntity;
0030 class gp_Pnt2d;
0031 class gp_XY;
0032 class gp_XYZ;
0033 
0034 
0035 class IGESDraw_DrawingWithRotation;
0036 DEFINE_STANDARD_HANDLE(IGESDraw_DrawingWithRotation, IGESData_IGESEntity)
0037 
0038 //! defines IGESDrawingWithRotation, Type <404> Form <1>
0039 //! in package IGESDraw
0040 //!
0041 //! Permits rotation, in addition to transformation and
0042 //! scaling, between the view and drawing coordinate systems
0043 class IGESDraw_DrawingWithRotation : public IGESData_IGESEntity
0044 {
0045 
0046 public:
0047 
0048   
0049   Standard_EXPORT IGESDraw_DrawingWithRotation();
0050   
0051   //! This method is used to set the fields of the class
0052   //! DrawingWithRotation
0053   //! - allViews             : Pointers to View entities
0054   //! - allViewOrigins       : Origin coords of transformed views
0055   //! - allOrientationAngles : Orientation angles of transformed views
0056   //! - allAnnotations       : Pointers to Annotation entities
0057   //! raises exception if Lengths of allViews, allViewOrigins and
0058   //! allOrientationAngles are not same.
0059   Standard_EXPORT void Init (const Handle(IGESDraw_HArray1OfViewKindEntity)& allViews, const Handle(TColgp_HArray1OfXY)& allViewOrigins, const Handle(TColStd_HArray1OfReal)& allOrientationAngles, const Handle(IGESData_HArray1OfIGESEntity)& allAnnotations);
0060   
0061   //! returns the number of view pointers in <me>
0062   Standard_EXPORT Standard_Integer NbViews() const;
0063   
0064   //! returns the View entity indicated by Index
0065   //! raises an exception if Index <= 0 or Index > NbViews().
0066   Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer Index) const;
0067   
0068   //! returns the Drawing space coordinates of the origin of the
0069   //! Transformed view indicated by Index
0070   //! raises an exception if Index <= 0 or Index > NbViews().
0071   Standard_EXPORT gp_Pnt2d ViewOrigin (const Standard_Integer Index) const;
0072   
0073   //! returns the Orientation angle for the Transformed view
0074   //! indicated by Index
0075   //! raises an exception if Index <= 0 or Index > NbViews().
0076   Standard_EXPORT Standard_Real OrientationAngle (const Standard_Integer Index) const;
0077   
0078   //! returns the number of Annotation entities in <me>
0079   Standard_EXPORT Standard_Integer NbAnnotations() const;
0080   
0081   //! returns the Annotation entity in this Drawing, indicated by Index
0082   //! raises an exception if Index <= 0 or Index > NbAnnotations().
0083   Standard_EXPORT Handle(IGESData_IGESEntity) Annotation (const Standard_Integer Index) const;
0084   
0085   Standard_EXPORT gp_XY ViewToDrawing (const Standard_Integer NumView, const gp_XYZ& ViewCoords) const;
0086   
0087   //! Returns the Drawing Unit Value if it is specified (by a
0088   //! specific property entity)
0089   //! If not specified, returns False, and val as zero :
0090   //! unit to consider is then the model unit in GlobalSection
0091   Standard_EXPORT Standard_Boolean DrawingUnit (Standard_Real& value) const;
0092   
0093   //! Returns the Drawing Size if it is specified (by a
0094   //! specific property entity)
0095   //! If not specified, returns False, and X,Y as zero :
0096   //! unit to consider is then the model unit in GlobalSection
0097   Standard_EXPORT Standard_Boolean DrawingSize (Standard_Real& X, Standard_Real& Y) const;
0098 
0099 
0100 
0101 
0102   DEFINE_STANDARD_RTTIEXT(IGESDraw_DrawingWithRotation,IGESData_IGESEntity)
0103 
0104 protected:
0105 
0106 
0107 
0108 
0109 private:
0110 
0111 
0112   Handle(IGESDraw_HArray1OfViewKindEntity) theViews;
0113   Handle(TColgp_HArray1OfXY) theViewOrigins;
0114   Handle(TColStd_HArray1OfReal) theOrientationAngles;
0115   Handle(IGESData_HArray1OfIGESEntity) theAnnotations;
0116 
0117 
0118 };
0119 
0120 
0121 
0122 
0123 
0124 
0125 
0126 #endif // _IGESDraw_DrawingWithRotation_HeaderFile