# DataExchange
TKSTEP
STEPConstruct

# STEPConstruct_ContextTool Class Reference

Gives access to Product Definition Context (one per Model)
Maintains ApplicationProtocolDefinition entity (common for all
products)
Also maintains context specific for AP203 and provides set of
methods to work with various STEP constructs as required
by Actor
.

`#include <STEPConstruct_ContextTool.hxx>`

## Public Member Functions

void * | operator new (size_t, void *anAddress)
void * | operator new (size_t size)
void | operator delete (void *anAddress)
Standard_EXPORT | STEPConstruct_ContextTool ()
Standard_EXPORT | STEPConstruct_ContextTool (const Handle(StepData_StepModel)&aStepModel)
Standard_EXPORT void | SetModel (const Handle(StepData_StepModel)&aStepModel)
| Initialize ApplicationProtocolDefinition by the first entity of that type found in the model .
Standard_EXPORT Handle_StepBasic_ApplicationProtocolDefinition | GetAPD ()
Standard_EXPORT void | AddAPD (const Standard_Boolean enforce=Standard_False)
Standard_EXPORT Standard_Boolean | IsAP203 () const
| Returns True if APD.schema_name is config_control_design .
Standard_EXPORT Standard_Boolean | IsAP214 () const
| Returns True if APD.schema_name is automotive_design .
Standard_EXPORT Handle_TCollection_HAsciiString | GetACstatus ()
Standard_EXPORT Handle_TCollection_HAsciiString | GetACschemaName ()
Standard_EXPORT Standard_Integer | GetACyear ()
Standard_EXPORT Handle_TCollection_HAsciiString | GetACname ()
Standard_EXPORT void | SetACstatus (const Handle(TCollection_HAsciiString)&status)
Standard_EXPORT void | SetACschemaName (const Handle(TCollection_HAsciiString)&schemaName)
Standard_EXPORT void | SetACyear (const Standard_Integer year)
Standard_EXPORT void | SetACname (const Handle(TCollection_HAsciiString)&name)
Standard_EXPORT Handle_StepGeom_Axis2Placement3d | GetDefaultAxis ()
| Returns a default axis placement .
Standard_EXPORT STEPConstruct_AP203Context & | AP203Context ()
| Returns tool which maintains context specific for AP203 .
Standard_EXPORT Standard_Integer | Level () const
| Returns current assembly level .
Standard_EXPORT void | NextLevel ()
Standard_EXPORT void | PrevLevel ()
Standard_EXPORT void | SetLevel (const Standard_Integer lev)
| Changes current assembly level .
Standard_EXPORT Standard_Integer | Index () const
| Returns current index of assembly component on current level .
Standard_EXPORT void | NextIndex ()
Standard_EXPORT void | PrevIndex ()
Standard_EXPORT void | SetIndex (const Standard_Integer ind)
| Changes current index of assembly component on current level .
Standard_EXPORT Handle_TCollection_HAsciiString | GetProductName () const
| Generates a product name basing on write.step.product.name parameter and current position in the assembly structure .
Standard_EXPORT Handle_TColStd_HSequenceOfTransient | GetRootsForPart (const STEPConstruct_Part &SDRTool)
| Produces and returns a full list of root entities required for part identified by SDRTool (including SDR itself) .
Standard_EXPORT Handle_TColStd_HSequenceOfTransient | GetRootsForAssemblyLink (const STEPConstruct_Assembly &assembly)
| Produces and returns a full list of root entities required for assembly link identified by assembly (including NAUO and CDSR) .

## Private Attributes

TColStd_SequenceOfInteger | myLevel
Handle_StepBasic_ApplicationProtocolDefinition | theAPD
STEPConstruct_AP203Context | theAP203
Handle_StepGeom_Axis2Placement3d | myAxis

## Constructor & Destructor Documentation

Standard_EXPORT STEPConstruct_ContextTool::STEPConstruct_ContextTool | ( |  | ) |

Standard_EXPORT STEPConstruct_ContextTool::STEPConstruct_ContextTool | ( | const Handle(StepData_StepModel)& | aStepModel | ) |

## Member Function Documentation

Standard_EXPORT void STEPConstruct_ContextTool::AddAPD | ( | const Standard_Boolean | enforce = `Standard_False` | ) |

