blob: fadc4c66eccccdcfe4f31a59ea94027e2c5be404 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
//--------------------------------------------------------------------
//
// File Name : IGESDimen_LinearDimension.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESDimen_LinearDimension.ixx>
#include <Standard_OutOfRange.hxx>
IGESDimen_LinearDimension::IGESDimen_LinearDimension () { }
void IGESDimen_LinearDimension::Init
(const Handle(IGESDimen_GeneralNote)& aNote,
const Handle(IGESDimen_LeaderArrow)& aLeader,
const Handle(IGESDimen_LeaderArrow)& anotherLeader,
const Handle(IGESDimen_WitnessLine)& aWitness,
const Handle(IGESDimen_WitnessLine)& anotherWitness)
{
theNote = aNote;
theFirstLeader = aLeader;
theSecondLeader = anotherLeader;
theFirstWitness = aWitness;
theSecondWitness = anotherWitness;
InitTypeAndForm(216,FormNumber());
// FormNumber : Nature of the Dimension 0-1-2
}
void IGESDimen_LinearDimension::SetFormNumber (const Standard_Integer fm)
{
if (fm < 0 || fm > 2) Standard_OutOfRange::Raise
("IGESDimen_LinearDimension : SetFormNumber");
InitTypeAndForm(216,fm);
}
Handle(IGESDimen_GeneralNote) IGESDimen_LinearDimension::Note () const
{
return theNote;
}
Handle(IGESDimen_LeaderArrow) IGESDimen_LinearDimension::FirstLeader () const
{
return theFirstLeader;
}
Handle(IGESDimen_LeaderArrow) IGESDimen_LinearDimension::SecondLeader () const
{
return theSecondLeader;
}
Standard_Boolean IGESDimen_LinearDimension::HasFirstWitness () const
{
return (! theFirstWitness.IsNull());
}
Handle(IGESDimen_WitnessLine) IGESDimen_LinearDimension::FirstWitness () const
{
return theFirstWitness;
}
Standard_Boolean IGESDimen_LinearDimension::HasSecondWitness () const
{
return (! theSecondWitness.IsNull());
}
Handle(IGESDimen_WitnessLine) IGESDimen_LinearDimension::SecondWitness () const
{
return theSecondWitness;
}
|