Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/IGESSelect_SignColor.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: 2001-03-06
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 2001-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 _IGESSelect_SignColor_HeaderFile
0017 #define _IGESSelect_SignColor_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <Standard_Integer.hxx>
0023 #include <IFSelect_Signature.hxx>
0024 #include <Standard_CString.hxx>
0025 class Standard_Transient;
0026 class Interface_InterfaceModel;
0027 
0028 //! Gives Color attached to an entity
0029 //! Several forms are possible, according to <mode>
0030 //! 1 : number : "Dnn" for entity, "Snn" for standard, "(none)" for 0
0031 //! 2 : name : Of standard color, or of the color entity, or "(none)"
0032 //! (if the color entity has no name, its label is taken)
0033 //! 3 : RGB values, form R:nn,G:nn,B:nn
0034 //! 4 : RED value   : an integer
0035 //! 5 : GREEN value : an integer
0036 //! 6 : BLUE value  : an integer
0037 //! Other computable values can be added if needed :
0038 //! CMY values, Percentages for Hue, Lightness, Saturation
0039 class IGESSelect_SignColor : public IFSelect_Signature
0040 {
0041 
0042 public:
0043   //! Creates a SignColor
0044   //! mode : see above for the meaning
0045   //! modes 4,5,6 give a numeric integer value
0046   //! Name is initialised according to the mode
0047   Standard_EXPORT IGESSelect_SignColor(const int mode);
0048 
0049   //! Returns the value (see above)
0050   Standard_EXPORT const char* Value(
0051     const occ::handle<Standard_Transient>&       ent,
0052     const occ::handle<Interface_InterfaceModel>& model) const override;
0053 
0054   DEFINE_STANDARD_RTTIEXT(IGESSelect_SignColor, IFSelect_Signature)
0055 
0056 private:
0057   int themode;
0058 };
0059 
0060 #endif // _IGESSelect_SignColor_HeaderFile