Class providing funcionality to a Trajectory panel inside the TaskView. More...
Public Member Functions | |
def | __init__ (self, trajectories, forms) |
Initialization method for TrajectoryPanel. More... | |
def | sliderChanged (self, value, form, trajectory) |
Feedback method called when any slider position is changed. More... | |
def | close (self) |
Method used to close TrajectoryPanel . More... | |
def | reject (self) |
Feedback method called when 'Cancel' button was pressed to close the panel. More... | |
def | accept (self) |
Feedback method called when 'OK' button was pressed to close the panel. More... | |
def | getStandardButtons (self, *args) |
Method to set just one button (close) to close the dialog. More... | |
def | isAllowedAlterSelection (self) |
Method to tell FreeCAD if dialog is allowed to alter a selection. More... | |
def | isAllowedAlterView (self) |
Method to tell FreeCAD if dialog is allowed to alter a view. More... | |
def | isAllowedAlterDocument (self) |
Method to tell FreeCAD if dialog is allowed to alter a document. More... | |
Public Attributes | |
trajectories | |
A list of DocumentObjectGroupPython Trajectory instances. More... | |
previous_times | |
A list of trajectory times before opening a panel. More... | |
form | |
A list of QDialog instances to show in the TaskView. More... | |
Class providing funcionality to a Trajectory panel inside the TaskView.
This class enables user to see a manipulator in different configurations. It provides a dialogs to be shown in the TaskView. These dialogs have sliders which allow user to go through a trajectory.
Definition at line 63 of file Trajectory.py.
def Trajectory.TrajectoryPanel.__init__ | ( | self, | |
trajectories, | |||
forms | |||
) |
Initialization method for TrajectoryPanel.
A class instance is created. A list of proxies for associated Trajectory
instances are loaded as well as corresponding QDialog forms. Previously visible properties are set to be read-only as not to change when a TrajectoryPanel
is open. Finally all sliders on dialogs are moved to a position corresponding to a Trajectory
time.
trajectories | A list of DocumentObjectGroupPython Trajectory instances. |
forms | A list of QDialog instances to show in the TaskView. |
Definition at line 87 of file Trajectory.py.
def Trajectory.TrajectoryPanel.accept | ( | self | ) |
Feedback method called when 'OK' button was pressed to close the panel.
Trajectory Times are saved. TrajectoryPanel
is closed. FreeCAD and FreeCADGui documents are updated.
Definition at line 187 of file Trajectory.py.
def Trajectory.TrajectoryPanel.close | ( | self | ) |
Method used to close TrajectoryPanel
.
Trajectory properties are return to be editable/read-only/invisible as they were before. After that TrajectoryPanel
is closed.
Definition at line 149 of file Trajectory.py.
def Trajectory.TrajectoryPanel.getStandardButtons | ( | self, | |
* | args | ||
) |
Method to set just one button (close) to close the dialog.
*args: A tuple of unused arguments from Qt.
Definition at line 197 of file Trajectory.py.
def Trajectory.TrajectoryPanel.isAllowedAlterDocument | ( | self | ) |
Method to tell FreeCAD if dialog is allowed to alter a document.
Definition at line 224 of file Trajectory.py.
def Trajectory.TrajectoryPanel.isAllowedAlterSelection | ( | self | ) |
Method to tell FreeCAD if dialog is allowed to alter a selection.
Definition at line 206 of file Trajectory.py.
def Trajectory.TrajectoryPanel.isAllowedAlterView | ( | self | ) |
Method to tell FreeCAD if dialog is allowed to alter a view.
Definition at line 215 of file Trajectory.py.
def Trajectory.TrajectoryPanel.reject | ( | self | ) |
Feedback method called when 'Cancel' button was pressed to close the panel.
Trajectory Times are set to the original values. TrajectoryPanel
is closed. FreeCAD and FreeCADGui documents are updated.
Definition at line 171 of file Trajectory.py.
def Trajectory.TrajectoryPanel.sliderChanged | ( | self, | |
value, | |||
form, | |||
trajectory | |||
) |
Feedback method called when any slider position is changed.
A trajectory time is extrapolated from the slider position. The time is shown on the dialog and set to a trajectory. Finally, the FreeCAD document and the FreeCADGui document are updated.
value | A slider position. |
form | A Dialog panel on which slider was moved. |
trajectory | A Trajectory associated with the form . |
Definition at line 130 of file Trajectory.py.
Trajectory.TrajectoryPanel.form |
A list of QDialog instances to show in the TaskView.
Definition at line 103 of file Trajectory.py.
Trajectory.TrajectoryPanel.previous_times |
A list of trajectory times before opening a panel.
Definition at line 93 of file Trajectory.py.
Trajectory.TrajectoryPanel.trajectories |
A list of DocumentObjectGroupPython
Trajectory instances.
Definition at line 89 of file Trajectory.py.