osg::Node* CSulClouds::createPlane( float size, float height ) { if ( !m_rPlane.valid() ) { m_rPlane = new CSulCloudPlane( size ); m_rPlane->create(); } else { m_rPlane->setSize( size ); } setCoverage( m_coverage ); // setTextureStates(); osg::StateSet* ss = m_rPlane->getOrCreateStateSet(); osg::BlendFunc *trans = new osg::BlendFunc(); trans->setFunction(osg::BlendFunc::SRC_ALPHA ,osg::BlendFunc::ONE_MINUS_SRC_ALPHA); ss->setAttributeAndModes( trans ); // transform to height m_rPat = new osg::PositionAttitudeTransform; m_rPat->setPosition( osg::Vec3(0, 0, height) ); m_rPat->addChild( m_rPlane ); return m_rPat; }
void Pageinfo::scanDone (QString coverage, bool mark_blank) { setCoverage (coverage); _rescale = true; // force a regenerate of the pixmap // _valid = false; _coverage = coverage; _remove = _blank = mark_blank; _scanning = false; }
// Clean up the clump linked list and the coverage state for the query to get ready for the next one. void resetQueryState(QueryState_t * QS) { Clump_t * clump = QS->clumps; while (clump != NULL) { Clump_t * next = clump->next; disposeClump(clump, QS); clump = next; } QS->clumps = NULL; QS->clumpCount = 0; setCoverage(QS, 0, QS->queryLen, FALSE); }