WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Regarding viewpoint with vizconfig,addFloatRangeItem&Storing viewpoint in PREFERENCES (https://forum.worldviz.com/showthread.php?t=5765)

rajnishv 06-27-2016 03:57 AM

Regarding viewpoint with vizconfig,addFloatRangeItem&Storing viewpoint in PREFERENCES
 
Hi Jeff,
I want to set the viewpoint via addFloatRangeItem functon as shown below.
and also viewpoint accepts many parameters, but confused how to used the viewpoint thru vizconnect.
my FOV is working as its only one single value.

And also if i m setting my viewpoint ,at that time when i close my vizard executed application,then i want to store that value in the PRERERENCES,so that when i executes or open my application,i should get the viewpoint restored of the last viewpoint before closing the application.
What and which module to use with vizard to get the shared preferences.


Code for Review:

#Create a configurable object for stereo settings
bc= vizconfig.BasicConfigurable('VR ViewPoint Setter')

bc.addFloatRangeItem('Set X viewpoint value',[0.5,10],fset=vizconnect.addViewpoint,fget=vizconnect.getV iewpoint)

#bc.addFloatRangeItem('Set Y viewpoint value',[0.5,10],fset=vizconnect.addViewpoint,fget=viz.MainWindow. getScreenDistance)
#bc.addFloatRangeItem('Set Z viewpoint value',[.5,10],fset=vizconnect.addViewpoint,fget=viz.MainWindow. getFusionDistance)

bc.addFloatRangeItem('Set Feild of View',[0.5,10],fset=viz.MainWindow.fov,fget=viz.MainWindow.getVe rticalFOV)


Waiting for ur reply

Thanx & Regards:

Mr.Rajnish Vishwakarma

VR Developer ar Xenium Digital Pvt. Ltd.,Mumbai(Customer of World Viz)


All times are GMT -7. The time now is 09:04 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC