File indexing completed on 2025-01-18 10:03:46
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _Graphic3d_AspectMarker3d_HeaderFile
0017 #define _Graphic3d_AspectMarker3d_HeaderFile
0018
0019 #include <Graphic3d_Aspects.hxx>
0020
0021
0022
0023 class Graphic3d_AspectMarker3d : public Graphic3d_Aspects
0024 {
0025 DEFINE_STANDARD_RTTIEXT(Graphic3d_AspectMarker3d, Graphic3d_Aspects)
0026 public:
0027
0028
0029
0030
0031
0032
0033
0034 Standard_EXPORT Graphic3d_AspectMarker3d();
0035
0036 Standard_EXPORT Graphic3d_AspectMarker3d(const Aspect_TypeOfMarker theType, const Quantity_Color& theColor, const Standard_Real theScale);
0037
0038
0039
0040 Standard_EXPORT Graphic3d_AspectMarker3d(const Quantity_Color& theColor, const Standard_Integer theWidth, const Standard_Integer theHeight, const Handle(TColStd_HArray1OfByte)& theTextureBitmap);
0041
0042
0043
0044 Standard_EXPORT Graphic3d_AspectMarker3d(const Handle(Image_PixMap)& theTextureImage);
0045
0046
0047 Standard_ShortReal Scale() const { return myMarkerScale; }
0048
0049
0050
0051
0052
0053 void SetScale (const Standard_ShortReal theScale)
0054 {
0055 SetMarkerScale (theScale);
0056 }
0057
0058
0059 void SetScale (const Standard_Real theScale) { SetScale ((float )theScale); }
0060
0061
0062 Aspect_TypeOfMarker Type() const { return myMarkerType; }
0063
0064
0065 void SetType (const Aspect_TypeOfMarker theType) { myMarkerType = theType; }
0066
0067
0068 Standard_EXPORT void GetTextureSize (Standard_Integer& theWidth, Standard_Integer& theHeight) const;
0069
0070
0071
0072 const Handle(Graphic3d_MarkerImage)& GetMarkerImage() const { return myMarkerImage; }
0073
0074 Standard_EXPORT void SetBitMap (const Standard_Integer theWidth, const Standard_Integer theHeight, const Handle(TColStd_HArray1OfByte)& theTexture);
0075
0076 };
0077
0078 DEFINE_STANDARD_HANDLE(Graphic3d_AspectMarker3d, Graphic3d_Aspects)
0079
0080 #endif