Public Member Functions | |
def | activateWorkbench (self, wb_name) |
def | clipPlane (self, doc_obj_or_list, enable, placement, offset=0.02) |
def | forget (self) |
def | forgetDetail (self, detail) |
def | get_all_dependent (self, doc_obj, subname=None) |
def | has (self, detail) |
def | hide (self, doc_obj_or_list, links_too=True, mild_restore=None) |
def | hide_all_dependencies (self, doc_obj) |
def | hide_all_dependent (self, doc_obj) |
def | is_in_stack (self) |
def | modify (self, detail, mild_restore=None) |
def | modifyVPProperty (self, doc_obj_or_list, prop_names, new_value=JUST_SAVE, mild_restore=None) |
def | restore (self, ultimate=True) |
def | restore_all_dependent (self, doc_obj) |
def | restoreCamera (self, ultimate=False) |
def | restoreDetail (self, detail, ultimate=False) |
def | restoreVPProperty (self, doc_obj_or_list, prop_names) |
def | save (self, detail, mild_restore=False) |
def | saveBodyVisibleFeature (self, doc_obj_or_list) |
def | saveCamera (self, vw=None) |
def | setUnpickable (self, doc_obj_or_list, actual_pick_style=2) |
def | show (self, doc_obj_or_list, links_too=True, mild_restore=None) |
def | show_all_dependencies (self, doc_obj) |
def | show_all_dependent (self, doc_obj) |
def | sketchClipPlane (self, sketch, enable=None) |
def | stored_val (self, detail) |
Static Public Member Functions | |
def | allVisibleObjects (aroundObject) |
Public Attributes | |
tv_redo | |
Static Public Attributes | |
data = None | |
data_requested = None | |
document = None | |
stack = None | |
state = S_EMPTY | |
string | tag = '' |
Detailed Description
TempoVis - helper object to save visibilities of objects before doing some GUI editing, hiding or showing relevant stuff during edit, and then restoring all visibilities after editing. Constructors: TempoVis(document, stack = MAINSTACK, **kwargs): creates a new TempoVis. document: required. Objects not belonging to the document can't be modified via TempoVis. stack: optional. Which stack to insert this new TV into. Can be: a TVStack instance (then, the new TV is added to the top of the stack), MAINSTACK special value (a global stack for the document will be used), or None (then, the TV is not in any stack, and can be manually instertd into one if desired). Any additional keyword args are assigned as attributes. You can use it to immediately set a tag, for example.
Member Function Documentation
◆ activateWorkbench()
def Mod.Show.mTempoVis.TempoVis.activateWorkbench | ( | self, | |
wb_name | |||
) |
References Mod.Show.mTempoVis.TempoVis._purge_milds(), Mod.Show.mTempoVis.TempoVis._value_after(), KDL::Stiffness.data, KDL::Jacobian.data, KDL::RotationalInertia.data, KDL::JntArray.data, KDL::JntSpaceInertiaMatrix.data, Mod.Show.mTempoVis.TempoVis.data, SoVectorizeImage::Image.data, Array2D< T >.data, KDL::Vector.data, ArchSchedule._ArchSchedule.data, DrawingGui::TaskOrthoViews.data, KDL::Rotation.data, Dice3DS.dom3ds.UndefinedChunk.data, PathScripts.PathUtils.depth_params.data, KDL::Vector2.data, importIFClegacy.IfcSchema.data, importIFClegacy.IfcEntity.data, importIFClegacy.IfcDocument.data, Mod.Show.mTempoVis.TempoVis.data_requested, Mod.Show.mTempoVis.TempoVis.is_in_stack(), Mod.Show.mTempoVis.TempoVis.modify(), draftguitools.gui_points.Point.stack, Mod.Show.mTempoVis.TempoVis.stack, Gui::View3DInventor.stack, SoGestureEvent.state, Base::StdInputStream.state, Mod.Show.mTempoVis.TempoVis.state, Base::PyGILStateRelease.state, DraftGui.DraftToolBar.state, Gui::RunningState.state, AdaptivePath::EngagePoint.state, ifc2x3.ifcownerhistory.state, ifc4.ifcownerhistory.state, and Mod.Show.mTempoVis.Wrn.
◆ allVisibleObjects()
|
static |
allVisibleObjects(aroundObject): returns list of objects that have to be toggled invisible for only aroundObject to remain. If a whole container can be made invisible, it is returned, instead of its child objects.
◆ clipPlane()
def Mod.Show.mTempoVis.TempoVis.clipPlane | ( | self, | |
doc_obj_or_list, | |||
enable, | |||
placement, | |||
offset = 0.02 |
|||
) |
clipPlane(doc_obj_or_list, enable, placement, offset): slices off the object with a clipping plane. doc_obj_or_list: object or list of objects to alter (App) enable: True if you want clipping, False if you want to remove clipping: placement: XY plane of local coordinates of the placement is the clipping plane. The placement must be in document's global coordinate system. offset: shifts the plane. Positive offset reveals more of the object. Implementation detail: uses SoClipPlane node. If viewprovider already has a node of this type as direct child, one is used. Otherwise, new one is created and inserted as the very first node. The node is left, but disabled when tempovis is restoring.
References Mod.Show.mTempoVis.TempoVis.modify().
◆ forget()
def Mod.Show.mTempoVis.TempoVis.forget | ( | self | ) |
forget(self): clears this TV, making all changes done through it permanent. Also, withdraws the TV from the stack.
References KDL::Stiffness.data, KDL::Jacobian.data, KDL::RotationalInertia.data, KDL::JntArray.data, KDL::JntSpaceInertiaMatrix.data, Mod.Show.mTempoVis.TempoVis.data, SoVectorizeImage::Image.data, Array2D< T >.data, KDL::Vector.data, ArchSchedule._ArchSchedule.data, DrawingGui::TaskOrthoViews.data, KDL::Rotation.data, Dice3DS.dom3ds.UndefinedChunk.data, PathScripts.PathUtils.depth_params.data, KDL::Vector2.data, importIFClegacy.IfcSchema.data, importIFClegacy.IfcEntity.data, importIFClegacy.IfcDocument.data, Mod.Show.mTempoVis.TempoVis.is_in_stack(), draftguitools.gui_points.Point.stack, Mod.Show.mTempoVis.TempoVis.stack, Gui::View3DInventor.stack, SoGestureEvent.state, Base::StdInputStream.state, Mod.Show.mTempoVis.TempoVis.state, Base::PyGILStateRelease.state, DraftGui.DraftToolBar.state, Gui::RunningState.state, AdaptivePath::EngagePoint.state, ifc2x3.ifcownerhistory.state, and ifc4.ifcownerhistory.state.
◆ forgetDetail()
def Mod.Show.mTempoVis.TempoVis.forgetDetail | ( | self, | |
detail | |||
) |
forgetDetail(detail): ditches a saved detail value, making the change done through this TV permanent.
References KDL::Stiffness.data, KDL::Jacobian.data, KDL::RotationalInertia.data, KDL::JntArray.data, KDL::JntSpaceInertiaMatrix.data, Mod.Show.mTempoVis.TempoVis.data, SoVectorizeImage::Image.data, Array2D< T >.data, KDL::Vector.data, ArchSchedule._ArchSchedule.data, DrawingGui::TaskOrthoViews.data, KDL::Rotation.data, Dice3DS.dom3ds.UndefinedChunk.data, PathScripts.PathUtils.depth_params.data, KDL::Vector2.data, importIFClegacy.IfcSchema.data, importIFClegacy.IfcEntity.data, importIFClegacy.IfcDocument.data, and Mod.Show.mTempoVis.TempoVis.data_requested.
Referenced by Mod.Show.mTempoVis.TempoVis.restoreDetail().
◆ get_all_dependent()
def Mod.Show.mTempoVis.TempoVis.get_all_dependent | ( | self, | |
doc_obj, | |||
subname = None |
|||
) |
get_all_dependent(doc_obj, subname = None): gets all objects that depend on doc_obj. Containers and Links (if subname) required for visibility of the object are excluded from the list.
Referenced by Mod.Show.mTempoVis.TempoVis.hide_all_dependent().
◆ has()
def Mod.Show.mTempoVis.TempoVis.has | ( | self, | |
detail | |||
) |
has(self, detail): returns True if this TV has this detail value saved. example: tv.has(VProperty(obj, "Visibility"))
References KDL::Stiffness.data, KDL::Jacobian.data, KDL::RotationalInertia.data, KDL::JntArray.data, KDL::JntSpaceInertiaMatrix.data, Mod.Show.mTempoVis.TempoVis.data, SoVectorizeImage::Image.data, Array2D< T >.data, KDL::Vector.data, ArchSchedule._ArchSchedule.data, DrawingGui::TaskOrthoViews.data, KDL::Rotation.data, Dice3DS.dom3ds.UndefinedChunk.data, PathScripts.PathUtils.depth_params.data, KDL::Vector2.data, importIFClegacy.IfcSchema.data, importIFClegacy.IfcEntity.data, and importIFClegacy.IfcDocument.data.
Referenced by Mod.Show.mTempoVis.TempoVis.restoreDetail().
◆ hide()
def Mod.Show.mTempoVis.TempoVis.hide | ( | self, | |
doc_obj_or_list, | |||
links_too = True , |
|||
mild_restore = None |
|||
) |
hide(doc_obj_or_list): hides objects (sets their Visibility to False). doc_obj_or_list can be a document object, or a list of document objects
References Mod.Show.mTempoVis.TempoVis._3D_objects(), and Mod.Show.mTempoVis.TempoVis.modifyVPProperty().
Referenced by Mod.Show.mTempoVis.TempoVis.hide_all_dependencies(), and Mod.Show.mTempoVis.TempoVis.hide_all_dependent().
◆ hide_all_dependencies()
def Mod.Show.mTempoVis.TempoVis.hide_all_dependencies | ( | self, | |
doc_obj | |||
) |
hide_all_dependencies(doc_obj): hides all objects that doc_obj depends on (directly and indirectly).
References Mod.Show.mTempoVis.TempoVis._3D_objects(), Gui::DocumentPy.hide(), DrawingGui::ViewProviderDrawingPage.hide(), Gui::ViewProviderPy.hide(), PathScripts.PathToolEdit.ToolEditorImage.hide, Gui::ViewProviderDocumentObject.hide(), InspectionGui::ViewProviderInspection.hide(), FemFace.hide, MeshGui::ViewProviderMeshCurvature.hide(), DrawingGui::ViewProviderDrawingView.hide(), FemGui::ViewProviderFemPostObject.hide(), FemGui::ViewProviderFemAnalysis.hide(), DrawingGui::ViewProviderDrawingClip.hide(), PathScripts.PathPocketShapeGui._Extension.hide(), Mod.Show.mTempoVis.TempoVis.hide(), ArchSite.Compass.hide(), Gui::ViewProvider.hide(), ArchComponent.ArchSelectionObserver.hide, draftguitools.gui_snapper.Snapper.hide(), and DraftGui.DraftToolBar.hide().
◆ hide_all_dependent()
def Mod.Show.mTempoVis.TempoVis.hide_all_dependent | ( | self, | |
doc_obj | |||
) |
hide_all_dependent(doc_obj): hides all objects that depend on doc_obj. Groups, Parts and Bodies are not hidden by this.
References Mod.Show.mTempoVis.TempoVis._3D_objects(), Mod.Show.mTempoVis.TempoVis.get_all_dependent(), Gui::DocumentPy.hide(), DrawingGui::ViewProviderDrawingPage.hide(), Gui::ViewProviderPy.hide(), PathScripts.PathToolEdit.ToolEditorImage.hide, Gui::ViewProviderDocumentObject.hide(), InspectionGui::ViewProviderInspection.hide(), FemFace.hide, MeshGui::ViewProviderMeshCurvature.hide(), DrawingGui::ViewProviderDrawingView.hide(), FemGui::ViewProviderFemPostObject.hide(), FemGui::ViewProviderFemAnalysis.hide(), DrawingGui::ViewProviderDrawingClip.hide(), PathScripts.PathPocketShapeGui._Extension.hide(), Mod.Show.mTempoVis.TempoVis.hide(), ArchSite.Compass.hide(), Gui::ViewProvider.hide(), ArchComponent.ArchSelectionObserver.hide, draftguitools.gui_snapper.Snapper.hide(), and DraftGui.DraftToolBar.hide().
◆ is_in_stack()
def Mod.Show.mTempoVis.TempoVis.is_in_stack | ( | self | ) |
References draftguitools.gui_points.Point.stack, Mod.Show.mTempoVis.TempoVis.stack, and Gui::View3DInventor.stack.
Referenced by Mod.Show.mTempoVis.TempoVis.activateWorkbench(), Mod.Show.mTempoVis.TempoVis.forget(), and Mod.Show.mTempoVis.TempoVis.restore().
◆ modify()
def Mod.Show.mTempoVis.TempoVis.modify | ( | self, | |
detail, | |||
mild_restore = None |
|||
) |
modify(detail, mild_restore = True): modifies scene detail through this TV. The value is provided as an instance of SceneDetail implementation. The procedure takes care to account for the stack - that is, if in a TV applied later than this one this detail was changed too, the value saved therein is altered, rather than applied to the scene. mild_restore: if True, when restoring later, checks if the value was changed by user after last call to modify(), and doesn't restore if it was changed. Example: tv.modify(VProperty(obj, "Visibility", True))
References Mod.Show.mTempoVis.TempoVis._change(), Mod.Show.mTempoVis.TempoVis._value_after(), Mod.Show.mTempoVis.TempoVis.data_requested, App::DocumentPy.save(), Mesh::Segment.save(), Gui::Dialog::DownloadManager.save(), Mod.Show.mTempoVis.TempoVis.save(), App::DynamicProperty.save(), Gui::Document.save(), Points::PointKernel.save(), Mesh::MeshObject.save(), App::Document.save(), Gui::RecentFilesAction.save(), shipGZ.TaskPanel.TaskPanel.save(), shipAreasCurve.TaskPanel.TaskPanel.save(), shipHydrostatics.TaskPanel.TaskPanel.save(), Gui::MacroCommand.save(), and WorkingPlane.Plane.save().
Referenced by Mod.Show.mTempoVis.TempoVis.activateWorkbench(), Mod.Show.mTempoVis.TempoVis.clipPlane(), Mod.Show.mTempoVis.TempoVis.modifyVPProperty(), Mod.Show.mTempoVis.TempoVis.setUnpickable(), and Mod.Show.mTempoVis.TempoVis.sketchClipPlane().
◆ modifyVPProperty()
def Mod.Show.mTempoVis.TempoVis.modifyVPProperty | ( | self, | |
doc_obj_or_list, | |||
prop_names, | |||
new_value = JUST_SAVE , |
|||
mild_restore = None |
|||
) |
modifyVPProperty(doc_obj_or_list, prop_names, new_value = JUST_SAVE, mild_restore = None): modifies prop_name property of ViewProvider of doc_obj_or_list, and remembers original value of the property. Original values will be restored upon TempoVis deletion, or call to restore(). mild_restore: test if user changed the value manually when restoring the TV.
References Mod.Show.mTempoVis.TempoVis.modify(), App::DocumentPy.save(), Mesh::Segment.save(), Gui::Dialog::DownloadManager.save(), Mod.Show.mTempoVis.TempoVis.save(), App::DynamicProperty.save(), Gui::Document.save(), Points::PointKernel.save(), Mesh::MeshObject.save(), App::Document.save(), Gui::RecentFilesAction.save(), shipGZ.TaskPanel.TaskPanel.save(), shipAreasCurve.TaskPanel.TaskPanel.save(), shipHydrostatics.TaskPanel.TaskPanel.save(), Gui::MacroCommand.save(), WorkingPlane.Plane.save(), SoGestureEvent.state, Base::StdInputStream.state, Mod.Show.mTempoVis.TempoVis.state, Base::PyGILStateRelease.state, DraftGui.DraftToolBar.state, Gui::RunningState.state, AdaptivePath::EngagePoint.state, ifc2x3.ifcownerhistory.state, ifc4.ifcownerhistory.state, and Mod.Show.mTempoVis.Wrn.
Referenced by Mod.Show.mTempoVis.TempoVis.hide(), Mod.Show.mTempoVis.TempoVis.saveBodyVisibleFeature(), and Mod.Show.mTempoVis.TempoVis.show().
◆ restore()
def Mod.Show.mTempoVis.TempoVis.restore | ( | self, | |
ultimate = True |
|||
) |
restore(ultimate = True): undoes all changes done through this tempovis / restores saved scene details. ultimate: if true, the saved values are cleaned out, and the TV is withdrawn from the stack. If false, the TV will still remember stuff, and restore can be called again.
References Mod.Show.mTempoVis.TempoVis._restoreDetail(), KDL::Stiffness.data, KDL::Jacobian.data, KDL::RotationalInertia.data, KDL::JntArray.data, KDL::JntSpaceInertiaMatrix.data, Mod.Show.mTempoVis.TempoVis.data, SoVectorizeImage::Image.data, Array2D< T >.data, KDL::Vector.data, ArchSchedule._ArchSchedule.data, DrawingGui::TaskOrthoViews.data, KDL::Rotation.data, Dice3DS.dom3ds.UndefinedChunk.data, PathScripts.PathUtils.depth_params.data, KDL::Vector2.data, importIFClegacy.IfcSchema.data, importIFClegacy.IfcEntity.data, importIFClegacy.IfcDocument.data, Mod.Show.mTempoVis.Err, Mod.Show.mTempoVis.TempoVis.is_in_stack(), draftguitools.gui_points.Point.stack, Mod.Show.mTempoVis.TempoVis.stack, Gui::View3DInventor.stack, SoGestureEvent.state, Base::StdInputStream.state, Mod.Show.mTempoVis.TempoVis.state, Base::PyGILStateRelease.state, DraftGui.DraftToolBar.state, Gui::RunningState.state, AdaptivePath::EngagePoint.state, ifc2x3.ifcownerhistory.state, and ifc4.ifcownerhistory.state.
◆ restore_all_dependent()
def Mod.Show.mTempoVis.TempoVis.restore_all_dependent | ( | self, | |
doc_obj | |||
) |
show_all_dependent(doc_obj): restores original visibilities of all dependent objects.
References Mod.Show.mTempoVis.TempoVis.restoreVPProperty().
◆ restoreCamera()
def Mod.Show.mTempoVis.TempoVis.restoreCamera | ( | self, | |
ultimate = False |
|||
) |
References femtest.app.test_material.TestMaterialUnits.document, femtest.app.test_result.TestResult.document, femsolver.writerbase.FemInputWriter.document, femtest.app.test_common.TestFemCommon.document, femtest.app.test_mesh.TestMeshCommon.document, femtest.app.test_solverframework.TestSolverFrameWork.document, femtest.app.test_object.TestObjectCreate.document, femtest.app.test_ccxtools.TestCcxTools.document, PartGui::Mirroring.document, Gui::MergeDocuments.document, PartGui::LoftWidget::Private.document, Import::ImpExpDxfRead.document, PartGui::SweepWidget::Private.document, femtest.app.test_open.TestObjectOpen.document, Gui::DocumentT.document, femtest.gui.test_open.TestObjectOpen.document, Mod.Show.mTempoVis.TempoVis.document, femtest.app.test_femimport.TestObjectExistance.document, App::DocumentT.document, PartGui::DlgExtrusion.document, MeshPartGui::Tessellation.document, DraftUtils::DraftDxfRead.document, Gui::ViewProviderT.document, femtest.app.test_object.TestObjectType.document, App::DocumentObjectT.document, femtest.app.test_mesh.TestMeshEleTetra10.document, femtest.app.test_mesh.TestMeshGroups.document, and Mod.Show.mTempoVis.TempoVis.restoreDetail().
◆ restoreDetail()
def Mod.Show.mTempoVis.TempoVis.restoreDetail | ( | self, | |
detail, | |||
ultimate = False |
|||
) |
restoreDetail(detail, ultimate = False): restores a specific scene detail. ultimate: if true, the saved value is cleaned out. If the detail is not found, nothing is done.
References Mod.Show.mTempoVis.TempoVis.forgetDetail(), Path::Command.has(), and Mod.Show.mTempoVis.TempoVis.has().
Referenced by Mod.Show.mTempoVis.TempoVis.restoreCamera(), and Mod.Show.mTempoVis.TempoVis.restoreVPProperty().
◆ restoreVPProperty()
def Mod.Show.mTempoVis.TempoVis.restoreVPProperty | ( | self, | |
doc_obj_or_list, | |||
prop_names | |||
) |
restoreVPProperty(doc_obj_or_list, prop_name, new_value): restores specific property changes.
References Mod.Show.mTempoVis.Err, and Mod.Show.mTempoVis.TempoVis.restoreDetail().
Referenced by Mod.Show.mTempoVis.TempoVis.restore_all_dependent().
◆ save()
def Mod.Show.mTempoVis.TempoVis.save | ( | self, | |
detail, | |||
mild_restore = False |
|||
) |
save(detail, mild_restore = False):saves the scene detail to be restored. The detail is saved only once; repeated calls are ignored. mild_restore: internal, do not use.
References Mod.Show.mTempoVis.TempoVis._change(), Mod.Show.mTempoVis.TempoVis._value_after(), KDL::Stiffness.data, KDL::Jacobian.data, KDL::RotationalInertia.data, KDL::JntArray.data, KDL::JntSpaceInertiaMatrix.data, Mod.Show.mTempoVis.TempoVis.data, SoVectorizeImage::Image.data, Array2D< T >.data, KDL::Vector.data, ArchSchedule._ArchSchedule.data, DrawingGui::TaskOrthoViews.data, KDL::Rotation.data, Dice3DS.dom3ds.UndefinedChunk.data, PathScripts.PathUtils.depth_params.data, KDL::Vector2.data, importIFClegacy.IfcSchema.data, importIFClegacy.IfcEntity.data, and importIFClegacy.IfcDocument.data.
Referenced by Mod.Show.mTempoVis.TempoVis.modify(), Mod.Show.mTempoVis.TempoVis.modifyVPProperty(), and Mod.Show.mTempoVis.TempoVis.saveCamera().
◆ saveBodyVisibleFeature()
def Mod.Show.mTempoVis.TempoVis.saveBodyVisibleFeature | ( | self, | |
doc_obj_or_list | |||
) |
saveBodyVisibleFeature(self, doc_obj_or_list): saves Visibility of currently visible feature, for every body of PartDesign features in the provided list.
References Mod.Show.mTempoVis.TempoVis.modifyVPProperty().
Referenced by Mod.Show.mTempoVis.TempoVis.show().
◆ saveCamera()
def Mod.Show.mTempoVis.TempoVis.saveCamera | ( | self, | |
vw = None |
|||
) |
References Mod.Show.mTempoVis.TempoVis._change(), femtest.app.test_material.TestMaterialUnits.document, femtest.app.test_result.TestResult.document, femsolver.writerbase.FemInputWriter.document, femtest.app.test_common.TestFemCommon.document, femtest.app.test_mesh.TestMeshCommon.document, femtest.app.test_solverframework.TestSolverFrameWork.document, femtest.app.test_object.TestObjectCreate.document, femtest.app.test_ccxtools.TestCcxTools.document, PartGui::Mirroring.document, Gui::MergeDocuments.document, PartGui::LoftWidget::Private.document, Import::ImpExpDxfRead.document, PartGui::SweepWidget::Private.document, femtest.app.test_open.TestObjectOpen.document, femtest.gui.test_open.TestObjectOpen.document, Gui::DocumentT.document, Mod.Show.mTempoVis.TempoVis.document, App::DocumentT.document, femtest.app.test_femimport.TestObjectExistance.document, PartGui::DlgExtrusion.document, MeshPartGui::Tessellation.document, DraftUtils::DraftDxfRead.document, Gui::ViewProviderT.document, femtest.app.test_object.TestObjectType.document, App::DocumentObjectT.document, femtest.app.test_mesh.TestMeshEleTetra10.document, femtest.app.test_mesh.TestMeshGroups.document, App::DocumentPy.save(), Mesh::Segment.save(), Gui::Dialog::DownloadManager.save(), Mod.Show.mTempoVis.TempoVis.save(), App::DynamicProperty.save(), Gui::Document.save(), Points::PointKernel.save(), Mesh::MeshObject.save(), App::Document.save(), Gui::RecentFilesAction.save(), shipGZ.TaskPanel.TaskPanel.save(), shipAreasCurve.TaskPanel.TaskPanel.save(), shipHydrostatics.TaskPanel.TaskPanel.save(), Gui::MacroCommand.save(), and WorkingPlane.Plane.save().
◆ setUnpickable()
def Mod.Show.mTempoVis.TempoVis.setUnpickable | ( | self, | |
doc_obj_or_list, | |||
actual_pick_style = 2 |
|||
) |
setUnpickable(doc_obj_or_list, actual_pick_style = 2): sets object unpickable (transparent to clicks). doc_obj_or_list: object or list of objects to alter (App) actual_pick_style: optional parameter, specifying the actual pick style: 0 = regular, 1 = bounding box, 2 (default) = unpickable. Implementation detail: uses SoPickStyle node. If viewprovider already has a node of this type as direct child, one is used. Otherwise, new one is created and inserted as the very first node, and remains there even after restore()/deleting tempovis.
References Mod.Show.mTempoVis.TempoVis.modify().
◆ show()
def Mod.Show.mTempoVis.TempoVis.show | ( | self, | |
doc_obj_or_list, | |||
links_too = True , |
|||
mild_restore = None |
|||
) |
show(doc_obj_or_list, links_too = True): shows objects (sets their Visibility to True). doc_obj_or_list can be a document object, or a list of document objects. If links_too is True, all Links of the objects are also hidden, by setting LinkVisibility attribute of each object.
References Mod.Show.mTempoVis.TempoVis._3D_objects(), Mod.Show.mTempoVis.TempoVis.modifyVPProperty(), and Mod.Show.mTempoVis.TempoVis.saveBodyVisibleFeature().
Referenced by Mod.Show.mTempoVis.TempoVis.show_all_dependencies(), and Mod.Show.mTempoVis.TempoVis.show_all_dependent().
◆ show_all_dependencies()
def Mod.Show.mTempoVis.TempoVis.show_all_dependencies | ( | self, | |
doc_obj | |||
) |
show_all_dependencies(doc_obj): shows all objects that doc_obj depends on (directly and indirectly). This method is probably useless.
References Mod.Show.mTempoVis.TempoVis._3D_objects(), Gui::DocumentPy.show(), Gui::ViewProviderPy.show(), DrawingGui::ViewProviderDrawingPage.show(), Gui::ViewProviderDocumentObject.show(), InspectionGui::ViewProviderInspection.show(), MeshGui::ViewProviderMeshCurvature.show(), DrawingGui::ViewProviderDrawingView.show(), FemGui::ViewProviderFemPostObject.show(), FemGui::ViewProviderFemAnalysis.show(), DrawingGui::ViewProviderDrawingClip.show(), PathScripts.PathPocketShapeGui._Extension.show(), Path::Module.show(), AddonManager.CommandAddonManager.show(), Mod.Show.mTempoVis.TempoVis.show(), Fem::Module.show(), ArchSite.Compass.show(), Gui::ViewProvider.show(), Mesh::Module.show(), Points::Module.show(), MeshGui::Annotation.show(), Gui::PyResource.show(), MaterialEditor.MaterialEditor.show(), ArchNesting.Nester.show(), Part::Module.show(), draftguitools.gui_snapper.Snapper.show(), and DraftGui.DraftToolBar.show().
◆ show_all_dependent()
def Mod.Show.mTempoVis.TempoVis.show_all_dependent | ( | self, | |
doc_obj | |||
) |
show_all_dependent(doc_obj): shows all objects that depend on doc_obj. This method is probably useless.
References Mod.Show.mTempoVis.TempoVis._3D_objects(), Gui::DocumentPy.show(), Gui::ViewProviderPy.show(), DrawingGui::ViewProviderDrawingPage.show(), Gui::ViewProviderDocumentObject.show(), InspectionGui::ViewProviderInspection.show(), MeshGui::ViewProviderMeshCurvature.show(), DrawingGui::ViewProviderDrawingView.show(), FemGui::ViewProviderFemPostObject.show(), FemGui::ViewProviderFemAnalysis.show(), DrawingGui::ViewProviderDrawingClip.show(), PathScripts.PathPocketShapeGui._Extension.show(), Path::Module.show(), AddonManager.CommandAddonManager.show(), Mod.Show.mTempoVis.TempoVis.show(), Fem::Module.show(), ArchSite.Compass.show(), Gui::ViewProvider.show(), Mesh::Module.show(), Points::Module.show(), MeshGui::Annotation.show(), Gui::PyResource.show(), MaterialEditor.MaterialEditor.show(), ArchNesting.Nester.show(), Part::Module.show(), draftguitools.gui_snapper.Snapper.show(), and DraftGui.DraftToolBar.show().
◆ sketchClipPlane()
def Mod.Show.mTempoVis.TempoVis.sketchClipPlane | ( | self, | |
sketch, | |||
enable = None |
|||
) |
sketchClipPlane(sketch, enable = None): Clips all objects by plane of sketch. If enable argument is omitted, calling the routine repeatedly will toggle clipping plane.
References Mod.Show.mTempoVis.TempoVis.modify().
◆ stored_val()
def Mod.Show.mTempoVis.TempoVis.stored_val | ( | self, | |
detail | |||
) |
stored_val(self, detail): returns value of detail remembered by this TV. If not, raises KeyError.
References KDL::Stiffness.data, KDL::Jacobian.data, KDL::RotationalInertia.data, KDL::JntArray.data, KDL::JntSpaceInertiaMatrix.data, Mod.Show.mTempoVis.TempoVis.data, SoVectorizeImage::Image.data, Array2D< T >.data, KDL::Vector.data, ArchSchedule._ArchSchedule.data, DrawingGui::TaskOrthoViews.data, KDL::Rotation.data, Dice3DS.dom3ds.UndefinedChunk.data, PathScripts.PathUtils.depth_params.data, KDL::Vector2.data, importIFClegacy.IfcSchema.data, importIFClegacy.IfcEntity.data, and importIFClegacy.IfcDocument.data.
Member Data Documentation
◆ data
|
static |
Referenced by Mod.Show.mTempoVis.TempoVis.activateWorkbench(), Mod.Show.SceneDetail.SceneDetail.apply_data(), Mod.Show.mTempoVis.TempoVis.forget(), Mod.Show.mTempoVis.TempoVis.forgetDetail(), Mod.Show.mTempoVis.TempoVis.has(), ArchSchedule.CommandArchSchedule.IsActive(), Mod.Show.mTempoVis.TempoVis.restore(), Mod.Show.mTempoVis.TempoVis.save(), Mod.Show.mTempoVis.TempoVis.stored_val(), and FeaturePython.ViewProviderOctahedron.updateData().
◆ data_requested
|
static |
◆ document
|
static |
◆ stack
|
static |
Referenced by Mod.Show.mTempoVis.TempoVis.activateWorkbench(), Mod.Show.TVStack.TVStack.byTag(), Mod.Show.TVStack.TVStack.dissolve(), Mod.Show.mTempoVis.TempoVis.forget(), Mod.Show.TVStack.TVStack.getSplitSequence(), Mod.Show.TVStack.TVStack.insert(), Mod.Show.mTempoVis.TempoVis.is_in_stack(), Mod.Show.TVStack.TVStack.purge_dead(), Mod.Show.TVStack.TVStack.rebuild_index(), Mod.Show.mTempoVis.TempoVis.restore(), Mod.Show.TVStack.TVStack.restoreAll(), Mod.Show.TVStack.TVStack.unwindForSaving(), Mod.Show.TVStack.TVStack.value_after(), and Mod.Show.TVStack.TVStack.withdraw().
◆ state
|
static |
◆ tag
|
static |
Referenced by Dice3DS.dom3ds.ChunkBase.document_html(), and Dice3DS.dom3ds.ChunkBase.dump_header().
◆ tv_redo
Mod.Show.mTempoVis.TempoVis.tv_redo |
The documentation for this class was generated from the following file:
- src/Mod/Show/mTempoVis.py