blob: 0c87cdb28043be0f5907fbe898a312a1a1e5dddc (
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
|
//--------------------------------------------------------------------
//
// File Name : IGESDraw_Planar.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESDraw_Planar.ixx>
#include <Standard_DimensionMismatch.hxx>
IGESDraw_Planar::IGESDraw_Planar () { }
void IGESDraw_Planar::Init
(const Standard_Integer nbMats,
const Handle(IGESGeom_TransformationMatrix)& aTransformationMatrix,
const Handle(IGESData_HArray1OfIGESEntity)& allEntities)
{
if (!allEntities.IsNull())
if (allEntities->Lower() != 1)
Standard_DimensionMismatch::Raise("IGESDraw_Planar : Init");
theNbMatrices = nbMats;
theTransformationMatrix = aTransformationMatrix;
theEntities = allEntities;
InitTypeAndForm(402,16);
}
Standard_Integer IGESDraw_Planar::NbMatrices () const
{
return theNbMatrices;
}
Standard_Integer IGESDraw_Planar::NbEntities () const
{
return ( theEntities.IsNull()? 0 : theEntities->Length() );
}
Standard_Boolean IGESDraw_Planar::IsIdentityMatrix () const
{
return ( theTransformationMatrix.IsNull() );
}
Handle(IGESGeom_TransformationMatrix) IGESDraw_Planar::TransformMatrix () const
{
return theTransformationMatrix;
}
Handle(IGESData_IGESEntity) IGESDraw_Planar::Entity
(const Standard_Integer EntityIndex) const
{
return (theEntities->Value(EntityIndex));
}
|