File indexing completed on 2025-01-18 10:04:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Prs3d_ShadingAspect_HeaderFile
0018 #define _Prs3d_ShadingAspect_HeaderFile
0019
0020 #include <Aspect_TypeOfFacingModel.hxx>
0021 #include <Graphic3d_AspectFillArea3d.hxx>
0022 #include <Graphic3d_MaterialAspect.hxx>
0023 #include <Prs3d_BasicAspect.hxx>
0024
0025
0026
0027
0028
0029
0030 class Prs3d_ShadingAspect : public Prs3d_BasicAspect
0031 {
0032 DEFINE_STANDARD_RTTIEXT(Prs3d_ShadingAspect, Prs3d_BasicAspect)
0033 public:
0034
0035
0036 Standard_EXPORT Prs3d_ShadingAspect();
0037
0038
0039 Prs3d_ShadingAspect (const Handle(Graphic3d_AspectFillArea3d)& theAspect) : myAspect (theAspect) {}
0040
0041
0042 Standard_EXPORT void SetColor (const Quantity_Color& aColor, const Aspect_TypeOfFacingModel aModel = Aspect_TOFM_BOTH_SIDE);
0043
0044
0045 Standard_EXPORT void SetMaterial (const Graphic3d_MaterialAspect& aMaterial, const Aspect_TypeOfFacingModel aModel = Aspect_TOFM_BOTH_SIDE);
0046
0047
0048
0049 Standard_EXPORT void SetTransparency (const Standard_Real aValue, const Aspect_TypeOfFacingModel aModel = Aspect_TOFM_BOTH_SIDE);
0050
0051
0052 Standard_EXPORT const Quantity_Color& Color (const Aspect_TypeOfFacingModel aModel = Aspect_TOFM_FRONT_SIDE) const;
0053
0054
0055 Standard_EXPORT const Graphic3d_MaterialAspect& Material (const Aspect_TypeOfFacingModel aModel = Aspect_TOFM_FRONT_SIDE) const;
0056
0057
0058 Standard_EXPORT Standard_Real Transparency (const Aspect_TypeOfFacingModel aModel = Aspect_TOFM_FRONT_SIDE) const;
0059
0060
0061 const Handle(Graphic3d_AspectFillArea3d)& Aspect() const { return myAspect; }
0062
0063 void SetAspect (const Handle(Graphic3d_AspectFillArea3d)& theAspect) { myAspect = theAspect; }
0064
0065
0066 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0067
0068 protected:
0069
0070 Handle(Graphic3d_AspectFillArea3d) myAspect;
0071
0072 };
0073
0074 DEFINE_STANDARD_HANDLE(Prs3d_ShadingAspect, Prs3d_BasicAspect)
0075
0076 #endif