0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / IGESDimen / IGESDimen_BasicDimension.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-01-09
2// Created by: CKY / Contract Toubro-Larsen ( Arun MENON )
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_BasicDimension_HeaderFile
18#define _IGESDimen_BasicDimension_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Standard_Integer.hxx>
24#include <gp_XY.hxx>
25#include <IGESData_IGESEntity.hxx>
26class gp_XY;
27class gp_Pnt2d;
28
29
30class IGESDimen_BasicDimension;
31DEFINE_STANDARD_HANDLE(IGESDimen_BasicDimension, IGESData_IGESEntity)
32
33//! Defines IGES Basic Dimension, Type 406, Form 31,
34//! in package IGESDimen
35//! The basic Dimension Property indicates that the referencing
36//! dimension entity is to be displayed with a box around text.
37class IGESDimen_BasicDimension : public IGESData_IGESEntity
38{
39
40public:
41
42
43 Standard_EXPORT IGESDimen_BasicDimension();
44
45 Standard_EXPORT void Init (const Standard_Integer nbPropVal, const gp_XY& lowerLeft, const gp_XY& lowerRight, const gp_XY& upperRight, const gp_XY& upperLeft);
46
47 //! returns the number of properties = 8
48 Standard_EXPORT Standard_Integer NbPropertyValues() const;
49
50 //! returns coordinates of lower left corner
51 Standard_EXPORT gp_Pnt2d LowerLeft() const;
52
53 //! returns coordinates of lower right corner
54 Standard_EXPORT gp_Pnt2d LowerRight() const;
55
56 //! returns coordinates of upper right corner
57 Standard_EXPORT gp_Pnt2d UpperRight() const;
58
59 //! returns coordinates of upper left corner
60 Standard_EXPORT gp_Pnt2d UpperLeft() const;
61
62
63
64
92efcf78 65 DEFINE_STANDARD_RTTIEXT(IGESDimen_BasicDimension,IGESData_IGESEntity)
42cf5bc1 66
67protected:
68
69
70
71
72private:
73
74
75 Standard_Integer theNbPropertyValues;
76 gp_XY theLowerLeft;
77 gp_XY theLowerRight;
78 gp_XY theUpperRight;
79 gp_XY theUpperLeft;
80
81
82};
83
84
85
86
87
88
89
90#endif // _IGESDimen_BasicDimension_HeaderFile