OCC.XCAFPrs module¶
-
class
Handle_XCAFPrs_AISObject(*args)¶ Bases:
OCC.AIS.Handle_AIS_ColoredShape-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_XCAFPrs_Driver(*args)¶ Bases:
OCC.TPrsStd.Handle_TPrsStd_Driver-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
SwigPyIterator(*args, **kwargs)¶ Bases:
object-
advance()¶
-
copy()¶
-
decr()¶
-
distance()¶
-
equal()¶
-
incr()¶
-
next()¶
-
previous()¶
-
thisown¶ The membership flag
-
value()¶
-
-
class
XCAFPrs_AISObject(*args)¶ Bases:
OCC.AIS.AIS_ColoredShape- Creates an object to visualise the shape label.
Parameters: theLabel (TDF_Label &) – Return type: None -
GetHandle()¶
-
thisown¶ The membership flag
-
class
XCAFPrs_DataMapIteratorOfDataMapOfShapeStyle(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (XCAFPrs_DataMapOfShapeStyle &) – Return type: None -
Key()¶ Return type: TopoDS_Shape
-
Value()¶ Return type: XCAFPrs_Style
-
thisown¶ The membership flag
-
-
class
XCAFPrs_DataMapIteratorOfDataMapOfStyleShape(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (XCAFPrs_DataMapOfStyleShape &) – Return type: None -
Key()¶ Return type: XCAFPrs_Style
-
Value()¶ Return type: TopoDS_Shape
-
thisown¶ The membership flag
-
-
class
XCAFPrs_DataMapIteratorOfDataMapOfStyleTransient(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (XCAFPrs_DataMapOfStyleTransient &) – Return type: None -
Key()¶ Return type: XCAFPrs_Style
-
Value()¶ Return type: Handle_Standard_Transient
-
thisown¶ The membership flag
-
-
class
XCAFPrs_DataMapNodeOfDataMapOfShapeStyle(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (TopoDS_Shape &) –
- I (XCAFPrs_Style &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
Key()¶ Return type: TopoDS_Shape
-
Value()¶ Return type: XCAFPrs_Style
-
thisown¶ The membership flag
-
class
XCAFPrs_DataMapNodeOfDataMapOfStyleShape(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (XCAFPrs_Style &) –
- I (TopoDS_Shape &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
Key()¶ Return type: XCAFPrs_Style
-
Value()¶ Return type: TopoDS_Shape
-
thisown¶ The membership flag
-
class
XCAFPrs_DataMapNodeOfDataMapOfStyleTransient(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (XCAFPrs_Style &) –
- I (Handle_Standard_Transient &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
Key()¶ Return type: XCAFPrs_Style
-
Value()¶ Return type: Handle_Standard_Transient
-
thisown¶ The membership flag
-
class
XCAFPrs_DataMapOfShapeStyle(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (XCAFPrs_DataMapOfShapeStyle &) – Return type: XCAFPrs_DataMapOfShapeStyle
-
ChangeFind()¶ Parameters: K (TopoDS_Shape &) – Return type: XCAFPrs_Style
-
ChangeFind1()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Find()¶ Parameters: K (TopoDS_Shape &) – Return type: XCAFPrs_Style
-
Find1()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (XCAFPrs_DataMapOfShapeStyle &) – Return type: XCAFPrs_DataMapOfShapeStyle
-
thisown¶ The membership flag
-
-
class
XCAFPrs_DataMapOfStyleShape(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (XCAFPrs_DataMapOfStyleShape &) – Return type: XCAFPrs_DataMapOfStyleShape
-
ChangeFind()¶ Parameters: K (XCAFPrs_Style &) – Return type: TopoDS_Shape
-
ChangeFind1()¶ Parameters: K (XCAFPrs_Style &) – Return type: Standard_Address
-
Find()¶ Parameters: K (XCAFPrs_Style &) – Return type: TopoDS_Shape
-
Find1()¶ Parameters: K (XCAFPrs_Style &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (XCAFPrs_DataMapOfStyleShape &) – Return type: XCAFPrs_DataMapOfStyleShape
-
thisown¶ The membership flag
-
-
class
XCAFPrs_DataMapOfStyleTransient(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (XCAFPrs_DataMapOfStyleTransient &) – Return type: XCAFPrs_DataMapOfStyleTransient
-
ChangeFind()¶ Parameters: K (XCAFPrs_Style &) – Return type: Handle_Standard_Transient
-
ChangeFind1()¶ Parameters: K (XCAFPrs_Style &) – Return type: Standard_Address
-
Find()¶ Parameters: K (XCAFPrs_Style &) – Return type: Handle_Standard_Transient
-
Find1()¶ Parameters: K (XCAFPrs_Style &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (XCAFPrs_DataMapOfStyleTransient &) – Return type: XCAFPrs_DataMapOfStyleTransient
-
thisown¶ The membership flag
-
-
class
XCAFPrs_Driver(*args, **kwargs)¶ Bases:
OCC.TPrsStd.TPrsStd_Driver-
GetHandle()¶
-
static
GetID(*args)¶ - returns GUID of the driver
Return type: Standard_GUID
-
thisown¶ The membership flag
-
-
XCAFPrs_Driver_GetID(*args)¶ - returns GUID of the driver
Return type: Standard_GUID
-
class
XCAFPrs_Style(*args)¶ Bases:
objectReturn type: None -
GetColorCurv()¶ Return type: Quantity_Color
-
GetColorSurf()¶ Return type: Quantity_Color
-
static
HashCode(*args)¶ - Returns a HasCode value for the Key <K> in the range 0..Upper.
Parameters: - S (XCAFPrs_Style &) –
- Upper (int) –
Return type:
-
static
IsEqual(*args)¶ - Returs True if styles are the same Methods for using Style as key in maps
Parameters: other (XCAFPrs_Style &) – Return type: bool - Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary.
Parameters: - S1 (XCAFPrs_Style &) –
- S2 (XCAFPrs_Style &) –
Return type:
-
IsVisible()¶ - Manage visibility Note: Setting visibility to False makes colors undefined This is necessary for HashCode
Return type: bool
-
thisown¶ The membership flag
-
-
XCAFPrs_Style_HashCode(*args)¶ - Returns a HasCode value for the Key <K> in the range 0..Upper.
Parameters: - S (XCAFPrs_Style &) –
- Upper (int) –
Return type:
-
XCAFPrs_Style_IsEqual(*args)¶ - Returs True if styles are the same Methods for using Style as key in maps
Parameters: other (XCAFPrs_Style &) – Return type: bool - Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary.
Parameters: - S1 (XCAFPrs_Style &) –
- S2 (XCAFPrs_Style &) –
Return type:
-
register_handle(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases
-
class
xcafprs¶ Bases:
object-
static
CollectStyleSettings(*args)¶ - Collect styles defined for shape on label L and its components and subshapes and fills a map of shape - style correspondence The location <loc> is for internal use, it should be Null location for external call
Parameters: - L (TDF_Label &) –
- loc (TopLoc_Location &) –
- settings (XCAFPrs_DataMapOfShapeStyle &) –
Return type: void
-
static
DispatchStyles(*args)¶ - Iterates on shape (recursively) and splits it on parts each of which has its own style (basing on settings collected by CollectStyleSettings()) The DefStyle is default style applied to a shape if no specific style assignment is applied to it If force is True, the <shape> is added to a map even if no styles are redefined for it or its subshapes The context is for internal use, it indicates the type of the shape to which <shape> belongs
Parameters: - shape (TopoDS_Shape &) –
- settings (XCAFPrs_DataMapOfShapeStyle &) –
- items (XCAFPrs_DataMapOfStyleShape &) –
- DefStyle (XCAFPrs_Style &) –
- force (bool) – default value is Standard_True
- context (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
Return type:
-
static
SetViewNameMode(*args)¶ - Set ViewNameMode for indicate display names or not.
Parameters: viewNameMode (bool) – Return type: void
-
thisown¶ The membership flag
-
static
-
xcafprs_CollectStyleSettings(*args)¶ - Collect styles defined for shape on label L and its components and subshapes and fills a map of shape - style correspondence The location <loc> is for internal use, it should be Null location for external call
Parameters: - L (TDF_Label &) –
- loc (TopLoc_Location &) –
- settings (XCAFPrs_DataMapOfShapeStyle &) –
Return type: void
-
xcafprs_DispatchStyles(*args)¶ - Iterates on shape (recursively) and splits it on parts each of which has its own style (basing on settings collected by CollectStyleSettings()) The DefStyle is default style applied to a shape if no specific style assignment is applied to it If force is True, the <shape> is added to a map even if no styles are redefined for it or its subshapes The context is for internal use, it indicates the type of the shape to which <shape> belongs
Parameters: - shape (TopoDS_Shape &) –
- settings (XCAFPrs_DataMapOfShapeStyle &) –
- items (XCAFPrs_DataMapOfStyleShape &) –
- DefStyle (XCAFPrs_Style &) –
- force (bool) – default value is Standard_True
- context (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
Return type: