OCC.Core.PrsMgr module¶
PrsMgr module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_prsmgr.html
-
class
PrsMgr_ListOfPresentableObjects
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
Clear
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
Last
()¶
-
Prepend
()¶
-
Remove
()¶
-
RemoveFirst
()¶
-
Reverse
()¶
-
Set
()¶
-
Size
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
PrsMgr_ListOfPresentableObjectsIter
(*args)¶ Bases:
object
-
ChangeValue
()¶
-
More
()¶
-
Next
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
PrsMgr_ListOfPresentations
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
Clear
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
Last
()¶
-
Prepend
()¶
-
Remove
()¶
-
RemoveFirst
()¶
-
Reverse
()¶
-
Set
()¶
-
Size
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
PrsMgr_PresentableObject
(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
AcceptDisplayMode
()¶ - Returns true if the class of objects accepts specified display mode index. The interactive context can have a default mode of representation for the set of Interactive Objects. This mode may not be accepted by a given class of objects. Consequently, this virtual method allowing us to get information about the class in question must be implemented. At least one display mode index should be accepted by this method. Although subclass can leave default implementation, it is highly desired defining exact list of supported modes instead, which is usually an enumeration for one object or objects class sharing similar list of display modes.
- param theMode
- type theMode
int
- rtype
bool
-
AddChild
()¶ - Makes theObject child of current object in scene hierarchy.
- param theObject
- type theObject
PrsMgr_PresentableObject
- rtype
void
-
AddChildWithCurrentTransformation
()¶ - Makes theObject child of current object in scene hierarchy with keeping the current global transformation So the object keeps the same position/orientation in the global CS.
- param theObject
- type theObject
PrsMgr_PresentableObject
- rtype
None
-
AddClipPlane
()¶ - Adds clip plane for graphical clipping for all display mode presentations. The composition of clip planes truncates the rendering space to convex volume. Please be aware that number of supported clip plane is limited. The planes which exceed the limit are ignored. Besides of this, some planes can be already set in view where the object is shown: the number of these planes should be subtracted from limit to predict the maximum possible number of object clipping planes. @param thePlane [in] the clip plane to be appended to map of clip planes.
- param thePlane
- type thePlane
Graphic3d_ClipPlane
- rtype
void
-
Attributes
()¶ - @name presentation attributes Returns the attributes settings.
- rtype
opencascade::handle<Prs3d_Drawer>
-
BoundingBox
()¶ - Returns bounding box of object correspondingly to its current display mode. This method requires presentation to be already computed, since it relies on bounding box of presentation structures, which are supposed to be same/close amongst different display modes of this object.
- param theBndBox
- type theBndBox
Bnd_Box
- rtype
void
-
Children
()¶ - Returns children of the current object.
- rtype
PrsMgr_ListOfPresentableObjects
-
ClipPlanes
()¶ - @name clipping planes Get clip planes. returns set of previously added clip planes for all display mode presentations.
- rtype
opencascade::handle<Graphic3d_SequenceOfHClipPlane>
-
Color
()¶ - Returns the color setting of the Interactive Object.
- param theColor
- type theColor
Quantity_Color
- rtype
None
-
CombinedParentTransformation
()¶ - Return combined parent transformation.
- rtype
opencascade::handle<Geom_Transformation>
-
CurrentFacingModel
()¶ - Returns the current facing model which is in effect.
- rtype
Aspect_TypeOfFacingModel
-
DefaultDisplayMode
()¶ - Returns the default display mode.
- rtype
int
-
DisplayMode
()¶ - Returns the display mode setting of the Interactive Object. The range of supported display mode indexes should be specified within object definition and filtered by AccepDisplayMode(). @sa AcceptDisplayMode()
- rtype
int
-
static
DownCast
(t)¶
-
DumpJsonToString
(PrsMgr_PresentableObject self, int depth=-1) → std::string¶
-
DynamicHilightAttributes
()¶ - Returns the hilight attributes settings. When not NULL, overrides both Prs3d_TypeOfHighlight_LocalDynamic and Prs3d_TypeOfHighlight_Dynamic defined within AIS_InteractiveContext.
- rtype
opencascade::handle<Prs3d_Drawer>
-
GetTransformPersistenceMode
()¶ - Gets Transform Persistence Mode for this object
- rtype
Graphic3d_TransModeFlags
-
GetTransformPersistencePoint
()¶ - Gets point of transform persistence for this object
- rtype
gp_Pnt
-
HasColor
()¶ - Returns true if the Interactive Object has color.
- rtype
bool
-
HasDisplayMode
()¶ - Returns true if the Interactive Object has display mode setting overriding global setting (within Interactive Context).
- rtype
bool
-
HasHilightMode
()¶ - Returns true if the Interactive Object is in highlight mode.
- rtype
bool
-
HasMaterial
()¶ - Returns true if the Interactive Object has a setting for material.
- rtype
bool
-
HasOwnPresentations
()¶ - Returns true if object should have own presentations.
- rtype
bool
-
HasPolygonOffsets
()¶ - Returns Standard_True if <myDrawer> has non-null shading aspect
- rtype
bool
-
HasTransformation
()¶ - Returns true if object has a transformation that is different from the identity.
- rtype
bool
-
HasWidth
()¶ - Returns true if the Interactive Object has width.
- rtype
bool
-
HilightAttributes
()¶ - Returns the hilight attributes settings. When not NULL, overrides both Prs3d_TypeOfHighlight_LocalSelected and Prs3d_TypeOfHighlight_Selected defined within AIS_InteractiveContext.
- rtype
opencascade::handle<Prs3d_Drawer>
-
HilightMode
()¶ - Returns highlight display mode. This is obsolete method for backward compatibility - use ::HilightAttributes() and ::DynamicHilightAttributes() instead.
- rtype
int
-
InversedTransformation
()¶ - Return inversed transformation.
- rtype
gp_GTrsf
-
IsInfinite
()¶ - Returns true if the interactive object is infinite; False by default. This flag affects various operations operating on bounding box of graphic presentations of this object. For instance, infinite objects are not taken in account for View FitAll. This does not necessarily means that object is actually infinite, auxiliary objects might be also marked with this flag to achieve desired behavior.
- rtype
bool
-
IsMutable
()¶ - Returns true if object has mutable nature (content or location are be changed regularly). Mutable object will be managed in different way than static onces (another optimizations).
- rtype
bool
-
IsTransparent
()¶ - Returns true if there is a transparency setting.
- rtype
bool
-
LocalTransformation
()¶ - Return the local transformation. Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
- rtype
gp_Trsf
-
LocalTransformationGeom
()¶ - Return the local transformation. Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
- rtype
opencascade::handle<Geom_Transformation>
-
Material
()¶ - Returns the current material setting as enumeration value.
- rtype
Graphic3d_NameOfMaterial
-
Parent
()¶ - @name parent/children properties Returns parent of current object in scene hierarchy.
- rtype
PrsMgr_PresentableObject *
-
PolygonOffsets
()¶ - Retrieves current polygon offsets settings from <myDrawer>.
- param aMode
- type aMode
int
- param aFactor
- type aFactor
Standard_ShortReal
- param aUnits
- type aUnits
Standard_ShortReal
- rtype
void
-
Presentations
()¶ - Return presentations.
- rtype
PrsMgr_Presentations
-
RemoveChild
()¶ - Removes theObject from children of current object in scene hierarchy.
- param theObject
- type theObject
PrsMgr_PresentableObject
- rtype
void
-
RemoveChildWithRestoreTransformation
()¶ - Removes theObject from children of current object in scene hierarchy with keeping the current global transformation. So the object keeps the same position/orientation in the global CS.
- param theObject
- type theObject
PrsMgr_PresentableObject
- rtype
None
-
RemoveClipPlane
()¶ - Removes previously added clip plane. @param thePlane [in] the clip plane to be removed from map of clip planes.
- param thePlane
- type thePlane
Graphic3d_ClipPlane
- rtype
void
-
ResetTransformation
()¶ - resets local transformation to identity.
- rtype
void
-
SetAttributes
()¶ - Initializes the drawing tool theDrawer.
- param theDrawer
- type theDrawer
Prs3d_Drawer
- rtype
None
-
SetClipPlanes
()¶ - Set clip planes for graphical clipping for all display mode presentations. The composition of clip planes truncates the rendering space to convex volume. Please be aware that number of supported clip plane is limited. The planes which exceed the limit are ignored. Besides of this, some planes can be already set in view where the object is shown: the number of these planes should be subtracted from limit to predict the maximum possible number of object clipping planes.
- param thePlanes
- type thePlanes
Graphic3d_SequenceOfHClipPlane
- rtype
void:param thePlanes:
- type thePlanes
Graphic3d_SequenceOfHClipPlane
- rtype
None
-
SetColor
()¶ - Only the interactive object knowns which Drawer attribute is affected by the color, if any (ex: for a wire,it’s the wireaspect field of the drawer, but for a vertex, only the point aspect field is affected by the color). WARNINGDo not forget to set the corresponding fields here (hasOwnColor and myDrawer->SetColor())
- param theColor
- type theColor
Quantity_Color
- rtype
None
-
SetCurrentFacingModel
()¶ - change the current facing model apply on polygons for SetColor(), SetTransparency(), SetMaterial() methods default facing model is Aspect_TOFM_TWO_SIDE. This mean that attributes is applying both on the front and back face.
- param theModel
default value is Aspect_TOFM_BOTH_SIDE
- type theModel
Aspect_TypeOfFacingModel
- rtype
None
-
SetDisplayMode
()¶ - Sets the display mode for the interactive object. An object can have its own temporary display mode, which is different from that proposed by the interactive context. @sa AcceptDisplayMode()
- param theMode
- type theMode
int
- rtype
None
-
SetDynamicHilightAttributes
()¶ - Initializes the dynamic hilight drawing tool.
- param theDrawer
- type theDrawer
Prs3d_Drawer
- rtype
None
-
SetHilightAttributes
()¶ - Initializes the hilight drawing tool theDrawer.
- param theDrawer
- type theDrawer
Prs3d_Drawer
- rtype
None
-
SetHilightMode
()¶ - Sets highlight display mode. This is obsolete method for backward compatibility - use ::HilightAttributes() and ::DynamicHilightAttributes() instead.
- param theMode
- type theMode
int
- rtype
None
-
SetInfiniteState
()¶ - Sets if object should be considered as infinite.
- param theFlag
default value is Standard_True
- type theFlag
bool
- rtype
None
-
SetIsoOnTriangulation
()¶ - @name simplified presentation properties API Enables or disables on-triangulation build of isolines according to the flag given.
- param theIsEnabled
- type theIsEnabled
bool
- rtype
None
-
SetLocalTransformation
()¶ - Sets local transformation to theTransformation. Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
- param theTrsf
- type theTrsf
gp_Trsf
- rtype
None* Sets local transformation to theTransformation. Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
- param theTrsf
- type theTrsf
Geom_Transformation
- rtype
None
-
SetMaterial
()¶ - Sets the material aMat defining this display attribute for the interactive object. Material aspect determines shading aspect, color and transparency of visible entities.
- param aName
- type aName
Graphic3d_MaterialAspect
- rtype
void
-
SetMutable
()¶ - Sets if the object has mutable nature (content or location will be changed regularly). This method should be called before object displaying to take effect.
- param theIsMutable
- type theIsMutable
bool
- rtype
void
-
SetPolygonOffsets
()¶ - Sets up polygon offsets for this object. @sa Graphic3d_Aspects::SetPolygonOffsets()
- param aMode
- type aMode
int
- param aFactor
default value is 1.0
- type aFactor
Standard_ShortReal
- param aUnits
default value is 0.0
- type aUnits
Standard_ShortReal
- rtype
void
-
SetPropagateVisualState
()¶ - Change the value of the flag ‘propagate visual state’
- param theFlag
- type theFlag
bool
- rtype
None
-
SetToUpdate
()¶ - Flags presentation to be updated; UpdatePresentations() will recompute these presentations. @param theMode presentation (display mode) to invalidate, or -1 to invalidate them all
- param theMode
- type theMode
int
- rtype
None* flags all the Presentations to be Updated.
- rtype
None
-
SetTransformPersistence
()¶ - Sets up Transform Persistence defining a special Local Coordinate system where this object should be located. Note that management of Transform Persistence object is more expensive than of the normal one, because it requires its position being recomputed basing on camera position within each draw call / traverse. @sa Graphic3d_TransformPers class description
- param theTrsfPers
- type theTrsfPers
Graphic3d_TransformPers
- rtype
void* Sets up Transform Persistence Mode for this object. This function used to lock in object position, rotation and / or zooming relative to camera position. Object will be drawn in the origin setted by thePoint parameter (except Graphic3d_TMF_TriedronPers flag - see description later). theMode should be: - Graphic3d_TMF_None - no persistence attributes (reset); - Graphic3d_TMF_ZoomPers - object doesn’t resize; - Graphic3d_TMF_RotatePers - object doesn’t rotate; - Graphic3d_TMF_ZoomRotatePers - object doesn’t resize and rotate; - Graphic3d_TMF_RotatePers - object doesn’t rotate; - Graphic3d_TMF_TriedronPers - object behaves like trihedron. If Graphic3d_TMF_TriedronPers or Graphic3d_TMF_2d persistence mode selected thePoint coordinates X and Y means: - X = 0.0, Y = 0.0 - center of view window; - X > 0.0, Y > 0.0 - right upper corner of view window; - X > 0.0, Y < 0.0 - right lower corner of view window; - X < 0.0, Y > 0.0 - left upper corner of view window; - X < 0.0, Y < 0.0 - left lower corner of view window. And Z coordinate defines the gap from border of view window (except center position).
- param theMode
- type theMode
Graphic3d_TransModeFlags
- param thePoint
default value is gp_Pnt(0.0,0.0,0.0)
- type thePoint
gp_Pnt
- rtype
None
-
SetTransparency
()¶ - Attributes a setting aValue for transparency. The transparency value should be between 0.0 and 1.0. At 0.0 an object will be totally opaque, and at 1.0, fully transparent. Warning At a value of 1.0, there may be nothing visible.
- param aValue
default value is 0.6
- type aValue
float
- rtype
void
-
SetTypeOfPresentation
()¶ - Set type of presentation.
- param theType
- type theType
PrsMgr_TypeOfPresentation3d
- rtype
None
-
SetWidth
()¶ - Allows you to provide the setting aValue for width. Only the Interactive Object knows which Drawer attribute is affected by the width setting.
- param theWidth
- type theWidth
float
- rtype
None
-
SetZLayer
()¶ - Set Z layer ID and update all presentations of the presentable object. The layers mechanism allows drawing objects in higher layers in overlay of objects in lower layers.
- param theLayerId
- type theLayerId
int
- rtype
void
-
SynchronizeAspects
()¶ - Synchronize presentation aspects after their modification. //! This method should be called after modifying primitive aspect properties (material, texture, shader) so that modifications will take effect on already computed presentation groups (thus avoiding re-displaying the object).
- rtype
None
-
ToBeUpdated
()¶ - Returns True if any active presentation has invalidation flag. @param theToIncludeHidden when True, also checks hidden presentations
- param theToIncludeHidden
default value is Standard_False
- type theToIncludeHidden
bool
- rtype
bool* @name deprecated methods gives the list of modes which are flagged ‘to be updated’.
- param ListOfMode
- type ListOfMode
TColStd_ListOfInteger
- rtype
None
-
ToPropagateVisualState
()¶ - Get value of the flag ‘propagate visual state’ It means that the display/erase/color visual state is propagated automatically to all children; by default, the flag is true
- rtype
bool
-
TransformPersistence
()¶ - @name object transformation Returns Transformation Persistence defining a special Local Coordinate system where this presentable object is located or NULL handle if not defined. Position of the object having Transformation Persistence is mutable and depends on camera position. The same applies to a bounding box of the object. @sa Graphic3d_TransformPers class description
- rtype
opencascade::handle<Graphic3d_TransformPers>
-
Transformation
()¶ - Return the transformation taking into account transformation of parent object(s). Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
- rtype
gp_Trsf
-
TransformationGeom
()¶ - Return the transformation taking into account transformation of parent object(s). Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
- rtype
opencascade::handle<Geom_Transformation>
-
Transparency
()¶ - Returns the transparency setting. This will be between 0.0 and 1.0. At 0.0 an object will be totally opaque, and at 1.0, fully transparent.
- rtype
float
-
TypeOfPresentation3d
()¶ - Returns information on whether the object accepts display in HLR mode or not.
- rtype
PrsMgr_TypeOfPresentation3d
-
UnsetAttributes
()¶ - Clears settings provided by the drawing tool aDrawer.
- rtype
void
-
UnsetColor
()¶ - Removes color settings. Only the Interactive Object knows which Drawer attribute is affected by the color setting. For a wire, for example, wire aspect is the attribute affected. For a vertex, however, only point aspect is affected by the color setting.
- rtype
None
-
UnsetDisplayMode
()¶ - Removes display mode settings from the interactive object.
- rtype
None
-
UnsetHilightAttributes
()¶ - Clears settings provided by the hilight drawing tool theDrawer.
- rtype
None
-
UnsetHilightMode
()¶ - Unsets highlight display mode.
- rtype
None
-
UnsetMaterial
()¶ - Removes the setting for material.
- rtype
void
-
UnsetTransparency
()¶ - Removes the transparency setting. The object is opaque by default.
- rtype
void
-
UnsetWidth
()¶ - Reset width to default value.
- rtype
None
-
UpdateTransformation
()¶ - Updates final transformation (parent + local) of presentable object and its presentations.
- rtype
void
-
Width
()¶ - Returns the width setting of the Interactive Object.
- rtype
float
-
ZLayer
()¶ - Get ID of Z layer for main presentation.
- rtype
Graphic3d_ZLayerId
-
property
thisown
¶ The membership flag
-
class
PrsMgr_Presentation
(*args, **kwargs)¶ Bases:
OCC.Core.Graphic3d.Graphic3d_Structure
Creates a graphic object in the manager theManager. It will appear in all the views of the visualiser. The structure is not displayed when it is created. @param theManager structure manager holding this structure @param theLinkPrs another structure for creating a shadow (linked) structure
- Parameters
theManager (Graphic3d_StructureManager) –
theLinkPrs (Graphic3d_Structure) – default value is opencascade::handle<Graphic3d_Structure>()
- Return type
-
Compute
()¶ - Compute structure using presentation manager.
- rtype
void
-
static
DownCast
(t)¶
-
Highlight
()¶ - Highlight structure.
- param theStyle
- type theStyle
Prs3d_Drawer
- rtype
None
-
IsDisplayed
()¶ - Return True if structure has been displayed and in no hidden state.
- rtype
bool
-
Mode
()¶ - Return display mode index.
- rtype
int
-
Presentation
()¶ - Return type
Prs3d_Presentation *
-
PresentationManager
()¶ - returns the PresentationManager in which the presentation has been created.
- rtype
opencascade::handle<PrsMgr_PresentationManager>
-
SetUpdateStatus
()¶ - Parameters
theUpdateStatus –
- type theUpdateStatus
bool
- rtype
None
-
Unhighlight
()¶ - Unhighlight structure.
- rtype
None
-
property
thisown
¶ The membership flag
-
class
PrsMgr_PresentationManager
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Creates a framework to manage displays and graphic entities with the 3D view theStructureManager.
- param theStructureManager
- type theStructureManager
Graphic3d_StructureManager
- rtype
None
-
AddToImmediateList
()¶ - Stores thePrs in the transient list of presentations to be displayed in immediate mode. Will be taken in account in EndImmediateDraw method.
- param thePrs
- type thePrs
Prs3d_Presentation
- rtype
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.
- rtype
None
-
Clear
()¶ - Clears the presentation of the presentable object thePrsObject in this framework with the display mode theMode.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- rtype
void
-
ClearImmediateDraw
()¶ - Resets the transient list of presentations previously displayed in immediate mode.
- rtype
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.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theStyle
- type theStyle
Prs3d_Drawer
- param theMode
default value is 0
- type theMode
int
- param theSelObj
default value is NULL
- type theSelObj
PrsMgr_PresentableObject
- param theImmediateStructLayerId
default value is Graphic3d_ZLayerId_Topmost
- type theImmediateStructLayerId
int
- rtype
None
-
Connect
()¶ - Parameters
thePrsObject –
- type thePrsObject
PrsMgr_PresentableObject
- param theOtherObject
- type theOtherObject
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- param theOtherMode
default value is 0
- type theOtherMode
int
- rtype
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.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- rtype
None
-
DisplayPriority
()¶ - Returns the display priority of the presentable object thePrsObject in this framework with the display mode theMode.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
- type theMode
int
- rtype
int
-
static
DownCast
(t)¶
-
EndImmediateDraw
()¶ - Allows rapid drawing of the each view in theViewer by avoiding an update of the whole background.
- param theViewer
- type theViewer
V3d_Viewer
- rtype
None
-
Erase
()¶ - erases the presentation of the object in the given Presentation manager with the given mode. If @theMode is -1, then erases all presentations of the object.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- rtype
None
-
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.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- rtype
Graphic3d_ZLayerId
-
HasPresentation
()¶ - Returns true if there is a presentation of the presentable object thePrsObject in this framework, thePrsObject having the display mode theMode.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- rtype
bool
-
IsDisplayed
()¶ - Parameters
thePrsObject –
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- rtype
bool
-
IsHighlighted
()¶ - Returns true if the presentation of the presentable object thePrsObject in this framework with the display mode theMode is highlighted.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- rtype
bool
-
IsImmediateModeOn
()¶ - Returns true if Presentation Manager is accumulating transient list of presentations to be displayed in immediate mode.
- rtype
bool
-
Presentation
()¶ - Returns the presentation Presentation of the presentable object thePrsObject in this framework. When theToCreate is true - automatically creates presentation for specified mode when not exist. Optional argument theSelObj specifies parent decomposed object to inherit its view affinity.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- param theToCreate
default value is Standard_False
- type theToCreate
bool
- param theSelObj
default value is NULL
- type theSelObj
PrsMgr_PresentableObject
- rtype
opencascade::handle<PrsMgr_Presentation>
-
RedrawImmediate
()¶ - Clears and redisplays immediate structures of the viewer taking into account its affinity.
- param theViewer
- type theViewer
V3d_Viewer
- rtype
None
-
SetDisplayPriority
()¶ - Sets the display priority theNewPrior of the presentable object thePrsObject in this framework with the display mode theMode.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
- type theMode
int
- param theNewPrior
- type theNewPrior
int
- rtype
None
-
SetVisibility
()¶ - Sets the visibility of presentable object.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
- type theMode
int
- param theValue
- type theValue
bool
- rtype
None
-
SetZLayer
()¶ - Set Z layer ID for all presentations of the object.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theLayerId
- type theLayerId
int
- rtype
None
-
StructureManager
()¶ - Returns the structure manager.
- rtype
opencascade::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.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theTransformation
- type theTransformation
Geom_Transformation
- param theMode
default value is 0
- type theMode
int
- rtype
None
-
Unhighlight
()¶ - Removes highlighting from the presentation of the presentable object.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- rtype
None:param thePrsObject:
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
- type theMode
int
- rtype
None
-
Update
()¶ - Updates the presentation of the presentable object thePrsObject in this framework with the display mode theMode.
- param thePrsObject
- type thePrsObject
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- rtype
None
-
UpdateHighlightTrsf
()¶ - Allows to apply location transformation to shadow highlight presentation immediately. @param theObj defines the base object, it local transformation will be applied to corresponding highlight structure @param theMode defines display mode of the base object @param theSelObj defines the object produced after decomposition of the base object for local selection
- param theViewer
- type theViewer
V3d_Viewer
- param theObj
- type theObj
PrsMgr_PresentableObject
- param theMode
default value is 0
- type theMode
int
- param theSelObj
default value is NULL
- type theSelObj
PrsMgr_PresentableObject
- rtype
None
-
property
thisown
¶ The membership flag
-
class
PrsMgr_Presentations
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-