blob: 27720bc900ab490ec58a47ed5be01d6301034273 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Prs3d_PointAspect_HeaderFile
#define _Prs3d_PointAspect_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Prs3d_PointAspect_HeaderFile
#include <Handle_Prs3d_PointAspect.hxx>
#endif
#ifndef _Handle_Graphic3d_AspectMarker3d_HeaderFile
#include <Handle_Graphic3d_AspectMarker3d.hxx>
#endif
#ifndef _Prs3d_BasicAspect_HeaderFile
#include <Prs3d_BasicAspect.hxx>
#endif
#ifndef _Aspect_TypeOfMarker_HeaderFile
#include <Aspect_TypeOfMarker.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Quantity_NameOfColor_HeaderFile
#include <Quantity_NameOfColor.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_TColStd_HArray1OfByte_HeaderFile
#include <Handle_TColStd_HArray1OfByte.hxx>
#endif
#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
#endif
class Graphic3d_AspectMarker3d;
class Quantity_Color;
class TColStd_HArray1OfByte;
//! This class defines attributes for the points <br>
//! The points are drawn using markers, whose size does not depend on <br>
//! the zoom value of the views. <br>
class Prs3d_PointAspect : public Prs3d_BasicAspect {
public:
Standard_EXPORT Prs3d_PointAspect(const Aspect_TypeOfMarker aType,const Quantity_Color& aColor,const Standard_Real aScale);
Standard_EXPORT Prs3d_PointAspect(const Aspect_TypeOfMarker aType,const Quantity_NameOfColor aColor,const Standard_Real aScale);
//! defines only the urer defined marker point. <br>
Standard_EXPORT Prs3d_PointAspect(const Quantity_Color& AColor,const Standard_Real AnId,const Standard_Integer AWidth,const Standard_Integer AHeight,const Handle(TColStd_HArray1OfByte)& ATexture);
Standard_EXPORT void SetColor(const Quantity_Color& aColor) ;
//! defines the color to be used when drawing a point. <br>
//! Default value: Quantity_NOC_YELLOW <br>
Standard_EXPORT void SetColor(const Quantity_NameOfColor aColor) ;
//! defines the type of representation to be used when drawing a point. <br>
//! Default value: Aspect_TOM_PLUS <br>
Standard_EXPORT void SetTypeOfMarker(const Aspect_TypeOfMarker aType) ;
//! defines the size of the marker used when drawing a point. <br>
//! Default value: 1. <br>
Standard_EXPORT void SetScale(const Standard_Real aScale) ;
Standard_EXPORT Handle_Graphic3d_AspectMarker3d Aspect() const;
Standard_EXPORT void Print(Standard_OStream& s) const;
//! Returns marker's texture size. <br>
Standard_EXPORT void GetTextureSize(Standard_Integer& AWidth,Standard_Integer& AHeight) ;
//! Returns marker's texture. <br>
Standard_EXPORT const Handle_TColStd_HArray1OfByte& GetTexture() ;
DEFINE_STANDARD_RTTI(Prs3d_PointAspect)
protected:
private:
Handle_Graphic3d_AspectMarker3d myAspect;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|