Back to home page

EIC code displayed by LXR

 
 

    


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

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_IndexedLineSet_HeaderFile
0018 #define _Vrml_IndexedLineSet_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <TColStd_HArray1OfInteger.hxx>
0024 #include <Standard_Transient.hxx>
0025 #include <Standard_OStream.hxx>
0026 
0027 
0028 class Vrml_IndexedLineSet;
0029 DEFINE_STANDARD_HANDLE(Vrml_IndexedLineSet, Standard_Transient)
0030 
0031 //! defines a IndexedLineSet node of VRML specifying geometry shapes.
0032 //! This node represents a 3D shape formed by constructing polylines from vertices
0033 //! located at the current coordinates. IndexedLineSet uses the indices in its coordIndex
0034 //! field to specify the polylines. An index of -1 separates one polyline from the next
0035 //! (thus, a final -1 is optional). the current polyline has ended and the next one begins.
0036 //! Treatment of the current material and normal binding is as follows: The PER_PART binding
0037 //! specifies a material or normal for each segment of the line. The PER_FACE binding
0038 //! specifies a material or normal for each polyline. PER_VERTEX specifies a material or
0039 //! normal for each vertex. The corresponding _INDEXED bindings are the same, but use
0040 //! the materialIndex or normalIndex indices. The DEFAULT material binding is equal
0041 //! to OVERALL. The DEFAULT normal binding is equal to  PER_VERTEX_INDEXED;
0042 //! if insufficient normals exist in the state, the lines will be drawn unlit. The same
0043 //! rules for texture coordinate generation as IndexedFaceSet are used.
0044 class Vrml_IndexedLineSet : public Standard_Transient
0045 {
0046 
0047 public:
0048 
0049   
0050   Standard_EXPORT Vrml_IndexedLineSet(const Handle(TColStd_HArray1OfInteger)& aCoordIndex, const Handle(TColStd_HArray1OfInteger)& aMaterialIndex, const Handle(TColStd_HArray1OfInteger)& aNormalIndex, const Handle(TColStd_HArray1OfInteger)& aTextureCoordIndex);
0051   
0052   Standard_EXPORT Vrml_IndexedLineSet();
0053   
0054   Standard_EXPORT void SetCoordIndex (const Handle(TColStd_HArray1OfInteger)& aCoordIndex);
0055   
0056   Standard_EXPORT Handle(TColStd_HArray1OfInteger) CoordIndex() const;
0057   
0058   Standard_EXPORT void SetMaterialIndex (const Handle(TColStd_HArray1OfInteger)& aMaterialIndex);
0059   
0060   Standard_EXPORT Handle(TColStd_HArray1OfInteger) MaterialIndex() const;
0061   
0062   Standard_EXPORT void SetNormalIndex (const Handle(TColStd_HArray1OfInteger)& aNormalIndex);
0063   
0064   Standard_EXPORT Handle(TColStd_HArray1OfInteger) NormalIndex() const;
0065   
0066   Standard_EXPORT void SetTextureCoordIndex (const Handle(TColStd_HArray1OfInteger)& aTextureCoordIndex);
0067   
0068   Standard_EXPORT Handle(TColStd_HArray1OfInteger) TextureCoordIndex() const;
0069   
0070   Standard_EXPORT Standard_OStream& Print (Standard_OStream& anOStream) const;
0071 
0072 
0073 
0074 
0075   DEFINE_STANDARD_RTTIEXT(Vrml_IndexedLineSet,Standard_Transient)
0076 
0077 protected:
0078 
0079 
0080 
0081 
0082 private:
0083 
0084 
0085   Handle(TColStd_HArray1OfInteger) myCoordIndex;
0086   Handle(TColStd_HArray1OfInteger) myMaterialIndex;
0087   Handle(TColStd_HArray1OfInteger) myNormalIndex;
0088   Handle(TColStd_HArray1OfInteger) myTextureCoordIndex;
0089 
0090 
0091 };
0092 
0093 
0094 
0095 
0096 
0097 
0098 
0099 #endif // _Vrml_IndexedLineSet_HeaderFile