1 #define GER61351 //GG_171199 Enable to set an object RGB color
2 // instead a restricted object NameOfColor.
4 #include <Prs3d_PointAspect.ixx>
7 Prs3d_PointAspect::Prs3d_PointAspect (const Aspect_TypeOfMarker aType,
8 const Quantity_Color &aColor,
9 const Standard_Real aScale) {
10 myAspect = new Graphic3d_AspectMarker3d(aType,aColor,aScale);
14 Prs3d_PointAspect::Prs3d_PointAspect (const Aspect_TypeOfMarker aType,
15 const Quantity_NameOfColor aColor,
16 const Standard_Real aScale) {
17 myAspect = new Graphic3d_AspectMarker3d
18 (aType,Quantity_Color(aColor),aScale);
21 Prs3d_PointAspect::Prs3d_PointAspect (const Quantity_Color &aColor,
22 const Standard_Real anId,
23 const Standard_Integer aWidth,
24 const Standard_Integer aHeight,
25 const Handle(TColStd_HArray1OfByte)& aTexture
28 myAspect = new Graphic3d_AspectMarker3d
29 (Aspect_TOM_USERDEFINED,aColor,anId,aWidth,aHeight,aTexture);
33 void Prs3d_PointAspect::SetColor(const Quantity_Color &aColor) {
34 myAspect->SetColor(aColor);
38 void Prs3d_PointAspect::SetColor(const Quantity_NameOfColor aColor) {
39 myAspect->SetColor(Quantity_Color(aColor));
42 void Prs3d_PointAspect::SetTypeOfMarker(const Aspect_TypeOfMarker aType){
43 myAspect->SetType(aType);
46 void Prs3d_PointAspect::SetScale(const Standard_Real aScale){
47 myAspect->SetScale(aScale);
50 Handle (Graphic3d_AspectMarker3d) Prs3d_PointAspect::Aspect () const {
54 void Prs3d_PointAspect::GetTextureSize(Standard_Integer& AWidth, Standard_Integer& AHeight)
56 myAspect->GetTextureSize( AWidth, AHeight);
59 const Handle(TColStd_HArray1OfByte)& Prs3d_PointAspect::GetTexture()
61 return myAspect->GetTexture();