Hi all !
In my soft, I want to make some nodes transparent.. So I wanted to use
MakeTransparentGraphOp, and to use the function addToExcludeList to mark
which nodes should not be transparent. But it seems that
MakeTransparentGraphOp does not take in account the nodes I put in the
exclude list...
My code is:
//code
void makeTransparent ()
{
MakeTransparentGraphOp *op = new MakeTransparentGraphOp ();
float alpha = 0.5;
std::ostringstream str;
str << "transparency=" << alpha;
op->setParams (str.str());
// MapNodePnt is a typedef map<NodePtr, Pnt3f>
for (MapNodePnt::iterator it = _positions.begin(); it !=
_positions.end(); ++it)
{
if (condition) {
NodePtr n = it->first;
op->addToExcludeList (n);
}
}
op->traverse (root);
}
Here, every nodes are transparent...
Fabrice Decle
--
Fabrice Dècle
PhD. Student
www.labri.fr/perso/decle
LaBRI, Domaine Universitaire | Room : 253
351, Cours de la Libération | Phone : +33 (0)5 40 00 38 82
F-33405 Talence CEDEX | e-mail: [EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users