File: STEPConstruct_Assembly.hxx

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (101 lines) | stat: -rw-r--r-- 3,416 bytes parent folder | download | duplicates (5)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _STEPConstruct_Assembly_HeaderFile
#define _STEPConstruct_Assembly_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Handle_StepShape_ShapeDefinitionRepresentation.hxx>
#include <Handle_StepShape_ShapeRepresentation.hxx>
#include <Handle_Standard_Transient.hxx>
#include <Handle_StepGeom_Axis2Placement3d.hxx>
#include <Handle_StepRepr_NextAssemblyUsageOccurrence.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_Interface_InterfaceModel.hxx>
#include <Handle_StepShape_ContextDependentShapeRepresentation.hxx>
class StepShape_ShapeDefinitionRepresentation;
class StepShape_ShapeRepresentation;
class Standard_Transient;
class StepGeom_Axis2Placement3d;
class StepRepr_NextAssemblyUsageOccurrence;
class Interface_InterfaceModel;
class StepShape_ContextDependentShapeRepresentation;


//! This operator creates and checks an item of an assembly, from its
//! basic data : a ShapeRepresentation, a Location ...
//!
//! Three ways of coding such item from a ShapeRepresentation :
//! - do nothing : i.e. informations for assembly are ignored
//! - create a MappedItem
//! - create a RepresentationRelationship (WithTransformation)
class STEPConstruct_Assembly 
{
public:

  DEFINE_STANDARD_ALLOC

  
  Standard_EXPORT STEPConstruct_Assembly();
  
  //! Initialises with starting values
  //! Ax0 : origin axis (typically, standard XYZ)
  //! Loc : location to which place the item
  //! Makes a MappedItem
  //! Resulting Value is returned by ItemValue
  Standard_EXPORT   void Init (const Handle(StepShape_ShapeDefinitionRepresentation)& aSR, const Handle(StepShape_ShapeDefinitionRepresentation)& SDR0, const Handle(StepGeom_Axis2Placement3d)& Ax0, const Handle(StepGeom_Axis2Placement3d)& Loc) ;
  
  //! Make a (ShapeRepresentationRelationship,...WithTransformation)
  //! Resulting Value is returned by ItemValue
  Standard_EXPORT   void MakeRelationship() ;
  
  //! Returns the Value
  //! If no Make... has been called, returns the starting SR
  Standard_EXPORT   Handle(Standard_Transient) ItemValue()  const;
  
  //! Returns the location of the item, computed from starting aLoc
  Standard_EXPORT   Handle(StepGeom_Axis2Placement3d) ItemLocation()  const;
  
  //! Returns NAUO object describing the assembly link
  Standard_EXPORT   Handle(StepRepr_NextAssemblyUsageOccurrence) GetNAUO()  const;
  
  //! Checks whether SRR's definition of assembly and component contradicts
  //! with NAUO definition or not, according to model schema (AP214 or AP203)
  Standard_EXPORT static   Standard_Boolean CheckSRRReversesNAUO (const Handle(Interface_InterfaceModel)& Model, const Handle(StepShape_ContextDependentShapeRepresentation)& CDSR) ;




protected:





private:



  Handle(StepShape_ShapeDefinitionRepresentation) thesdr;
  Handle(StepShape_ShapeDefinitionRepresentation) thesdr0;
  Handle(StepShape_ShapeRepresentation) thesr;
  Handle(StepShape_ShapeRepresentation) thesr0;
  Handle(Standard_Transient) theval;
  Handle(StepGeom_Axis2Placement3d) theloc;
  Handle(StepGeom_Axis2Placement3d) theax0;


};







#endif // _STEPConstruct_Assembly_HeaderFile