Liu Xiaoyan (liuxy++at++nsrc.nus.sg)
Sat, 14 Mar 1998 09:28:43 +0800
I just ran into a problem of pfHighlight, it doesn't work at all.
What I'm trying to do is to HighLight an object when the mouse is
inside its bounding box. It's coded inside a C++ class. I'm using
Performer 2.1 on Onyx2IR.
void grabDCS::getInto(void) // highlight object in whatever mode
{
pfHighlight *hl;
hl = new pfHighlight;
pfEnable(PFEN_HIGHLIGHTING);
// hl->setMode(PFHL_BBOX_LINES);
hl->setMode(PFHL_LINES | PFHL_LINESPAT);
hl->setColor(PFHL_FGCOLOR, 1.0f, 0.0f, 0.0f);
// hl->setColor(PFHL_BGCOLOR, 1.0f, 0.0f, 0.0f);
hl->apply();
}
void grabDCS::goOut(void) // remove highlight when mouse is outside
{ pfDisable(PFEN_HIGHLIGHTING);
}
Any idea?
Thanks
Liu
>color in highlighting. I tried pfHlightColor with several combinations.
> Instead of using the color I specify for the bounding box lines it appears
> to be using the colors of the objects. All other highlight modes use the
> color I specify with pfHlightColor.
***********************************************************************
Liu Xiaoyan National Supercomputing Research Center
Data Visualization Group http://www.nsrc.nus.edu.sg Tel:(65)7709267
***********************************************************************
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:01 PDT