Back to home page

EIC code displayed by LXR

 
 

    


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

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 
0029 class IGESSelect_SignColor;
0030 DEFINE_STANDARD_HANDLE(IGESSelect_SignColor, IFSelect_Signature)
0031 
0032 //! Gives Color attached to an entity
0033 //! Several forms are possible, according to <mode>
0034 //! 1 : number : "Dnn" for entity, "Snn" for standard, "(none)" for 0
0035 //! 2 : name : Of standard color, or of the color entity, or "(none)"
0036 //! (if the color entity has no name, its label is taken)
0037 //! 3 : RGB values, form R:nn,G:nn,B:nn
0038 //! 4 : RED value   : an integer
0039 //! 5 : GREEN value : an integer
0040 //! 6 : BLUE value  : an integer
0041 //! Other computable values can be added if needed :
0042 //! CMY values, Percentages for Hue, Lightness, Saturation
0043 class IGESSelect_SignColor : public IFSelect_Signature
0044 {
0045 
0046 public:
0047 
0048   
0049   //! Creates a SignColor
0050   //! mode : see above for the meaning
0051   //! modes 4,5,6 give a numeric integer value
0052   //! Name is initialised according to the mode
0053   Standard_EXPORT IGESSelect_SignColor(const Standard_Integer mode);
0054   
0055   //! Returns the value (see above)
0056   Standard_EXPORT Standard_CString Value (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
0057 
0058 
0059 
0060 
0061   DEFINE_STANDARD_RTTIEXT(IGESSelect_SignColor,IFSelect_Signature)
0062 
0063 protected:
0064 
0065 
0066 
0067 
0068 private:
0069 
0070 
0071   Standard_Integer themode;
0072 
0073 
0074 };
0075 
0076 
0077 
0078 
0079 
0080 
0081 
0082 #endif // _IGESSelect_SignColor_HeaderFile