Standard_EXPORT STEPConstruct_AP203Context& STEPConstruct_ContextTool::AP203Context | ( |  | ) |

Standard_EXPORT Handle_TCollection_HAsciiString STEPConstruct_ContextTool::GetACname | ( |  | ) |

Standard_EXPORT Handle_TCollection_HAsciiString STEPConstruct_ContextTool::GetACschemaName | ( |  | ) |

Standard_EXPORT Handle_TCollection_HAsciiString STEPConstruct_ContextTool::GetACstatus | ( |  | ) |

Standard_EXPORT Standard_Integer STEPConstruct_ContextTool::GetACyear | ( |  | ) |

Standard_EXPORT Handle_StepBasic_ApplicationProtocolDefinition STEPConstruct_ContextTool::GetAPD | ( |  | ) |

Standard_EXPORT Handle_StepGeom_Axis2Placement3d STEPConstruct_ContextTool::GetDefaultAxis | ( |  | ) |

Standard_EXPORT Handle_TCollection_HAsciiString STEPConstruct_ContextTool::GetProductName | ( |  | ) | const

Standard_EXPORT Handle_TColStd_HSequenceOfTransient STEPConstruct_ContextTool::GetRootsForAssemblyLink | ( | const STEPConstruct_Assembly & | assembly | ) |

Standard_EXPORT Handle_TColStd_HSequenceOfTransient STEPConstruct_ContextTool::GetRootsForPart | ( | const STEPConstruct_Part & | SDRTool | ) |

Standard_EXPORT Standard_Integer STEPConstruct_ContextTool::Index | ( |  | ) | const

Standard_EXPORT Standard_Boolean STEPConstruct_ContextTool::IsAP203 | ( |  | ) | const

Standard_EXPORT Standard_Boolean STEPConstruct_ContextTool::IsAP214 | ( |  | ) | const

Standard_EXPORT Standard_Integer STEPConstruct_ContextTool::Level | ( |  | ) | const

Standard_EXPORT void STEPConstruct_ContextTool::NextIndex | ( |  | ) |

Standard_EXPORT void STEPConstruct_ContextTool::NextLevel | ( |  | ) |

void STEPConstruct_ContextTool::operator delete | ( | void * | anAddress | ) | `[inline]`

void* STEPConstruct_ContextTool::operator new | ( | size_t | size | ) | `[inline]`

void* STEPConstruct_ContextTool::operator new | ( | size_t | ,
|  | void * | anAddress
| ) | `[inline]`

Standard_EXPORT void STEPConstruct_ContextTool::PrevIndex | ( |  | ) |

Standard_EXPORT void STEPConstruct_ContextTool::PrevLevel | ( |  | ) |

Standard_EXPORT void STEPConstruct_ContextTool::SetACname | ( | const Handle(TCollection_HAsciiString)& | name | ) |

Standard_EXPORT void STEPConstruct_ContextTool::SetACschemaName | ( | const Handle(TCollection_HAsciiString)& | schemaName | ) |

Standard_EXPORT void STEPConstruct_ContextTool::SetACstatus | ( | const Handle(TCollection_HAsciiString)& | status | ) |

Standard_EXPORT void STEPConstruct_ContextTool::SetACyear | ( | const Standard_Integer | year | ) |

Standard_EXPORT void STEPConstruct_ContextTool::SetIndex | ( | const Standard_Integer | ind | ) |

Standard_EXPORT void STEPConstruct_ContextTool::SetLevel | ( | const Standard_Integer | lev | ) |

Standard_EXPORT void STEPConstruct_ContextTool::SetModel | ( | const Handle(StepData_StepModel)& | aStepModel | ) |

## Field Documentation

Handle_StepGeom_Axis2Placement3d STEPConstruct_ContextTool::myAxis `[private]`

TColStd_SequenceOfInteger STEPConstruct_ContextTool::myLevel `[private]`

STEPConstruct_AP203Context STEPConstruct_ContextTool::theAP203 `[private]`

Handle_StepBasic_ApplicationProtocolDefinition STEPConstruct_ContextTool::theAPD `[private]`

The documentation for this class was generated from the following file:

- STEPConstruct_ContextTool.hxx