PyANGKernel.GKViewBookmarkDynamic¶
- class GKViewBookmarkDynamic¶
The dynamic bookmark representation
Details
It defines a set of positions where the view camera will be moved. It is possible to define the time spent between sequential positions (steps).
Synopsis¶
Methods¶
def
__init__()def
addStep()def
getStep()def
getSteps()def
hasMovement()def
insertStep()def
removeStep()def
removeSteps()def
setMovement()
Static functions¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
- addStep(step[, afterStep=None])¶
- Parameters:
step –
GKViewBookmarkDynamicStepafterStep –
GKViewBookmarkDynamicStep
Adds a new step on the bookmark, it will be added either at the end of the steps list (if afterStep is nullptr) or after step afterStep.
- getStep(step)¶
- Parameters:
step – int
- Return type:
Steps are numbered from 0 to N
- getSteps()¶
- Return type:
.list of GKViewBookmarkDynamicStep
Returns the camera positions
It returns true if the camera will move between one position and the next one and false if it will remain fixed, that is, if it will jump from one position to the next one
- insertStep(pos, step)¶
- Parameters:
pos – int
step –
GKViewBookmarkDynamicStep
Inserts a new step on the bookmark, at the given position.
Returns true if the object can invalidate views when moving and false otherwise
See also
It returns true if the seconds between one position and the next one are real seconds and false if they are simulation seconds
- removeStep(step)¶
- Parameters:
step –
GKViewBookmarkDynamicStep
Removes the specified step if it exists
- removeSteps()¶
Removes all steps
Sets the object as allowed to invalidate views while moving when value is true and not allowed otherwise. When anyone else is invalidating the views then the dynamic bookmark does not need to do it, too
See also
- setMovement(value)¶
- Parameters:
value – bool
Sets this bookmark to move between one position and the next one, when ‘value’ is true, and to remain fixed, that is, to jump from one position to the next one, when ‘value’ is false
See also
- setTransitionInRealTime(value)¶
- Parameters:
value – bool
Sets this bookmark to move between one position and the next one in real seconds, when ‘value’ is true, and to do it in simulation seconds when ‘value’ is false
See also