OGRE  master
Object-Oriented Graphics Rendering Engine

Convenience functions for python. More...

Functions

def Python.Numpy.AsDataStream (arr)
 copy numpy array to Ogre.MemoryDataStream that can be used in Ogre More...
 
def Python.HighPy.camera_intrinsics
 
def Python.HighPy.imshow
 
def Python.HighPy.mesh_hide
 
def Python.HighPy.mesh_show
 
def Python.HighPy.point_light
 
def Python.Numpy.view (o)
 writable numpy view to the ogre data types More...
 
def Python.HighPy.window_compositor
 
def Python.HighPy.window_create
 
def Python.HighPy.window_draw
 
def Python.HighPy.window_pixel_data
 
def Python.HighPy.window_use_imgui
 

Variables

int Python.HighPy.AXES_ZBACKWARD_YUP = 0
 Ogre & OpenGL coordinate system More...
 
int Python.HighPy.AXES_ZFORWARD_YDOWN = 1
 OpenCV & colmap coordinate system. More...
 
 Python.HighPy.user_resource_locations = set()
 add paths here to override the default resource location "." More...
 

Detailed Description

Convenience functions for python.

Function Documentation

◆ AsDataStream()

def Python.Numpy.AsDataStream (   arr)

copy numpy array to Ogre.MemoryDataStream that can be used in Ogre

Parameters
arrsome numpy array

References Python.Numpy.view().

◆ view()

def Python.Numpy.view (   o)

writable numpy view to the ogre data types

take care that the ogre type does not get released while the view is used. e.g. this is invalid

return Ogre.Numpy.view(v)

instead do

return Ogre.Numpy.view(v).copy()

to pass numpy arrays into Ogre use AsDataStream()

References Ogre::PixelUtil.getNumElemBytes(), Ogre::MaterialManager.getSingleton(), and Ogre::TextureManager.getSingleton().

Referenced by Python.Numpy.AsDataStream().

◆ window_create()

def Python.HighPy.window_create (   window_name)

◆ window_draw()

def Python.HighPy.window_draw (   window_name)

◆ window_use_imgui()

def Python.HighPy.window_use_imgui (   window_name)

◆ window_compositor()

def Python.HighPy.window_compositor (   window_name)

◆ window_pixel_data()

def Python.HighPy.window_pixel_data (   window_name)

◆ imshow()

def Python.HighPy.imshow (   window_name)

◆ camera_intrinsics()

def Python.HighPy.camera_intrinsics (   window_name)

◆ mesh_show()

def Python.HighPy.mesh_show (   window_name)

◆ mesh_hide()

def Python.HighPy.mesh_hide (   window_name)

◆ point_light()

def Python.HighPy.point_light (   window_name)

Variable Documentation

◆ AXES_ZBACKWARD_YUP

int Python.HighPy.AXES_ZBACKWARD_YUP = 0

Ogre & OpenGL coordinate system

◆ AXES_ZFORWARD_YDOWN

int Python.HighPy.AXES_ZFORWARD_YDOWN = 1

OpenCV & colmap coordinate system.

◆ user_resource_locations

Python.HighPy.user_resource_locations = set()

add paths here to override the default resource location "."