Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/XCAFPrs.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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