Need info/help with pfiPick

New Message Reply Date view Thread view Subject view Author view

Brad Colbert (bcolbert++at++coralsea.ait.nrl.navy.mil)
Thu, 6 Mar 1997 08:36:55 -0500


   I'm trying to use the pfiPick class in my program. I've been going at this
   completely blind. The man pages refer you to the header file, not very
   helpfull...

   " The pfiPick has a complete C++ API following the conventions of general
     IRIS Performer C++ API; C++ methods are declared in

     /usr/include/Performer/pfui/pfiPick.h. "

   Here is an example of what I've done...

  pfInit ();
  pfiInit ();
  pfConfig ();

   ...

  picker = new pfiPick;
  picker->init ();
  picker->addChan (theDisplay->getLeftChan());
  picker->setupChans ();
  picker->setHitFunc (dink, NULL);
  picker->pPickMode = PFPK_M_NEAREST;
  picker->pIsectMode = PFTRAV_IS_CULL_BACK;

  while (!done)
  {
     cout << picker->getCount () << "\n" << flush;
     cout << picker->getNode () << "\n" << flush;

       ...

  }

  I get 0 for the count, and null for the node, as I'm mouse clicking on
  the geometry.

  Thanks in advance,

  Brad

-- 
-| How I want a break, Caribbean of course, after the heavy lectures involving 
-| quantum mechanics. All of thy geometry, Herr Planck, is fairly hard...
-+-----------------------------------------------------------------------------
-| bcolbert++at++ait.nrl.navy.mil    (202) 404-4708    ITD Virtual Reality Lab, NRL
=======================================================================
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:54:51 PDT

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