director.visualization module¶
-
class
director.visualization.
PolyDataItem
(name, polyData, view)[source]¶ Bases:
director.objectmodel.ObjectModelItem
-
defaultScalarRangeMap
= {'normal angle to plane': (0.0, 10.0), 'point distance to plane': (-0.2, 0.2), 'spindle_angle': (0, 360), 'scan_delta': (0.0, 0.3), 'azimuth': (-2.5, 2.5)}¶
-
-
director.visualization.
addChildFrame
(obj, initialTransform=None)[source]¶ Adds a child frame to the given PolyDataItem. If initialTransform is given, the object’s polydata is transformed using the inverse of initialTransform and then a child frame is assigned to the object to maintain its original position.
-
director.visualization.
getRandomColor
()[source]¶ Return a random color as a list of RGB values between 0.0 and 1.0.
-
director.visualization.
getRayFromDisplayPoint
(view, displayPoint)[source]¶ Given a view and an XY display point, returns two XYZ world points which are the display point at the near/far clipping planes of the view.
-
director.visualization.
pickPoint
(displayPoint, view, obj=None, pickType='points', tolerance=0.01, returnNormal=False)[source]¶
-
director.visualization.
showFrame
(frame, name, view=None, parent='segmentation', scale=0.35, visible=True)[source]¶
-
director.visualization.
showGrid
(view, cellSize=0.5, numberOfCells=25, name='grid', parent='sensors', color=[1, 1, 1], alpha=0.05, gridTransform=None)[source]¶
-
director.visualization.
showImage
(filename)[source]¶ Returns a QLabel displaying the image contents of given filename. Make sure to assign the label, it will destruct when it goes out of scope.
-
director.visualization.
showPolyData
(polyData, name, color=None, colorByName=None, colorByRange=None, alpha=1.0, visible=True, view=None, parent='segmentation', cls=None)[source]¶