MCPcopy Create free account
hub / github.com/Kitware/VTK / SetExtraObject

Method SetExtraObject

Common/Core/Testing/Python/TestSubClass.py:45–52  ·  view source on GitHub ↗

Setter method.

(self, o)

Source from the content-addressed store, hash-verified

43 return self._ExtraObject
44
45 def SetExtraObject(self, o):
46 """Setter method."""
47 # make sure it is "None" or a vtkobject instance
48 if o == None or isinstance(o, vtkObjectBase):
49 self._ExtraObject = o
50 self.Modified()
51 else:
52 raise TypeError("requires None or a vtkobject")
53
54 def GetMTime(self):
55 """Override a method (only works when called from Python)"""

Callers 1

Calls 1

ModifiedMethod · 0.45

Tested by

no test coverage detected