Warnings on vc14 were eliminated
[occt.git] / src / IGESDimen / IGESDimen_CenterLine.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-01-13
2// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
3// Copyright (c) 1993-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 _IGESDimen_CenterLine_HeaderFile
18#define _IGESDimen_CenterLine_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Standard_Integer.hxx>
24#include <Standard_Real.hxx>
25#include <TColgp_HArray1OfXY.hxx>
26#include <IGESData_IGESEntity.hxx>
27#include <Standard_Boolean.hxx>
28class Standard_OutOfRange;
29class gp_Pnt;
30
31
32class IGESDimen_CenterLine;
33DEFINE_STANDARD_HANDLE(IGESDimen_CenterLine, IGESData_IGESEntity)
34
35//! defines CenterLine, Type <106> Form <20-21>
36//! in package IGESDimen
37//! Is an entity appearing as crosshairs or as a
38//! construction between 2 positions
39class IGESDimen_CenterLine : public IGESData_IGESEntity
40{
41
42public:
43
44
45 Standard_EXPORT IGESDimen_CenterLine();
46
47 //! This method is used to set the fields of the class
48 //! CenterLine
49 //! - aDataType : Interpretation Flag, always = 1
50 //! - aZDisplacement : Common z displacement
51 //! - dataPnts : Data points (x and y)
52 Standard_EXPORT void Init (const Standard_Integer aDataType, const Standard_Real aZdisp, const Handle(TColgp_HArray1OfXY)& dataPnts);
53
54 //! Sets FormNumber to 20 if <mode> is True, 21 else
55 Standard_EXPORT void SetCrossHair (const Standard_Boolean mode);
56
57 //! returns Interpretation Flag : IP = 1.
58 Standard_EXPORT Standard_Integer Datatype() const;
59
60 //! returns Number of Data Points.
61 Standard_EXPORT Standard_Integer NbPoints() const;
62
63 //! returns Common Z displacement.
64 Standard_EXPORT Standard_Real ZDisplacement() const;
65
66 //! returns the data point as Pnt from gp.
67 //! raises exception if Index <= 0 or Index > NbPoints()
68 Standard_EXPORT gp_Pnt Point (const Standard_Integer Index) const;
69
70 //! returns the data point as Pnt from gp after Transformation.
71 //! raises exception if Index <= 0 or Index > NbPoints()
72 Standard_EXPORT gp_Pnt TransformedPoint (const Standard_Integer Index) const;
73
74 //! returns True if Form is 20.
75 Standard_EXPORT Standard_Boolean IsCrossHair() const;
76
77
78
79
92efcf78 80 DEFINE_STANDARD_RTTIEXT(IGESDimen_CenterLine,IGESData_IGESEntity)
42cf5bc1 81
82protected:
83
84
85
86
87private:
88
89
90 Standard_Integer theDatatype;
91 Standard_Real theZDisplacement;
92 Handle(TColgp_HArray1OfXY) theDataPoints;
93
94
95};
96
97
98
99
100
101
102
103#endif // _IGESDimen_CenterLine_HeaderFile