0024624: Lost word in license statement in source files
[occt.git] / src / Aspect / Aspect_Edge.cxx
CommitLineData
b311480e 1// Created by: NW,JPB,CAL
2// Copyright (c) 1991-1999 Matra Datavision
973c2be1 3// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
16//-Version
17
18//-Design Declaration des variables specifiques aux aretes
19
20//-Warning Une arete est definie par :
21// - les 2 sommets references par des indices
22// - la visibilite
23
24//-References
25
26//-Language C++ 2.0
27
28//-Declarations
29
30// for the class
31#include <Aspect_Edge.ixx>
32
33//-Aliases
34
35//-Global data definitions
36
37// -- les indices des sommets extremite
38// MyBegin : Standard_Integer;
39// MyEnd : Standard_Integer;
40
41// -- la visibilite
42// MyVisibility : TypeOfEdge;
43
44//-Constructors
45
46//-Destructors
47
48//-Methods, in order
49
50Aspect_Edge::Aspect_Edge () {
51
52 MyBegin = 0;
53 MyEnd = 0;
54 MyVisibility = Aspect_TOE_INVISIBLE;
55
56}
57
58Aspect_Edge::Aspect_Edge (const Standard_Integer AIndex1, const Standard_Integer AIndex2, const Aspect_TypeOfEdge AType) {
59
60 if (AIndex1 == AIndex2)
61 Aspect_EdgeDefinitionError::Raise ("Bad index for the edge");
62
63 MyBegin = AIndex1;
64 MyEnd = AIndex2;
65 MyVisibility = AType;
66
67}
68
69void Aspect_Edge::SetValues (const Standard_Integer AIndex1, const Standard_Integer AIndex2, const Aspect_TypeOfEdge AType) {
70
71 if (AIndex1 == AIndex2)
72 Aspect_EdgeDefinitionError::Raise ("Bad index for the edge");
73
74 MyBegin = AIndex1;
75 MyEnd = AIndex2;
76 MyVisibility = AType;
77
78}
79
80void Aspect_Edge::Values (Standard_Integer& AIndex1, Standard_Integer& AIndex2, Aspect_TypeOfEdge& AType) const {
81
82 AIndex1 = MyBegin;
83 AIndex2 = MyEnd;
84 AType = MyVisibility;
85
86}
87
88Standard_Integer Aspect_Edge::FirstIndex () const {
89
90 return (MyBegin);
91
92}
93
94Standard_Integer Aspect_Edge::LastIndex () const {
95
96 return (MyEnd);
97
98}
99
100Aspect_TypeOfEdge Aspect_Edge::Type () const {
101
102 return (MyVisibility);
103
104}