Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 2000-08-11
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 _XCAFPrs_HeaderFile
0017 #define _XCAFPrs_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <XCAFPrs_IndexedDataMapOfShapeStyle.hxx>
0024 #include <Standard_Boolean.hxx>
0025 class TDF_Label;
0026 class TopLoc_Location;
0027 
0028 
0029 //! Presentation (visualiation, selection etc.) tools for
0030 //! DECAF documents
0031 class XCAFPrs 
0032 {
0033 public:
0034 
0035   DEFINE_STANDARD_ALLOC
0036 
0037   
0038   //! Collect styles defined for shape on label L
0039   //! and its components and subshapes and fills a map of
0040   //! shape - style correspondence
0041   //! The location <loc> is for internal use, it
0042   //! should be Null location for external call
0043   Standard_EXPORT static void CollectStyleSettings (const TDF_Label& L, const TopLoc_Location& loc, XCAFPrs_IndexedDataMapOfShapeStyle& settings, const Quantity_ColorRGBA& theLayerColor = Quantity_ColorRGBA(Quantity_NOC_WHITE));
0044   
0045   //! Set ViewNameMode for indicate display names or not.
0046   Standard_EXPORT static void SetViewNameMode (const Standard_Boolean viewNameMode);
0047   
0048   Standard_EXPORT static Standard_Boolean GetViewNameMode();
0049 
0050 };
0051 
0052 #endif // _XCAFPrs_HeaderFile