WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 06-27-2016, 03:57 AM
rajnishv rajnishv is offline
Join Date: Jan 2016
Location: Kalina,Sanatcruz(East),Mumbai,Maharashtra,India
Posts: 94
Question 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)
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding Viconnect viewpoint rajnishv Precision Position Tracker (PPT) 3 03-20-2017 11:03 PM
How to track the actual viewpoint Jerry Vizard 3 05-25-2016 09:44 AM
Avatar w/ hat cannot look at viewpoint TrashcanPatrol Vizard 5 08-19-2008 08:26 AM
VRML Viewpoint error bstankie Vizard 1 03-11-2003 02:10 PM

All times are GMT -7. The time now is 01:30 AM.

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