OCC.PrsMgr module

class Handle_PrsMgr_Presentation(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_PrsMgr_PresentationManager(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_PrsMgr_Prs(*args)

Bases: OCC.Prs3d.Handle_Prs3d_Presentation

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_PrsMgr_SequenceNodeOfPresentations(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class PrsMgr_ModedPresentation(*args)

Bases: object

Return type:

None

Parameters:
  • thePrs (Handle_PrsMgr_Presentation &) –
  • theMode (int) –
Return type:

None

Mode()
Return type:int
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()
MustBeUpdated()
Return type:bool
Presentation()
Return type:Handle_Prs3d_Presentation
PresentationManager()
  • returns the PresentationManager in which the presentation has been created.
Return type:Handle_PrsMgr_PresentationManager
SetUpdateStatus()
Parameters:theStat (bool) –
Return type:None
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:

None

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:

None

Connect()
Parameters:
  • thePrsObject (Handle_PrsMgr_PresentableObject &) –
  • theOtherObject (Handle_PrsMgr_PresentableObject &) –
  • theMode (int) – default value is 0
  • theOtherMode (int) – default value is 0
Return type:

None

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:

None

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:

int

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:

None

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:

bool

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:

None

IsDisplayed()
Parameters:
  • thePrsObject (Handle_PrsMgr_PresentableObject &) –
  • theMode (int) – default value is 0
Return type:

bool

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:

bool

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:

Handle_PrsMgr_Presentation

SetDisplayPriority()
  • Sets the display priority theNewPrior of the presentable object thePrsObject in this framework with the display mode theMode.
Parameters:
  • thePrsObject (Handle_PrsMgr_PresentableObject &) –
  • theMode (int) –
  • theNewPrior (int) –
Return type:

None

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:

None

  • 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:

None

SetVisibility()
  • Sets the visibility of presentable object.
Parameters:
  • thePrsObject (Handle_PrsMgr_PresentableObject &) –
  • theMode (int) –
  • theValue (bool) –
Return type:

None

SetZLayer()
  • Set Z layer ID for all presentations of the object.
Parameters:
  • thePrsObject (Handle_PrsMgr_PresentableObject &) –
  • theLayerId (int) –
Return type:

None

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:

None

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:

None

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:

None

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:

None

Return type:

None

Assign()
Parameters:Other (PrsMgr_Presentations &) –
Return type:PrsMgr_Presentations
ChangeValue()
Parameters:Index (int) –
Return type:PrsMgr_ModedPresentation
Clear()
Return type:None
First()
Return type:PrsMgr_ModedPresentation
InsertAfter()
Parameters:
  • Index (int) –
  • T (PrsMgr_ModedPresentation &) –
  • Index
  • S (PrsMgr_Presentations &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • T (PrsMgr_ModedPresentation &) –
  • Index
  • S (PrsMgr_Presentations &) –
Return type:

None

Return type:

None

Last()
Return type:PrsMgr_ModedPresentation
Prepend()
Parameters:
  • T (PrsMgr_ModedPresentation &) –
  • S (PrsMgr_Presentations &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

Set()
Parameters:Other (PrsMgr_Presentations &) –
Return type:PrsMgr_Presentations
SetValue()
Parameters:
  • Index (int) –
  • I (PrsMgr_ModedPresentation &) –
Return type:

None

Split()
Parameters:
  • Index (int) –
  • Sub (PrsMgr_Presentations &) –
Return type:

None

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:

None

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:

Handle_Graphic3d_Structure

  • No need to return a structure, just to fill <ComputedStruct> ....
Parameters:
  • aProjector (Handle_Graphic3d_DataStructureManager &) –
  • ComputedStruct (Handle_Graphic3d_Structure &) –
Return type:

None

  • 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:

None

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:

None

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