Page 1 of 1

default dot tracking parameters

Posted: Sat Nov 29, 2008 11:21 pm
by relieved_mouse
I am using the VC8 sample code for making my own application for use with a Slim v100.

I want to be able to start the application with dot tracking parameters that are different to the default values. For example, for the OBJECT_MASS type dot tracking parameters I would like to be able to start the application with a MIN value of 500 instead of 3.

I can see that the default values are first called around line 282 in CameraOptionsDlg.cpp. But I can't work out how to set up my own values to initialise the application with, without losing the ability to adjust these values via the GUI.

If anyone could give me some advice on this I would be very grateful.

Re: default dot tracking parameters

Posted: Sat Nov 29, 2008 11:25 pm
by relieved_mouse
To clarify, I mean the C++ VC8 sample code.

Re: default dot tracking parameters

Posted: Mon Dec 01, 2008 2:29 pm
by Birch
If you initialize the tracking parameters in CCameraDlg's OnInitDialog() (or a function called by it), the Options dialog will automatically pick up those changed values when it is opened (and allow you to alter them).

CCameraDlg::OnInitDialog()
{
.
.
.
CComVariant newOptionVal;
newOptionVal.dblval = (double)500;
m_spCamera->SetOption(NP_OPTION_OBJECT_MASS_MIN, newOpitionVal);

Re: default dot tracking parameters

Posted: Wed Jan 21, 2009 5:47 am
by relieved_mouse
Thanks for your advice, I finally got round to implementing it and it works great. Thanks!