summaryrefslogtreecommitdiff
path: root/src/BOP/BOP_CheckResult.cxx
blob: e49b6839f73d47a8b111a0cc9715d01c07acc615 (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
// File:      BOP_CheckResult.cxx
// Created:   02.09.04 16:26:31
// Author:    Oleg FEDYAEV
// Copyright: Open Cascade 2003

#include <BOP_CheckResult.ixx>

//=======================================================================
// function:  BOP_CheckResult()
// purpose: 
//=======================================================================
BOP_CheckResult::BOP_CheckResult() : myStatus(BOP_CheckUnknown)
{
}

void BOP_CheckResult::SetShape1(const TopoDS_Shape& TheShape)
{
  myShape1 = TheShape;
}

void BOP_CheckResult::AddFaultyShape1(const TopoDS_Shape& TheShape)
{
  myFaulty1.Append(TheShape);
}

void BOP_CheckResult::SetShape2(const TopoDS_Shape& TheShape)
{
  myShape2 = TheShape;
}

void BOP_CheckResult::AddFaultyShape2(const TopoDS_Shape& TheShape)
{
  myFaulty2.Append(TheShape);
}

const TopoDS_Shape& BOP_CheckResult::GetShape1() const
{
  return myShape1;
}

const TopoDS_Shape & BOP_CheckResult::GetShape2() const
{
  return myShape2;
}

const TopTools_ListOfShape& BOP_CheckResult::GetFaultyShapes1() const
{
  return myFaulty1;
}

const TopTools_ListOfShape& BOP_CheckResult::GetFaultyShapes2() const
{
  return myFaulty2;
}

void BOP_CheckResult::SetCheckStatus(const BOP_CheckStatus TheStatus)
{
  myStatus = TheStatus;
}

BOP_CheckStatus BOP_CheckResult::GetCheckStatus() const
{
  return myStatus;
}