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_PointAspect_HeaderFile
0018 #define _Prs3d_PointAspect_HeaderFile
0019
0020 #include <Prs3d_BasicAspect.hxx>
0021 #include <Graphic3d_AspectMarker3d.hxx>
0022 #include <Graphic3d_MarkerImage.hxx>
0023
0024
0025
0026
0027 class Prs3d_PointAspect : public Prs3d_BasicAspect
0028 {
0029 DEFINE_STANDARD_RTTIEXT(Prs3d_PointAspect, Prs3d_BasicAspect)
0030 public:
0031
0032 Standard_EXPORT Prs3d_PointAspect(const Aspect_TypeOfMarker theType, const Quantity_Color& theColor, const Standard_Real theScale);
0033
0034
0035 Standard_EXPORT Prs3d_PointAspect (const Quantity_Color& theColor,
0036 const Standard_Integer theWidth,
0037 const Standard_Integer theHeight,
0038 const Handle(TColStd_HArray1OfByte)& theTexture);
0039
0040 Prs3d_PointAspect (const Handle(Graphic3d_AspectMarker3d)& theAspect) : myAspect (theAspect) {}
0041
0042
0043
0044 void SetColor (const Quantity_Color& theColor) { myAspect->SetColor (theColor); }
0045
0046
0047
0048 void SetTypeOfMarker (const Aspect_TypeOfMarker theType) { myAspect->SetType (theType); }
0049
0050
0051
0052 void SetScale (const Standard_Real theScale) { myAspect->SetScale (theScale); }
0053
0054 const Handle(Graphic3d_AspectMarker3d)& Aspect() const { return myAspect; }
0055
0056 void SetAspect (const Handle(Graphic3d_AspectMarker3d)& theAspect) { myAspect = theAspect; }
0057
0058
0059 void GetTextureSize (Standard_Integer& theWidth, Standard_Integer& theHeight) const { myAspect->GetTextureSize (theWidth, theHeight); }
0060
0061
0062 const Handle(Graphic3d_MarkerImage)& GetTexture() const { return myAspect->GetMarkerImage(); }
0063
0064
0065 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0066
0067 protected:
0068
0069 Handle(Graphic3d_AspectMarker3d) myAspect;
0070
0071 };
0072
0073 DEFINE_STANDARD_HANDLE(Prs3d_PointAspect, Prs3d_BasicAspect)
0074
0075 #endif