0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / MAT / MAT_BasicElt.cxx
CommitLineData
b311480e 1// Created on: 1993-05-05
2// Created by: Yves FRICAUD
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
42cf5bc1 17
18#include <MAT_Arc.hxx>
19#include <MAT_BasicElt.hxx>
7fd59977 20#include <MAT_Node.hxx>
42cf5bc1 21#include <MAT_SequenceOfArc.hxx>
22#include <Standard_Type.hxx>
7fd59977 23
25e59720 24IMPLEMENT_STANDARD_RTTIEXT(MAT_BasicElt,Standard_Transient)
92efcf78 25
7fd59977 26//========================================================================
27// function:
28// purpose :
29//========================================================================
30MAT_BasicElt::MAT_BasicElt(const Standard_Integer anInteger)
31 : startLeftArc (0),
32 endLeftArc (0),
d533dafb 33 index(anInteger),
34 geomIndex(0)
7fd59977 35{
36}
37
38//========================================================================
39// function: StartArc
40// purpose :
41//========================================================================
42Handle(MAT_Arc) MAT_BasicElt::StartArc() const
43{
44 return (MAT_Arc*)startLeftArc;
45}
46
47//========================================================================
48// function: EndArc
49// purpose :
50//========================================================================
51Handle(MAT_Arc) MAT_BasicElt::EndArc() const
52{
53 return (MAT_Arc*)endLeftArc;
54}
55
56//========================================================================
57// function: Index
58// purpose :
59//========================================================================
60Standard_Integer MAT_BasicElt::Index() const
61{
62 return index;
63}
64
65//========================================================================
66// function: GeomIndex
67// purpose :
68//========================================================================
69Standard_Integer MAT_BasicElt::GeomIndex() const
70{
71 return geomIndex;
72}
73
74
75//========================================================================
76// function: SetStartArc
77// purpose :
78//========================================================================
857ffd5e 79void MAT_BasicElt::SetStartArc(const Handle(MAT_Arc)& anArc)
7fd59977 80{
ad67e367 81 startLeftArc = anArc.get();
7fd59977 82}
83
84
85//========================================================================
86// function: SetEndArc
87// purpose :
88//========================================================================
857ffd5e 89void MAT_BasicElt::SetEndArc(const Handle(MAT_Arc)& anArc)
7fd59977 90{
ad67e367 91 endLeftArc = anArc.get();
7fd59977 92}
93
94//========================================================================
95// function: SetIndex
96// purpose :
97//========================================================================
98void MAT_BasicElt::SetIndex(const Standard_Integer anInteger)
99{
100 index = anInteger;
101}
102
103//========================================================================
104// function: SetGeomIndex
105// purpose :
106//========================================================================
107void MAT_BasicElt::SetGeomIndex(const Standard_Integer anInteger)
108{
109 geomIndex = anInteger;
110}
111
112
113
114
115