|
None | __init__ (self, str name="", Optional[SceneNode.SceneNode] parent=None) |
|
"Camera" | __deepcopy__ (self, Dict[int, object] memo) |
|
| getZoomFactor (self) |
|
None | setZoomFactor (self, float zoom_factor) |
|
None | setMeshData (self, Optional["MeshData"] mesh_data) |
|
bool | getAutoAdjustViewPort (self) |
|
None | setAutoAdjustViewPort (self, bool auto_adjust) |
|
Matrix | getProjectionMatrix (self) |
|
int | getViewportWidth (self) |
|
None | setViewportWidth (self, int width) |
|
None | setViewportHeight (self, int height) |
|
None | setViewportSize (self, int width, int height) |
|
Matrix | getViewProjectionMatrix (self) |
|
int | getViewportHeight (self) |
|
None | setWindowSize (self, int width, int height) |
|
Tuple[int, int] | getWindowSize (self) |
|
bool | render (self, renderer) |
|
None | setProjectionMatrix (self, Matrix matrix) |
|
| getInverseWorldTransformation (self) |
|
| getCameraLightPosition (self) |
|
bool | isPerspective (self) |
|
None | setPerspective (self, bool perspective) |
|
Ray | getRay (self, float x, float y) |
|
Tuple[float, float] | project (self, Vector position) |
|
None | __init__ (self, Optional["SceneNode"] parent=None, bool visible=True, str name="", str node_id="") |
|
"SceneNode" | __deepcopy__ (self, Dict[int, object] memo) |
|
None | setCenterPosition (self, Vector center) |
|
Optional["SceneNode"] | getParent (self) |
|
Vector | getMirror (self) |
|
None | setMirror (self, vector) |
|
Optional[MeshData] | getBoundingBoxMesh (self) |
|
None | calculateBoundingBoxMesh (self) |
|
bool | collidesWithBbox (self, AxisAlignedBox check_bbox) |
|
None | addDecorator (self, SceneNodeDecorator decorator) |
|
List[SceneNodeDecorator] | getDecorators (self) |
|
Optional[SceneNodeDecorator] | getDecorator (self, type dec_type) |
|
| removeDecorators (self) |
|
None | removeDecorator (self, type dec_type) |
|
Any | callDecoration (self, str function, *args, **kwargs) |
|
bool | hasDecoration (self, str function) |
|
str | getName (self) |
|
None | setName (self, str name) |
|
str | getId (self) |
|
None | setId (self, str node_id) |
|
int | getDepth (self) |
|
None | setParent (self, Optional["SceneNode"] scene_node) |
|
bool | isVisible (self) |
|
None | setVisible (self, bool visible) |
|
Optional[MeshData] | getMeshData (self) |
|
Optional[MeshData] | getMeshDataTransformed (self) |
|
Optional[numpy.ndarray] | getMeshDataTransformedVertices (self) |
|
Optional[numpy.ndarray] | getMeshDataTransformedNormals (self) |
|
None | setMeshData (self, Optional[MeshData] mesh_data) |
|
None | addChild (self, "SceneNode" scene_node) |
|
None | removeChild (self, "SceneNode" child) |
|
None | removeAllChildren (self) |
|
List["SceneNode"] | getChildren (self) |
|
bool | hasChildren (self) |
|
List["SceneNode"] | getAllChildren (self) |
|
Matrix | getCachedNormalMatrix (self) |
|
Matrix | getWorldTransformation (self, copy=True) |
|
Matrix | getLocalTransformation (self, copy=True) |
|
| setTransformation (self, Matrix transformation) |
|
Quaternion | getOrientation (self) |
|
Quaternion | getWorldOrientation (self) |
|
None | rotate (self, Quaternion rotation, int transform_space=TransformSpace.Local) |
|
None | setOrientation (self, Quaternion orientation, int transform_space=TransformSpace.Local) |
|
Vector | getScale (self) |
|
Vector | getWorldScale (self) |
|
None | scale (self, Vector scale, int transform_space=TransformSpace.Local) |
|
None | setScale (self, Vector scale, int transform_space=TransformSpace.Local) |
|
Vector | getPosition (self) |
|
Vector | getWorldPosition (self) |
|
None | translate (self, Vector translation, int transform_space=TransformSpace.Local) |
|
None | setPosition (self, Vector position, int transform_space=TransformSpace.Local) |
|
None | lookAt (self, Vector target, Vector up=Vector.Unit_Y) |
|
bool | render (self, renderer) |
|
bool | isEnabled (self) |
|
None | setEnabled (self, bool enable) |
|
bool | isSelectable (self) |
|
None | setSelectable (self, bool select) |
|
Optional[AxisAlignedBox] | getBoundingBox (self) |
|
None | setCalculateBoundingBox (self, bool calculate) |
|
Vector | getShear (self) |
|
Any | getSetting (self, str key, Any default_value=None) |
|
None | setSetting (self, str key, Any value) |
|
None | invertNormals (self) |
|
str | __str__ (self) |
|
A SceneNode subclass that provides a camera object.
The camera provides a projection matrix and its transformation matrix
can be used as view matrix.