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).

Inheritance diagram of PyANGKernel.GKViewBookmarkDynamic

Synopsis

Methods

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:

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:

GKViewBookmarkDynamicStep

Steps are numbered from 0 to N

getSteps()
Return type:

.list of GKViewBookmarkDynamicStep

Returns the camera positions

hasMovement()
Return type:

bool

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:

Inserts a new step on the bookmark, at the given position.

static invalidateViewsOnMovement(model)
Parameters:

modelGKModel

Return type:

bool

Returns true if the object can invalidate views when moving and false otherwise

isTransitionInRealTime()
Return type:

bool

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:

stepGKViewBookmarkDynamicStep

Removes the specified step if it exists

removeSteps()

Removes all steps

static setInvalidateViewsOnMovement(model, value)
Parameters:

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

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

hasMovement()

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