0030520: VIS - IVtkTools_ShapePicker::GetPickPosition() returns incorrect point
[occt.git] / src / STEPConstruct / STEPConstruct_Assembly.hxx
CommitLineData
42cf5bc1 1// Created on: 1998-07-07
2// Created by: Christian CAILLET
3// Copyright (c) 1998-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
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
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _STEPConstruct_Assembly_HeaderFile
18#define _STEPConstruct_Assembly_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Boolean.hxx>
25class StepShape_ShapeDefinitionRepresentation;
26class StepShape_ShapeRepresentation;
27class Standard_Transient;
28class StepGeom_Axis2Placement3d;
29class StepRepr_NextAssemblyUsageOccurrence;
30class Interface_InterfaceModel;
31class StepShape_ContextDependentShapeRepresentation;
9bba178d 32class Interface_Graph;
42cf5bc1 33
34
35//! This operator creates and checks an item of an assembly, from its
36//! basic data : a ShapeRepresentation, a Location ...
37//!
38//! Three ways of coding such item from a ShapeRepresentation :
39//! - do nothing : i.e. informations for assembly are ignored
40//! - create a MappedItem
41//! - create a RepresentationRelationship (WithTransformation)
42class STEPConstruct_Assembly
43{
44public:
45
46 DEFINE_STANDARD_ALLOC
47
48
49 Standard_EXPORT STEPConstruct_Assembly();
50
51 //! Initialises with starting values
52 //! Ax0 : origin axis (typically, standard XYZ)
53 //! Loc : location to which place the item
54 //! Makes a MappedItem
55 //! Resulting Value is returned by ItemValue
56 Standard_EXPORT void Init (const Handle(StepShape_ShapeDefinitionRepresentation)& aSR, const Handle(StepShape_ShapeDefinitionRepresentation)& SDR0, const Handle(StepGeom_Axis2Placement3d)& Ax0, const Handle(StepGeom_Axis2Placement3d)& Loc);
57
58 //! Make a (ShapeRepresentationRelationship,...WithTransformation)
59 //! Resulting Value is returned by ItemValue
60 Standard_EXPORT void MakeRelationship();
61
62 //! Returns the Value
63 //! If no Make... has been called, returns the starting SR
64 Standard_EXPORT Handle(Standard_Transient) ItemValue() const;
65
66 //! Returns the location of the item, computed from starting aLoc
67 Standard_EXPORT Handle(StepGeom_Axis2Placement3d) ItemLocation() const;
68
69 //! Returns NAUO object describing the assembly link
70 Standard_EXPORT Handle(StepRepr_NextAssemblyUsageOccurrence) GetNAUO() const;
71
72 //! Checks whether SRR's definition of assembly and component contradicts
73 //! with NAUO definition or not, according to model schema (AP214 or AP203)
9bba178d 74 Standard_EXPORT static Standard_Boolean CheckSRRReversesNAUO (const Interface_Graph& theGraph, const Handle(StepShape_ContextDependentShapeRepresentation)& CDSR);
42cf5bc1 75
76
77
78
79protected:
80
81
82
83
84
85private:
86
87
88
89 Handle(StepShape_ShapeDefinitionRepresentation) thesdr;
90 Handle(StepShape_ShapeDefinitionRepresentation) thesdr0;
91 Handle(StepShape_ShapeRepresentation) thesr;
92 Handle(StepShape_ShapeRepresentation) thesr0;
93 Handle(Standard_Transient) theval;
94 Handle(StepGeom_Axis2Placement3d) theloc;
95 Handle(StepGeom_Axis2Placement3d) theax0;
96
97
98};
99
100
101
102
103
104
105
106#endif // _STEPConstruct_Assembly_HeaderFile