7fd59977 |
1 | #ifndef _Sample2D_Markers_HeaderFile |
2 | #define _Sample2D_Markers_HeaderFile |
3 | |
4 | #include <Standard_Macro.hxx> |
5 | #include <Standard_DefineHandle.hxx> |
a577aaab |
6 | #include <Graphic3d_ArrayOfPoints.hxx> |
9e3ca93a |
7 | class Sample2D_Markers; |
5c1f974e |
8 | DEFINE_STANDARD_HANDLE(Sample2D_Markers,AIS_InteractiveObject) |
9 | class Sample2D_Markers : public AIS_InteractiveObject { |
7fd59977 |
10 | |
11 | enum Sample2D_CurrentTypeOfMarker { |
12 | Sample2D_CTOM_Generic, |
13 | Sample2D_CTOM_Polyline, |
14 | Sample2D_CTOM_Circle, |
15 | Sample2D_CTOM_Ellips |
16 | } ; |
17 | |
18 | public: |
19 | |
5c1f974e |
20 | // Generic marker |
ee2be2a8 |
21 | Standard_EXPORT Sample2D_Markers (const Standard_Real theXPosition, |
22 | const Standard_Real theYPosition, |
5c1f974e |
23 | const Aspect_TypeOfMarker theMarkerType, |
24 | const Quantity_Color theColor, |
25 | const Standard_Real theScaleOrId=5.0); |
7fd59977 |
26 | |
27 | // Polyline marker |
ee2be2a8 |
28 | Standard_EXPORT Sample2D_Markers (const Standard_Real theXPosition, |
29 | const Standard_Real theYPosition, |
a577aaab |
30 | const Handle(Graphic3d_ArrayOfPoints)& theArrayOfPoints, |
5c1f974e |
31 | const Aspect_TypeOfMarker theMarkerType, |
32 | const Quantity_Color theColor, |
33 | const Standard_Real theScaleOrId=2.0); |
7fd59977 |
34 | |
7fd59977 |
35 | |
92efcf78 |
36 | DEFINE_STANDARD_RTTIEXT(Sample2D_Markers,AIS_InteractiveObject) |
7fd59977 |
37 | |
5c1f974e |
38 | private: |
7fd59977 |
39 | |
5c573e69 |
40 | virtual void Compute (const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/, |
41 | const Handle(Prs3d_Presentation)& /*aPresentation*/, |
42 | const Standard_Integer /*aMode*/); |
7fd59977 |
43 | |
5c573e69 |
44 | virtual void ComputeSelection (const Handle(SelectMgr_Selection)& /*aSelection*/, |
45 | const Standard_Integer /*aMode*/) {} |
7fd59977 |
46 | |
7fd59977 |
47 | |
5c573e69 |
48 | Standard_EXPORT virtual void SetContext(const Handle(AIS_InteractiveContext)& /*theContext*/) {} |
7fd59977 |
49 | |
7fd59977 |
50 | |
7fd59977 |
51 | |
7fd59977 |
52 | Sample2D_CurrentTypeOfMarker myCurrentTypeOfMarker; |
ee2be2a8 |
53 | Standard_Real myXPosition; |
54 | Standard_Real myYPosition; |
55 | Aspect_TypeOfMarker myMarkerType; |
56 | Quantity_Color myColor; |
57 | Standard_Real myWidth; |
58 | Standard_Real myHeight; |
59 | Standard_Real myIndex;//myScaleOrId |
7fd59977 |
60 | // specific polyline marker |
a577aaab |
61 | Handle(Graphic3d_ArrayOfPoints) myArrayOfPoints; |
7fd59977 |
62 | }; |
63 | |
64 | |
65 | |
66 | // other inCurve functions and methods (like "C++: function call" methods) |
67 | // |
68 | |
69 | |
70 | |
71 | #endif |