0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View
[occt.git] / samples / mfc / standard / Common / Primitive / Sample2D_Markers.h
CommitLineData
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 7class Sample2D_Markers;
5c1f974e 8DEFINE_STANDARD_HANDLE(Sample2D_Markers,AIS_InteractiveObject)
9class Sample2D_Markers : public AIS_InteractiveObject {
7fd59977 10
11enum Sample2D_CurrentTypeOfMarker {
12Sample2D_CTOM_Generic,
13Sample2D_CTOM_Polyline,
14Sample2D_CTOM_Circle,
15Sample2D_CTOM_Ellips
16} ;
17
18public:
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 36DEFINE_STANDARD_RTTIEXT(Sample2D_Markers,AIS_InteractiveObject)
7fd59977 37
5c1f974e 38private:
7fd59977 39
5c573e69 40virtual void Compute (const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
41 const Handle(Prs3d_Presentation)& /*aPresentation*/,
42 const Standard_Integer /*aMode*/);
7fd59977 43
5c573e69 44virtual void ComputeSelection (const Handle(SelectMgr_Selection)& /*aSelection*/,
45 const Standard_Integer /*aMode*/) {}
7fd59977 46
7fd59977 47
5c573e69 48Standard_EXPORT virtual void SetContext(const Handle(AIS_InteractiveContext)& /*theContext*/) {}
7fd59977 49
7fd59977 50
7fd59977 51
7fd59977 52Sample2D_CurrentTypeOfMarker myCurrentTypeOfMarker;
ee2be2a8 53Standard_Real myXPosition;
54Standard_Real myYPosition;
55Aspect_TypeOfMarker myMarkerType;
56Quantity_Color myColor;
57Standard_Real myWidth;
58Standard_Real myHeight;
59Standard_Real myIndex;//myScaleOrId
7fd59977 60// specific polyline marker
a577aaab 61Handle(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