| | |
- Boost.Python.instance(__builtin__.object)
-
- App
-
- GlApp
- Display
- Frustum
- GlContextData
- Kernel
- Projection
-
- CameraProjection
- User
- UserVec
- Viewport
-
- SimViewport
class App(Boost.Python.instance) |
| |
Encapsulates the actual application.
This defines the base class for all API-specific application
object types. The interface given is what the VR Juggler kernel
expects in order to communicate with the application. Most of
the application's interface will be defined in the derived
API-specific classes.
Users should write their application objects as subclasses of the
API-specific classes. Overriding the methods in this class and in
the API-specific subclasses is the method by which the application
programmer interfaces with VR Juggler.
The VR Juggler kernel control loop will look similar to this:
while drawing:
app_obj.preFrame()
app_obj.latePreFrame()
draw()
app_obj.intraFrame()
sync()
app_obj.postFrame()
updateAllDeices()
One time through this loop is a "Juggler Frame."
See also: vrj.Kernel |
| |
- Method resolution order:
- App
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __init__(...)
- __init__()
Default constructor. Uses vrj.Kernel.instance().
__init__(kernel)
Arguments:
kernel -- The vrj.Kernel instance that is active (so the
application has easy access to the kernel).
- apiInit(...)
- apiInit()
Application graphics API initialization function. Execute any
initialization needed after the graphics API is started but
before the Draw Manager starts the rendering loop(s).
- configCanHandle(...)
- configCanHandle(element) -> Boolean
Defaults to handling nothing.
Arguments:
element -- An instance of jccl.ConfigElement.
- configProcessPending(...)
- configProcessPending() -> int
Inherited from jccl.ConfigElementHandler and not overridden.
- depSatisfied(...)
- depSatisfied() -> Boolean
Are any application dependencies satisified? If this
application requires anything special of the system for
successful initialization, check it here. If the return value
is False, then this application will not be started yet. If
the return value is True, this application will be allowed to
enter the system.
- exit(...)
- exit()
Executes any final clean-up needed for the application before
exiting.
- focusChanged(...)
- focusChanged()
Called by the kernel when the focus state changes.
- getDrawScaleFactor(...)
- getDrawScaleFactor() -> float
Returns the scale factor to convert from Juggler units
(meters) to application units. Internally, VR Juggler stores
and processes all position values in meterrs. The scale
factor returned by this method is used by VR Juggler to scale
the rendering state from meters to whatever units this
application wants to use. For example, to render in feet,
return 3.28 (gadget.PositionUnitConversion.ConvertToFeet).
- haveFocus(...)
- haveFocus() -> Boolean
Does this application currently have focus? If an application
has focus, the user may be attempting to interact with it, so
the application should process input. If not, the user is
not interacting with it, so ignore all input. However, the
user may still be viewing the application, so render, update
animations, etc. This is akin to the way that a user can only
interact with a GUI window that has focus.
- init(...)
- init()
Application initialization function. Execute any
initialization needed before the graphics API is started.
Note:
Derived classes MUST call the base class version of this
method.
- intraFrame(...)
- intraFrame()
Function called <b>during</b> this application's drawing time.
This can be used for "free" parallel processing, but it
introduces a critical section to the code. If the rendering
process is reading state data, this method should not be
modifying any of that data. Instead, a double- or
triple-buffering scheme must be used to allow parallel
reading and writing of all application state used for rendering.
- latePreFrame(...)
- latePreFrame()
Function called after preFrame() and application-specific data
synchronization (in a cluster conifguration) but before the
start of a new frame.
Note:
This is required because we cannot update data during the
rendering process since it might be using multiple threads.
- postFrame(...)
- postFrame()
Function called before updating input devices but after the
frame rendering is complete.
- preFrame(...)
- preFrame()
Executes any code needed to set up the application object
state prior to rendering the scene. This is invoked by the
kernel once per pass through the Juggler frame loop. This is
called after input device updates but before the start of
rendering a new frame of the scene.
- reset(...)
- reset()
Resets the application. This is used when the kernel (or
applications) would like this application object to reset to
its initial state. This is one of the only methods that can
be safe for cross-calls from other application object
interface methodss. That is, of course, as long as the
override of this method is implemented in a safe manner. The
override should be implemented such that it can be invoked at
any time during the Juggler frame loop by the kernel or from
a method such as preFrame() or postFrame() by the application
object itself.
- setFocus(...)
- setFocus(newState)
Sets the focus state.
Post-condition:
If the focus state has changed, then focusChanged() is
called.
Arguments:
newState -- A Boolean value indicating whether this application
now has focus.
Properties defined here:
- mHaveFocus
- get = (...)
- set = (...)
- mKernel
- get = (...)
- set = (...)
Data and other attributes defined here:
- __instance_size__ = 24
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class CameraProjection(Projection) |
| |
Projection class that simply takes a matrix for the camera position. |
| |
- Method resolution order:
- CameraProjection
- Projection
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __init__(...)
- calcViewMatrix(...)
- calcViewMatrix(cameraPos, scaleFactor)
Calculates the view matrix and frustum for the camera.
Calculates a perspective transform for the given settings.
Auto-calculates the aspect ratio from the current size of the
window and viewport.
Arguemnts:
cameraPos -- A gmtl.Matrix44f object that represents the
camera position.
scaleFactor -- The scaling factor.
Properties defined here:
- mVertFOV
- get = (...)
- set = (...)
Data and other attributes defined here:
- __instance_size__ = 124
Methods inherited from Projection:
- getEye(...)
- getEye() -> vrj.Projection.Eye value
Returns the eye for this projection.
- getFrustum(...)
- getFrustum() -> vrj.Frustum object
Returns a copy of this projection's frustum.
- getFrustumApexAndCorners(...)
- getFrustumApexAndCorners(apex, ur, lr, ul, ll)
Helper to get the frustum apex and corners in model
coordinates.
Post-conditions:
The given variables contain the values of the frusta corners
in model space.
Arguments:
apex -- A gmtl.Vec3f used for storing the apex.
ur -- A gmtl.Vec3f used for storing the upper right corner of
the frustum.
lr -- A gmtl.Vec3f used for storing the lower right corner of
the frustum.
ul -- A gmtl.Vec3f used for storing the upper left corner of
the frustum.
ll -- A gmtl.Vec3f used for storing the lower left corner of
the frustum.
Note:
This function is meant for debugging purposes.
- getViewMatrix(...)
- getViewMatrix() -> gmtl.Matrix44f object
Returns this projection's view matrix.
- getViewport(...)
- getViewport() -> vrj.Viewport object
Returns the viewport associated with this projection.
Data and other attributes inherited from Projection:
- Eye = <class 'PyJuggler.vrj.PyJuggler.__vrj.Eye'>
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class Display(Boost.Python.instance) |
| |
Container class for viewports and window information. This stores
the size and location of the window and the viewports contained
within. |
| |
- Method resolution order:
- Display
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __init__(...)
- getConfigElement(...)
- getConfigElement() -> jccl.ConfigElement object
Gets the config element that configured this display window.
- getName(...)
- getName() -> string object
Gets the name of this display window.
- getNumViewports(...)
- getNumViewports() -> int
Gets the number of viewports contained within this window.
- getOriginAndSize(...)
- getOriginAndSize() -> (int, int, int, int)
Returns the current origin and size of this display widnow as
a tuple of four integers (x origin, y origin, width, height).
- getPipe(...)
- getPipe() -> int
Gets the graphics piope for this display window.
- getViewport(...)
- getViewport(vpNum) -> vrj.Viewport object
Returns the requested viewprot from this display window.
Pre-conditions:
vpNum < getNumViewports()
Arguments:
vpNum -- The integer identifier of the requested viewport.
- isActive(...)
- isActive() -> Boolean
Determines whether this display window is active.
Data and other attributes defined here:
- __instance_size__ = 68
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class Frustum(Boost.Python.instance) |
| |
A frustum object. This is a frustum. |
| |
- Method resolution order:
- Frustum
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __getitem__(...)
- __init__(...)
- set(...)
- setBottomLeftTopRight(...)
- setNearFar(...)
Data and other attributes defined here:
- __instance_size__ = 32
- entry = <class 'PyJuggler.vrj.PyJuggler.__vrj.entry'>
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class GlApp(App) |
| |
vrj.GlApp encapsulates an actual OpenGL application object.
This defines the base class from which OpenGL-based application
objects should be derived. The interface given what the kernel
and the OpenGL Draw Manager expect in order to interact with the
application object.
The control loop will look similar to this:
glapp_obj.contextInit() # called for each context
while drawing:
glapp_obj.preFrame()
glapp_obj.latePreFrame()
glapp_obj.bufferPreDraw() # called for each draw buffer
glapp_obj.contextPreDraw() # called for each context
glapp_obj.draw() # called for each viewport
glapp_obj.contextPostDraw() # called for each context
glapp_obj.intraFrame() # called in parallel to the draw functions
sync()
glapp_obj.postFrame()
updateAllDevices()
glapp_obj.contextClose() # called for each context
Note: One time through the loop is a Juggler Frame.
See also: vrj.App, vrj.Kernel |
| |
- Method resolution order:
- GlApp
- App
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __init__(...)
- __init__()
Default constructor. Uses vrj.Kernel.instance().
__init__(kernel)
Arguments:
kernel -- The vrj.Kernel instance that is active (so the
application has easy access to the kernel).
- apiInit(...)
- apiInit()
Application graphics API initialization function. Execute any
initialization needed after the graphics API is started but
before the Draw Manager starts the rendering loop(s).
- bufferPreDraw(...)
- bufferPreDraw()
Function that is called once for each frame buffer of an
OpenGL context. This function is executed after contextInit()
(if neede) but before contextPreDraw(). It is called once
per frame buffer (see note below).
Pre-conditions:
The OpenGL context has been set to the context for drawing.
Post-conditions:
The application object has executed any commands that need to
be executed once per context, per buffer, per frame.
Note:
This function is designed to be used when some task must be
performed only once per frame buffer (i.e., once for the left
tbuffer, once for the right buffer). For example, the OpenGL
clear color should be defined and glClear(GL_COLOR_BUFFER_BIT)
should be called in this method.
- configCanHandle(...)
- configCanHandle(element) -> Boolean
Defaults to handling nothing.
Arguments:
element -- An instance of jccl.ConfigElement.
- configProcessPending(...)
- configProcessPending() -> int
Inherited from jccl.ConfigElementHandler and not overridden.
- contextClose(...)
- contextClose()
Function that is called immediately before a context is closed.
Use this function to clean up any context-specific data
structures.
- contextInit(...)
- contextInit()
Function that is called immediately after a new context is
created. Use this function to create context-specific data
structures such as display lists and texture objects that are
known to be required when the context is created.
Pre-condition:
The OpenGL context has been set to the new context.
Post-condition:
The application has completed context-specific initialization.
- contextPostDraw(...)
- contextPostDraw()
Function that is called upon exit of the context after
rendering
Pre-conditions:
The OpenGL context has been set to the context for drawing.
- contextPreDraw(...)
- contextPreDraw()
Function that is called upon entry into the context before
rendering begins. This can be used to allocate
context-specific data dynamically.
Pre-conditions:
The OpenGL context has been set to the context for drawing.
Post-conditins:
The application object has executed any commands that need to
be executed only once per context, per frame.
This function can be used for things that need to happen every
frame but only once per context.
- depSatisfied(...)
- depSatisfied() -> Boolean
Are any application dependencies satisified? If this
application requires anything special of the system for
successful initialization, check it here. If the return value
is False, then this application will not be started yet. If
the return value is True, this application will be allowed to
enter the system.
- draw(...)
- draw()
Function that renders the scene. Override this function with
the application-specific rendering routine.
Pre-condition:
OpenGL state has transformation and buffer selected.
Post-condition:
The current scene has been drawn.
- exit(...)
- exit()
Executes any final clean-up needed for the application before
exiting.
- focusChanged(...)
- focusChanged()
Called when the focus state changes.
- getDrawScaleFactor(...)
- getDrawScaleFactor() -> float
Returns the scale factor to convert from Juggler units
(meters) to application units. Internally, VR Juggler stores
and processes all position values in meterrs. The scale
factor returned by this method is used by VR Juggler to scale
the rendering state from meters to whatever units this
application wants to use. For example, to render in feet,
return 3.28 (gadget.PositionUnitConversion.ConvertToFeet).
- init(...)
- init()
Application initialization function. Execute any
initialization needed before the graphics API is started.
Note:
Derived classes MUST call the base class version of this
method.
- intraFrame(...)
- intraFrame()
Function called during the application's drawing time.
- latePreFrame(...)
- latePreFrame()
Function called after preFrame() and application-specific data
synchronization (in a cluster conifguration) but before the
start of a new frame.
Note:
This is required because we cannot update data during the
rendering process since it might be using multiple threads.
- pipePreDraw(...)
- pipePreDraw()
Function that is called at the beginning of the drawing of eacn
pipe.
Pre-conditions:
The library is preparing to render all windows on a given
pipe.
Post-conditions:
Any pre-pipe user calls have been done.
Note:
Currently the OpenGL context is not set when this function is
called. This is a TEST function. USE AT YOUR OWN RISK!
- postFrame(...)
- postFrame()
Function alled before updating input devices but after the
frame is complete.
- preFrame(...)
- preFrame()
Function called before the Juggler frame starts. This is
called after input device updates but before the start of a
new frame.
- reset(...)
- reset()
Resets the application. This is used when the kernel (or
applications would like this application to reset to its
initial state.
Data and other attributes defined here:
- __instance_size__ = 24
Methods inherited from App:
- haveFocus(...)
- haveFocus() -> Boolean
Does this application currently have focus? If an application
has focus, the user may be attempting to interact with it, so
the application should process input. If not, the user is
not interacting with it, so ignore all input. However, the
user may still be viewing the application, so render, update
animations, etc. This is akin to the way that a user can only
interact with a GUI window that has focus.
- setFocus(...)
- setFocus(newState)
Sets the focus state.
Post-condition:
If the focus state has changed, then focusChanged() is
called.
Arguments:
newState -- A Boolean value indicating whether this application
now has focus.
Properties inherited from App:
- mHaveFocus
- get = (...)
- set = (...)
- mKernel
- get = (...)
- set = (...)
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class GlContextData(Boost.Python.instance) |
| |
OpenGL helper class that stores context-specific data.
This class allows the user to store Python objects or data in a
context-specific manner. In other words, there will be one
instance of a given Python type per OpenGL context. Juggler will
take care of the data management transparently for the user so that
s/he never has to know about the current configuration.
An example use would be a Python class full of display list IDs. The
user stores instances of the class in an instance of this class.
A simple example would be the following:
class Data:
def __init__(self, v0, v1):
self.data0 = v0
self.data1 = v1
class AppObj(vrj.GlApp):
def __init__(self):
vrj.GlApp.__init__(self)
self.context_data = vrj.GlContextData()
def contextInit(self):
self.context_data.obj = Data(1, 2)
def draw(self):
# Read data from self_context_data.obj ...
More details can be found in the PyJuggler Getting Started Guide. |
| |
- Method resolution order:
- GlContextData
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __getattr__(...)
- __init__(...)
- __setattr__(...)
Data and other attributes defined here:
- __instance_size__ = 12
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class Kernel(Boost.Python.instance) |
| |
Main control class for all VR Juggler applications.
The kernel takes care of all initialization and object creation.
This class is the only class that MUST be instantiated for all
application objects. |
| |
- Method resolution order:
- Kernel
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- configProcessPending(...)
- configProcessPending() -> int
Inherited from jccl.ConfigElementHandler and not overridden.
- getUser(...)
- getUser(userName) -> vrj.User object
Gets the user associated with the given name.
Arguments:
name -- The name of the user to be returned.
- getUsers(...)
- getUsers() -> vrj.UserVec object (indexable container)
Returns an indexable container of all the users.
- isRunning(...)
- isRunning() -> Boolean
Returns the status of the kernel.
- loadConfigFile(...)
- loadConfigFile(filename)
Loads configuration data for the kernel.
Post-conditions:
Config data has been read into the initial buffer.
Arguments:
filename -- The string name of the configuration file to load.
- scanForConfigDefinitions(...)
- scanForConfigDefinitions(path)
Scans the given directory (or directories) for .jdef files
and loads all discovered files into the JCCL Element Factory.
Post-conditions:
The Element Factory can now manage elements with the discovered
types.
Arguments:
path -- One or more directories, delineated by a
platform-specific path separator, that will be searched
for .jdef files.
- setApplication(...)
- setApplication(newApp)
Sets the application object for the kernel to deal with. If
there is another application active, the kernel has to stop
that application first and then restart all graphics
API-specific Managers.
Arguments:
newApp -- An instance of vrj.App. If it is None, the current
application is stopped.
- start(...)
- start()
Starts the kernel running by spawning the kernel thread.
- stop(...)
- Stops the kernel control loop. If there is an application
set, then it will be closed first.
Post-conditions:
The kernel exits, and the VR Juggler system shuts down.
- waitForKernelStop(...)
- waitForKernelStop()
Blocks until the kernel exits.
Static methods defined here:
- instance(...)
- vrj.Kernel.instance() -> vrj.Kernel object
Returns the singleton VR Juggler kernel reference.
Data and other attributes defined here:
- __init__ = <built-in function __init__>
- Raises an exception
This class cannot be instantiated from Python
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class Projection(Boost.Python.instance) |
| |
Abstract base class for viewport definitions. This class is
responsible for storing and computing projection information
based upon eye positions. This class is an abstract base class
for other classes that actually compute the projections. |
| |
- Method resolution order:
- Projection
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __init__(...)
- calcViewMatrix(...)
- calcViewMatrix(eyePos, scaleFactor)
Calculates the view matrix.
Pre-conditions:
eyePos is scaled by the position scaling factor. scaleFactor
is the scale currently used.
Arguments:
eyePos -- A gmtl.Matrix44f object that represents the eye
position.
scaleFactor -- The scale factor.
- getEye(...)
- getEye() -> vrj.Projection.Eye value
Returns the eye for this projection.
- getFrustum(...)
- getFrustum() -> vrj.Frustum object
Returns a copy of this projection's frustum.
- getFrustumApexAndCorners(...)
- getFrustumApexAndCorners(apex, ur, lr, ul, ll)
Helper to get the frustum apex and corners in model
coordinates.
Post-conditions:
The given variables contain the values of the frusta corners
in model space.
Arguments:
apex -- A gmtl.Vec3f used for storing the apex.
ur -- A gmtl.Vec3f used for storing the upper right corner of
the frustum.
lr -- A gmtl.Vec3f used for storing the lower right corner of
the frustum.
ul -- A gmtl.Vec3f used for storing the upper left corner of
the frustum.
ll -- A gmtl.Vec3f used for storing the lower left corner of
the frustum.
Note:
This function is meant for debugging purposes.
- getViewMatrix(...)
- getViewMatrix() -> gmtl.Matrix44f object
Returns this projection's view matrix.
- getViewport(...)
- getViewport() -> vrj.Viewport object
Returns the viewport associated with this projection.
Data and other attributes defined here:
- Eye = <class 'PyJuggler.vrj.PyJuggler.__vrj.Eye'>
- __instance_size__ = 120
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class User(Boost.Python.instance) |
| |
Representation for Juggler user in multi-user environments.
Each user has a system-assigned ID as well as a string name from
the 'user' config element that created the user. These IDs can be
used to identify a user at set points in the execution of a VR
Juggler application object where user information is given.
The system-assigned ID number can also be used as an index into a
program array (or other data structure) that stores user-specific
data such as navigation matrices or input devices. |
| |
- Method resolution order:
- User
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __init__(...)
- getHeadUpdateTime(...)
- getHeadUpdateTime() -> vpr.Interval object
Returns the time stamp of the last head tracker update.
- getId(...)
- getId() -> int
Returns the ID of the user in the system.
Post-conditions:
-1 implies that the user has not been configured yet.
- getInterocularDistance(...)
- getInterocularDistance() -> float
Gets the eye separation.
- getName(...)
- getName() -> string object
Returns the name of thss user object.
Data and other attributes defined here:
- __instance_size__ = 228
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class UserVec(Boost.Python.instance) |
| |
An indexable container of vrj.User objects. |
| |
- Method resolution order:
- UserVec
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __contains__(...)
- __delitem__(...)
- __getitem__(...)
- __init__(...)
- __iter__(...)
- __len__(...)
- __setitem__(...)
- append(...)
- extend(...)
Data and other attributes defined here:
- __instance_size__ = 20
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
|
class Viewport(Boost.Python.instance) |
| |
Base class for window viewports and all viewport data. This
stores projection data, viewport info, and relevant user. |
| |
- Method resolution order:
- Viewport
- Boost.Python.instance
- __builtin__.object
Methods defined here:
- __init__(...)
- getConfigElement(...)
- getConfigElement() -> jccl.ConfigElement object
gets the config element that configured this viewport.
- getDisplay(...)
- getDisplay() -> vrj.Display object
Gets the display contaning this viewprot.
- getLeftProj(...)
- getLeftProj() -> vrj.Projection object
Gets the left projection.
- getName(...)
- getName() -> string object
Gets the name of this viewport.
- getOriginAndSize(...)
- getOriginAndSize() -> (float, float, float, float)
Returns the origin and size of this viewport as a tuple of
floating-point values (xOrigin, yOrigin, width, height).
- getRightProj(...)
- getRightProj() -> vrj.Projection object
Gets the right projection.
- getType(...)
- getType() -> vrj.Viewport.Type value
Gets the type of this viewport.
- getUser(...)
- getUser() -> vrj.User object
Gets the user associated with this viewport.
- getView(...)
- getView() -> vrj.Viewport.View value
Which view are we supposed to render?
- inStereo(...)
- inStereo() -> Boolean
Determines if this viewport is rendering in stereo.
- isActive(...)
- isActive() -> Boolean
Determines if this viewport is active.
- isSimulator(...)
- isSimulator() -> Boolean
Determines if this is a simulator viewport.
- isSurface(...)
- isSurface() -> Boolean
Determines if this is a surface viewport.
- updateProjections(...)
- updateProjections(positionScale)
Updates the projection data for this viewport. This uses the
data from the head position for this viewport.
Data and other attributes defined here:
- Type = <class 'PyJuggler.vrj.PyJuggler.__vrj.Type'>
- View = <class 'PyJuggler.vrj.PyJuggler.__vrj.View'>
- __instance_size__ = 72
Data and other attributes inherited from Boost.Python.instance:
- __dict__ = <dictproxy object>
- __new__ = <built-in method __new__ of Boost.Python.class object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __weakref__ = <member '__weakref__' of 'Boost.Python.instance' objects>
| |