File indexing completed on 2026-09-09 09:15:37
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 Standard_EXPORT Graphic3d_AspectMarker3d();
0034
0035 Standard_EXPORT Graphic3d_AspectMarker3d(const Aspect_TypeOfMarker theType,
0036 const Quantity_Color& theColor,
0037 const Standard_Real theScale);
0038
0039
0040
0041 Standard_EXPORT Graphic3d_AspectMarker3d(const Quantity_Color& theColor,
0042 const Standard_Integer theWidth,
0043 const Standard_Integer theHeight,
0044 const Handle(TColStd_HArray1OfByte)& theTextureBitmap);
0045
0046
0047
0048 Standard_EXPORT Graphic3d_AspectMarker3d(const Handle(Image_PixMap)& theTextureImage);
0049
0050
0051 Standard_ShortReal Scale() const { return myMarkerScale; }
0052
0053
0054
0055
0056
0057 void SetScale(const Standard_ShortReal theScale) { SetMarkerScale(theScale); }
0058
0059
0060 void SetScale(const Standard_Real theScale) { SetScale((float)theScale); }
0061
0062
0063 Aspect_TypeOfMarker Type() const { return myMarkerType; }
0064
0065
0066 void SetType(const Aspect_TypeOfMarker theType) { myMarkerType = theType; }
0067
0068
0069 Standard_EXPORT void GetTextureSize(Standard_Integer& theWidth,
0070 Standard_Integer& theHeight) const;
0071
0072
0073
0074 const Handle(Graphic3d_MarkerImage)& GetMarkerImage() const { return myMarkerImage; }
0075
0076 Standard_EXPORT void SetBitMap(const Standard_Integer theWidth,
0077 const Standard_Integer theHeight,
0078 const Handle(TColStd_HArray1OfByte)& theTexture);
0079 };
0080
0081 DEFINE_STANDARD_HANDLE(Graphic3d_AspectMarker3d, Graphic3d_Aspects)
0082
0083 #endif