Re: Creation of new database objects

New Message Reply Date view Thread view Subject view Author view

Space Magic Team (arnaud++at++pobox.oleane.com)
Mon, 12 Aug 1996 19:43:58 +0000


>Hi there,=20
>
>I am working of moving object with Performer, and I want to create
>a new database object, which could behave as say a more=20
>sophisticated pfGeode.
>
>I think it would speed up my apps a lot, but I did not find any docs on=
> that.
>
>Is it possible to do so?
>
>Or do I need to create a class which inserts a pfGeode in the database,=20
>and modifies it at will, as I do today, but not really fast.
>
>I wonder anyone knows the answer ...
>
>Cyril ZEKSER , TT&S

Hi Cyril,

The best way to create a new object in Performer is sure to use C++ and
subclassing an already existing object.
Look at the Performer Programming guide, chapter 14 title "subclassing
pfObjects" for that.
The virtual function app of your new object will be called automatically
with this mechanism.
For your cull and draw function, this will not be the case, and the best way
for that will be to call pfNodeTravFuncs to setup a new callback.
Hope it answers to your question.

                                        Philippe Poutignat

  
 ____________________________________________________________________
| | /\ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= /\ | |
| -(*)- <[]> arnaud++at++POBOX.oleane.com <[]> -(*)- |
| | \/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= \/ | |
|--------------------------------------------------------------------|
| ______ _________ ____________ _________ ______ |
| /_/_/_/\ | Space | \/\/\/\/\/\/ | Space | /\_\_\_\ |
| /_/_/_/\/\ | ~~~~~~~ | \/\/\/\/\/ | ~~~~~~~ | /\/\_\_\_\ |
|/_/_/_/\/\/\ | Magic | \/\/\/\/ | Basic | /\/\/\_\_\_\|
|\_\_\_\/\/\/ '---------' \/\/\/ '---------' \/\/\/_/_/_/|
| \_\_\_\/\/ / ######### \ \/\/ / ######### \ \/\/_/_/_/ |
| \_\_\_\/ / ########### \ \/ / ########### \ \/_/_/_/ |
| '---------------' '---------------' |
|--------------------------------------------------------------------|
| o o Thomson Training & Simulation o o |
| o o Z.A. Les Boutries; 5, rue Leonardo da Vinci; B.P. 252 o o |
| o o 78703 Conflans Sainte Honorine Cedex France o o |
| o o Tel: [33] (1) 34903614 Fax: [33] (1) 34903602 o o |
|____________________________________________________________________|
   

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:20 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.