0027105: Make code ISO-compliant [-Wpedantic fixes]
[occt.git] / src / DrawTrSurf / DrawTrSurf_Point.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-03-28
2// Created by: Remi LEQUETTE
3// Copyright (c) 1994-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _DrawTrSurf_Point_HeaderFile
18#define _DrawTrSurf_Point_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <gp_Pnt.hxx>
24#include <Standard_Boolean.hxx>
25#include <Draw_MarkerShape.hxx>
26#include <Draw_Color.hxx>
27#include <Draw_Drawable3D.hxx>
28#include <Standard_OStream.hxx>
29#include <Draw_Interpretor.hxx>
30class gp_Pnt;
31class Draw_Color;
32class gp_Pnt2d;
33class Draw_Display;
34class Draw_Drawable3D;
35
36
37class DrawTrSurf_Point;
38DEFINE_STANDARD_HANDLE(DrawTrSurf_Point, Draw_Drawable3D)
39
40//! A drawable point.
41class DrawTrSurf_Point : public Draw_Drawable3D
42{
43
44public:
45
46
47 Standard_EXPORT DrawTrSurf_Point(const gp_Pnt& P, const Draw_MarkerShape Shape, const Draw_Color& Col);
48
49 Standard_EXPORT DrawTrSurf_Point(const gp_Pnt2d& P, const Draw_MarkerShape Shape, const Draw_Color& Col);
50
79104795 51 Standard_EXPORT void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
42cf5bc1 52
53 //! Is a 3D object. (Default True).
54 Standard_EXPORT virtual Standard_Boolean Is3D() const Standard_OVERRIDE;
55
56 Standard_EXPORT gp_Pnt Point() const;
57
58 Standard_EXPORT void Point (const gp_Pnt& P);
59
60 Standard_EXPORT gp_Pnt2d Point2d() const;
61
62 Standard_EXPORT void Point2d (const gp_Pnt2d& P);
63
64 Standard_EXPORT void Color (const Draw_Color& aColor);
65
66 Standard_EXPORT Draw_Color Color() const;
67
68 Standard_EXPORT void Shape (const Draw_MarkerShape S);
69
70 Standard_EXPORT Draw_MarkerShape Shape() const;
71
72 //! For variable copy.
73 Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
74
75 //! For variable dump.
76 Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
77
78 //! For variable whatis command.
79 Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
80
81
82
83
92efcf78 84 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Point,Draw_Drawable3D)
42cf5bc1 85
86protected:
87
88
89
90
91private:
92
93
94 gp_Pnt myPoint;
95 Standard_Boolean is3D;
96 Draw_MarkerShape myShape;
97 Draw_Color myColor;
98
99
100};
101
102
103
104
105
106
107
108#endif // _DrawTrSurf_Point_HeaderFile