Hello Johannes,
Johannes Brunen wrote:
> Hello Carsten,
>
> Carsten Neumann wrote:
>> I'd be happy to add such a contribution, however I'm wondering if it
>> would be better to add a MFInt32 _mfChoices; to such a type and allow
>> selection of an arbitrary number of children ?
> The only advantage I see in my solution is simplicity and the saving of
> storage. You are right that my solution introduces an upper bound of 32
> children nodes. I'm fine with that, but of course it is not perfectly
> general.
>
> However, I must confess that I do (currently) not know how to introduce
> a new MFInt32 field. So, I have to spy a little bit into the
> implementations of other osg classes. Also, currently I do not have
> masterd the FCEdit tool which probably is the correct way for
> introducing new classes into OpenSG.
yes, to create new FieldContainers or modify existing ones you basically
write or edit a .fcd file and have FCEdit generate the
SomeContainerBase.{h,cpp,inl} and (for a new container)
SomeContainer.{h,cpp,inl} as well. Then you add functions/code to the
latter.
The easiest way to get started is to take an existing .fcd and modify
it, e.g. by adding new fields.
To generate the files you'd run commands like these (the cmd line only
variant of fcdEdit is called fcdCompile):
fcdCompile -d SomeContainer.fcd -b -p /Path/To/Write/Files/To
for the base files and
fcdCompile -d SomeContainer.fcd -f -p /Path/To/Write/Files/To
for the non-base files.
> By the way, is this tool functioning on the windows platform?
hm, good question. I don't normally use windows so the honest answer is
I don't know right now, but I'd expect at least the command line version
to work there as well (compile with make NOGUI=true).
> Could you tell me how I properly send files to you? Should I attach a
> compressed zip file?
yes, that would be fine; in case the list attachment limit (IIRC ~200k)
causes problems you can also send the code directly to me:
carsten_neumann AT gmx DOT net
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users