blob: 0523bf900603edb83070d4531e5fc390d7b344d1 (
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
|
#include <StepVisual_ContextDependentOverRidingStyledItem.ixx>
StepVisual_ContextDependentOverRidingStyledItem::StepVisual_ContextDependentOverRidingStyledItem () {}
void StepVisual_ContextDependentOverRidingStyledItem::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(StepVisual_HArray1OfPresentationStyleAssignment)& aStyles,
const Handle(StepRepr_RepresentationItem)& aItem,
const Handle(StepVisual_StyledItem)& aOverRiddenStyle)
{
StepVisual_OverRidingStyledItem::Init(aName, aStyles, aItem, aOverRiddenStyle);
}
void StepVisual_ContextDependentOverRidingStyledItem::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(StepVisual_HArray1OfPresentationStyleAssignment)& aStyles,
const Handle(StepRepr_RepresentationItem)& aItem,
const Handle(StepVisual_StyledItem)& aOverRiddenStyle,
const Handle(StepVisual_HArray1OfStyleContextSelect)& aStyleContext)
{
// --- classe own fields ---
styleContext = aStyleContext;
// --- classe inherited fields ---
StepVisual_OverRidingStyledItem::Init(aName, aStyles, aItem, aOverRiddenStyle);
}
void StepVisual_ContextDependentOverRidingStyledItem::SetStyleContext(const Handle(StepVisual_HArray1OfStyleContextSelect)& aStyleContext)
{
styleContext = aStyleContext;
}
Handle(StepVisual_HArray1OfStyleContextSelect) StepVisual_ContextDependentOverRidingStyledItem::StyleContext() const
{
return styleContext;
}
StepVisual_StyleContextSelect StepVisual_ContextDependentOverRidingStyledItem::StyleContextValue(const Standard_Integer num) const
{
return styleContext->Value(num);
}
Standard_Integer StepVisual_ContextDependentOverRidingStyledItem::NbStyleContext () const
{
return styleContext->Length();
}
|