Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:17

0001 // Copyright (c) Open CASCADE 2023
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _StepVisual_TriangulatedSurfaceSet_HeaderFile_
0015 #define _StepVisual_TriangulatedSurfaceSet_HeaderFile_
0016 
0017 #include <Standard.hxx>
0018 #include <StepVisual_TessellatedSurfaceSet.hxx>
0019 
0020 #include <TColStd_HArray1OfInteger.hxx>
0021 #include <TColStd_HArray2OfInteger.hxx>
0022 
0023 //! Representation of STEP entity TriangulatedSurfaceSet
0024 class StepVisual_TriangulatedSurfaceSet : public StepVisual_TessellatedSurfaceSet
0025 {
0026 public:
0027   //! default constructor
0028   Standard_EXPORT StepVisual_TriangulatedSurfaceSet();
0029 
0030   //! Initialize all fields (own and inherited)
0031   Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItemName,
0032                             const Handle(StepVisual_CoordinatesList)& theTessellatedFaceCoordinates,
0033                             const Standard_Integer theTessellatedFacePnmax,
0034                             const Handle(TColStd_HArray2OfReal)& theTessellatedFaceNormals,
0035                             const Handle(TColStd_HArray1OfInteger)& thePnindex,
0036                             const Handle(TColStd_HArray2OfInteger)& theTriangles);
0037 
0038   //! Returns field Pnindex
0039   const Handle(TColStd_HArray1OfInteger) Pnindex() const { return myPnindex; }
0040 
0041   //! Sets field Pnindex
0042   void SetPnindex(const Handle(TColStd_HArray1OfInteger)& thePnindex) { myPnindex = thePnindex; }
0043 
0044   //! Returns number of Pnindex
0045   Standard_EXPORT Standard_Integer NbPnindex() const;
0046 
0047   //! Returns value of Pnindex by its num
0048   Standard_EXPORT Standard_Integer PnindexValue(const Standard_Integer theNum) const;
0049 
0050   //! Returns field Triangles
0051   const Handle(TColStd_HArray2OfInteger) Triangles() const { return myTriangles; }
0052 
0053   //! Sets field Triangles
0054   void SetTriangles(const Handle(TColStd_HArray2OfInteger)& theTriangles)
0055   {
0056     myTriangles = theTriangles; 
0057   }
0058 
0059   //! Returns number of Triangles
0060   Standard_EXPORT Standard_Integer NbTriangles() const;
0061 
0062   DEFINE_STANDARD_RTTIEXT(StepVisual_TriangulatedSurfaceSet, StepVisual_TessellatedSurfaceSet)
0063 
0064 private:
0065 
0066   Handle(TColStd_HArray1OfInteger) myPnindex;
0067   Handle(TColStd_HArray2OfInteger) myTriangles;
0068 };
0069 
0070 #endif // _StepVisual_TriangulatedSurfaceSet_HeaderFile_