0022819: Redesign of OpenGl driver
[occt.git] / src / OpenGl / OpenGl_AspectMarker.hxx
CommitLineData
2166f0fa
SK
1// File: OpenGl_AspectMarker.hxx
2// Created: 13 July 2011
3// Author: Sergey ZERCHANINOV
4// Copyright: OPEN CASCADE 2011
5
6#ifndef OpenGl_AspectMarker_Header
7#define OpenGl_AspectMarker_Header
8
9#include <InterfaceGraphic_telem.hxx>
10#include <Aspect_TypeOfMarker.hxx>
11
12#include <OpenGl_Element.hxx>
13
14class OpenGl_AspectMarker : public OpenGl_Element
15{
16 public:
17
18 OpenGl_AspectMarker ();
19 virtual ~OpenGl_AspectMarker () {}
20
21 void SetContext (const CALL_DEF_CONTEXTMARKER &AContext);
22
23 const TEL_COLOUR & Color() const { return myColor; }
24 Aspect_TypeOfMarker Type() const { return myType; }
25 float Scale() const { return myScale; }
26
27 virtual void Render (const Handle(OpenGl_Workspace) &AWorkspace) const;
28
29 protected:
30
31 TEL_COLOUR myColor;
32 Aspect_TypeOfMarker myType;
33 float myScale;
34
35 public:
36 IMPLEMENT_MEMORY_OPERATORS
37};
38
39#endif //OpenGl_AspectMarker_Header