Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 2000-08-16
0002 // Created by: Andrey BETENEV
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _IGESCAFControl_HeaderFile
0017 #define _IGESCAFControl_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 class Quantity_Color;
0024 
0025 
0026 //! Provides high-level API to translate IGES file
0027 //! to and from DECAF document
0028 class IGESCAFControl 
0029 {
0030 public:
0031 
0032   DEFINE_STANDARD_ALLOC
0033 
0034   
0035   //! Provides a tool for writing IGES file
0036   //! Converts IGES color index to CASCADE color
0037   Standard_EXPORT static Quantity_Color DecodeColor (const Standard_Integer col);
0038   
0039   //! Tries to Convert CASCADE color to IGES color index
0040   //! If no corresponding color defined in IGES, returns 0
0041   Standard_EXPORT static Standard_Integer EncodeColor (const Quantity_Color& col);
0042 
0043 };
0044 
0045 #endif // _IGESCAFControl_HeaderFile