FEM: result mechanical VP, add Object
This commit is contained in:
@@ -33,6 +33,7 @@ __url__ = "http://www.freecadweb.org"
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
|
||||
from pivy import coin
|
||||
from PySide import QtCore
|
||||
from PySide import QtGui
|
||||
from PySide.QtCore import Qt
|
||||
@@ -50,6 +51,12 @@ class _ViewProviderFemResultMechanical(ViewProviderFemConstraint.ViewProxy):
|
||||
A View Provider for the FemResultObject Python derived FemResult class
|
||||
"""
|
||||
|
||||
def attach(self, vobj):
|
||||
default = coin.SoGroup()
|
||||
vobj.addDisplayMode(default, "Default")
|
||||
self.Object = vobj.Object
|
||||
self.ViewObject = vobj
|
||||
|
||||
def setEdit(self, vobj, mode=0):
|
||||
ViewProviderFemConstraint.ViewProxy.setEdit(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user