OCC.PrsMgr module¶
-
class
Handle_PrsMgr_Presentation
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_PrsMgr_PresentationManager
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_PrsMgr_Prs
(*args)¶ Bases:
OCC.Prs3d.Handle_Prs3d_Presentation
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_PrsMgr_SequenceNodeOfPresentations
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
PrsMgr_ModedPresentation
(*args)¶ Bases:
object
Return type: Parameters: - thePrs (Handle_PrsMgr_Presentation &) –
- theMode (int) –
Return type: -
Presentation
()¶ Return type: Handle_PrsMgr_Presentation
-
thisown
¶ The membership flag
-
class
PrsMgr_Presentation
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
Destroy
()¶ - Destructor
Return type: void
-
GetHandle
()¶
-
Presentation
()¶ Return type: Handle_Prs3d_Presentation
-
PresentationManager
()¶ - returns the PresentationManager in which the presentation has been created.
Return type: Handle_PrsMgr_PresentationManager
-
thisown
¶ The membership flag
-
-
class
PrsMgr_PresentationManager
(*args)¶ Bases:
OCC.MMgt.MMgt_TShared
- Creates a framework to manage displays and graphic entities with the 3D view theStructureManager.
Parameters: theStructureManager (Handle_Graphic3d_StructureManager &) – Return type: None -
AddToImmediateList
()¶ - Stores thePrs in the transient list of presentations to be displayed in immediate mode. Will be taken in account in EndImmediateDraw method.
Parameters: thePrs (Handle_Prs3d_Presentation &) – Return type: None
-
BeginImmediateDraw
()¶ - Resets the transient list of presentations previously displayed in immediate mode and begins accumulation of new list by following AddToImmediateList()/Color()/Highlight() calls.
Return type: None
-
BoundBox
()¶ - highlights the boundbox of the presentation
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
Clear
()¶ - Clears the presentation of the presentable object thePrsObject in this framework with the display mode theMode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type: void
-
ClearImmediateDraw
()¶ - Resets the transient list of presentations previously displayed in immediate mode.
Return type: None
-
Color
()¶ - Highlights the graphic object thePrsObject in the color theColor. thePrsObject has the display mode theMode; this has the default value of 0, that is, the wireframe display mode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theColor (Quantity_NameOfColor) – default value is Quantity_NOC_YELLOW
- theMode (int) – default value is 0
Return type:
-
Connect
()¶ Parameters: Return type:
-
Display
()¶ - Displays the presentation of the object in the given Presentation manager with the given mode. The mode should be enumerated by the object which inherits PresentableObject.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
DisplayPriority
()¶ - Returns the display priority of the presentable object thePrsObject in this framework with the display mode theMode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) –
Return type:
-
EndImmediateDraw
()¶ - Allows rapid drawing of the view theView by avoiding an update of the whole background.
Parameters: theView (Handle_V3d_View &) – Return type: None
-
Erase
()¶ - erases the presentation of the object in the given Presentation manager with the given mode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
GetHandle
()¶
-
GetZLayer
()¶ - Get Z layer ID assigned to all presentations of the object. Method returns -1 value if object has no presentations and is impossible to get layer index.
Parameters: thePrsObject (Handle_PrsMgr_PresentableObject &) – Return type: int
-
HasPresentation
()¶ - Returns true if there is a presentation of the presentable object thePrsObject in this framework, thePrsObject having the display mode theMode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
Highlight
()¶ - Highlights the presentation of the presentable object thePrsObject in this framework with the display mode theMode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
IsDisplayed
()¶ Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
IsHighlighted
()¶ - Returns true if the presentation of the presentable object thePrsObject in this framework with the display mode theMode is highlighted.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
IsImmediateModeOn
()¶ - Returns true if Presentation Manager is accumulating transient list of presentations to be displayed in immediate mode.
Return type: bool
-
Presentation
()¶ - Returns the presentation Presentation of the presentable object thePrsObject in this framework. thePrsObject has the display mode theMode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
SetDisplayPriority
()¶ - Sets the display priority theNewPrior of the presentable object thePrsObject in this framework with the display mode theMode.
Parameters: Return type:
-
SetShadingAspect
()¶ - this method will change the color and the aspect of the presentations containing shaded structures.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theColor (Quantity_NameOfColor) –
- theMaterial (Graphic3d_NameOfMaterial) –
- theMode (int) – default value is 0
Return type: - this method will change the color and the aspect of the presentations containing shaded structures.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theShadingAspect (Handle_Prs3d_ShadingAspect &) –
- theMode (int) – default value is 0
Return type:
-
SetVisibility
()¶ - Sets the visibility of presentable object.
Parameters: Return type:
-
SetZLayer
()¶ - Set Z layer ID for all presentations of the object.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theLayerId (int) –
Return type:
-
StructureManager
()¶ - Returns the structure manager.
Return type: Handle_Graphic3d_StructureManager
-
Transform
()¶ - Sets the transformation theTransformation for the presentable object thePrsObject. thePrsObject has the display mode theMode; this has the default value of 0, that is, the wireframe display mode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theTransformation (Handle_Geom_Transformation &) –
- theMode (int) – default value is 0
Return type:
-
Unhighlight
()¶ - Removes highlighting from the presentation of the presentable object thePrsObject in this framework with the display mode theMode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
Update
()¶ - Updates the presentation of the presentable object thePrsObject in this framework with the display mode theMode.
Parameters: - thePrsObject (Handle_PrsMgr_PresentableObject &) –
- theMode (int) – default value is 0
Return type:
-
thisown
¶ The membership flag
-
class
PrsMgr_Presentations
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (PrsMgr_Presentations &) – Return type: None -
Append
()¶ Parameters: - T (PrsMgr_ModedPresentation &) –
- S (PrsMgr_Presentations &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (PrsMgr_Presentations &) – Return type: PrsMgr_Presentations
-
ChangeValue
()¶ Parameters: Index (int) – Return type: PrsMgr_ModedPresentation
-
First
()¶ Return type: PrsMgr_ModedPresentation
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (PrsMgr_ModedPresentation &) –
- Index –
- S (PrsMgr_Presentations &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (PrsMgr_ModedPresentation &) –
- Index –
- S (PrsMgr_Presentations &) –
Return type: Return type:
-
Last
()¶ Return type: PrsMgr_ModedPresentation
-
Prepend
()¶ Parameters: - T (PrsMgr_ModedPresentation &) –
- S (PrsMgr_Presentations &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (PrsMgr_Presentations &) – Return type: PrsMgr_Presentations
-
Value
()¶ Parameters: Index (int) – Return type: PrsMgr_ModedPresentation
-
thisown
¶ The membership flag
-
-
class
PrsMgr_Prs
(*args)¶ Bases:
OCC.Prs3d.Prs3d_Presentation
Parameters: - theStructManager (Handle_Graphic3d_StructureManager &) –
- thePresentation (PrsMgr_PresentationPointer &) –
- theTypeOfPresentation3d (PrsMgr_TypeOfPresentation3d) –
Return type: -
Compute
()¶ Return type: None Parameters: aProjector (Handle_Graphic3d_DataStructureManager &) – Return type: Handle_Graphic3d_Structure - the ‘degenerated’ Structure is displayed with a transformation defined by <AMatrix> which is not a Pure Translation. We have to take in account this Transformation in the computation of hidden line removal... returns a filled Graphic Structure.
Parameters: - aProjector (Handle_Graphic3d_DataStructureManager &) –
- AMatrix (TColStd_Array2OfReal &) –
Return type: - No need to return a structure, just to fill <ComputedStruct> ....
Parameters: - aProjector (Handle_Graphic3d_DataStructureManager &) –
- ComputedStruct (Handle_Graphic3d_Structure &) –
Return type: - No Need to return a Structure, just to Fill <aStructure>. The Trsf has to be taken in account in the computation (Rotation Part....)
Parameters: - aProjector (Handle_Graphic3d_DataStructureManager &) –
- AMatrix (TColStd_Array2OfReal &) –
- aStructure (Handle_Graphic3d_Structure &) –
Return type:
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
PrsMgr_SequenceNodeOfPresentations
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (PrsMgr_ModedPresentation &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: PrsMgr_ModedPresentation
-
thisown
¶ The membership flag
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases