Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-23 09:19:29

0001 // Created on: 1996-12-26
0002 // Created by: Alexander BRIVIN and Dmitry TARASOV
0003 // Copyright (c) 1996-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 _Vrml_IndexedFaceSet_HeaderFile
0018 #define _Vrml_IndexedFaceSet_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <NCollection_Array1.hxx>
0025 #include <NCollection_HArray1.hxx>
0026 #include <Standard_Transient.hxx>
0027 #include <Standard_OStream.hxx>
0028 
0029 //! defines a IndexedFaceSet node of VRML specifying geometry shapes.
0030 //! This node represents a 3D shape formed by constructing faces (polygons) from
0031 //! vertices located at the current coordinates. IndexedFaceSet uses the indices
0032 //! in its coordIndex to define polygonal faces. An index of -1 separates faces
0033 //! (so a -1 at the end of the list is optional).
0034 class Vrml_IndexedFaceSet : public Standard_Transient
0035 {
0036 
0037 public:
0038   Standard_EXPORT Vrml_IndexedFaceSet(
0039     const occ::handle<NCollection_HArray1<int>>& aCoordIndex,
0040     const occ::handle<NCollection_HArray1<int>>& aMaterialIndex,
0041     const occ::handle<NCollection_HArray1<int>>& aNormalIndex,
0042     const occ::handle<NCollection_HArray1<int>>& aTextureCoordIndex);
0043 
0044   Standard_EXPORT Vrml_IndexedFaceSet();
0045 
0046   Standard_EXPORT void SetCoordIndex(const occ::handle<NCollection_HArray1<int>>& aCoordIndex);
0047 
0048   Standard_EXPORT occ::handle<NCollection_HArray1<int>> CoordIndex() const;
0049 
0050   Standard_EXPORT void SetMaterialIndex(
0051     const occ::handle<NCollection_HArray1<int>>& aMaterialIndex);
0052 
0053   Standard_EXPORT occ::handle<NCollection_HArray1<int>> MaterialIndex() const;
0054 
0055   Standard_EXPORT void SetNormalIndex(const occ::handle<NCollection_HArray1<int>>& aNormalIndex);
0056 
0057   Standard_EXPORT occ::handle<NCollection_HArray1<int>> NormalIndex() const;
0058 
0059   Standard_EXPORT void SetTextureCoordIndex(
0060     const occ::handle<NCollection_HArray1<int>>& aTextureCoordIndex);
0061 
0062   Standard_EXPORT occ::handle<NCollection_HArray1<int>> TextureCoordIndex() const;
0063 
0064   Standard_EXPORT Standard_OStream& Print(Standard_OStream& anOStream) const;
0065 
0066   DEFINE_STANDARD_RTTIEXT(Vrml_IndexedFaceSet, Standard_Transient)
0067 
0068 private:
0069   occ::handle<NCollection_HArray1<int>> myCoordIndex;
0070   occ::handle<NCollection_HArray1<int>> myMaterialIndex;
0071   occ::handle<NCollection_HArray1<int>> myNormalIndex;
0072   occ::handle<NCollection_HArray1<int>> myTextureCoordIndex;
0073 };
0074 
0075 #endif // _Vrml_IndexedFaceSet_HeaderFile