Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Inventor API > Re: SoMFString ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 12 Topic 471 of 504
Post > Topic >>

Re: SoMFString Question

by "Volker Enderlein" <volker@[EMAIL PROTECTED] > Nov 10, 2006 at 04:43 PM

Hi Tom,

On Fri, 10 Nov 2006 16:06:42 +0100, <tom_kuehnert@[EMAIL PROTECTED]
> wrote:

> ok...i will try it
> (but i am in Berlin for the weekend, so no success before monday :) )

hehe, me too ;-))

I had a look into the fine sources of Coins SoMField class and found the  
readValues function.
This function does the parsing and uses the [ "first string", "2nd", ]  
format.

> Even if it works, it will propably be the problem that I do not know
> when the string ends ( it comes by a tcp connection and is composed of
> multiple strings only if the sending rate is too high -> so i could not
> possibly know when to send the "last message" with the ']')

Adding multiple values to a SoMFString object is straight forwarded.
Use getNum to get the number of elements in the object so far.
Then call the setValues(int start, int number, SbString* values) method to
 
add an arbitrary number of strings to the object.

> If it doesnt work, I will have to change the class which does the .set
> (to a setValue(first_free_index,...)) but this will add another class
> to a project-folder where there are already enough cl***** to get
> lost...
>
> Thx for your time, Volker!
>
> Tom
>

HTH, have a nice weekend, cheers Volker

-- 
Volker Enderlein
 




 12 Posts in Topic:
SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-09 07:07:59 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-09 16:48:05 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-09 07:58:14 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-09 17:10:06 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-09 08:23:25 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-09 17:42:04 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-09 08:25:51 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-10 07:06:42 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-10 16:43:48 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-12 03:10:05 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-13 00:33:01 
NEW SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-12-09 13:27:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 1:35:10 CST 2008.