void IProperty::setDirty(bool b)
{
	if (isFake()) {
		IProperty *p = parent();
		while (p != 0 && p->isFake())
			p = p->parent();
		if (p != 0)
			p->setDirty(true);
	} else {
		m_dirty = b;
	}
}
Пример #2
0
std::ostream& IVertex::exportDotDebug( std::ostream& os ) const
{
	std::ostringstream s;
	s << subDotEntry( "label", getName() );
	if( ! isFake() )
	{
		/// @todo remove this. Temporary solution
		s << subDotEntry( "bitdepth", static_cast<const ImageEffectNode&>( getProcessNode() ).getOutputClip().getBitDepthString() );
	}
	
	os << "[" << std::endl;
	os << dotEntry( "type", "Node" ) << ", " << std::endl;
	os << dotEntry( "label", s.str() ) << ", " << std::endl;
	os << "]" << std::endl;
	return os;
}
std::ostream& ProcessVertexAtTime::exportDotDebug( std::ostream& os ) const
{
	std::ostringstream s;
	s << subDotEntry( "label", getName() );
	if( ! isFake() )
	{
		/// @todo remove this. Temporary solution
		if( const ImageEffectNode* ieNode = dynamic_cast<const ImageEffectNode*>( & getProcessNode() ) )
		{
			s << subDotEntry( "bitdepth",  ieNode->getOutputClip().getBitDepthString()   );
			s << subDotEntry( "component", ieNode->getOutputClip().getComponentsString() );
			{
				double startFrame, endFrame;
				ieNode->getOutputClip().getFrameRange( startFrame, endFrame );
				s << subDotEntry( "startFrame", startFrame );
				s << subDotEntry( "endFrame", endFrame );
			}
			s << subDotEntry( "output RoD", ieNode->getOutputClip().fetchRegionOfDefinition(_data._time) );
			s << subDotEntry( "fps", ieNode->getOutputClip().getFrameRate() );
		}
		else if( const InputBufferNode* ibNode = dynamic_cast<const InputBufferNode*>( & getProcessNode() ) )
		{
			s << subDotEntry( "bitdepth",  ibNode->getOutputClip().getBitDepthString()   );
			s << subDotEntry( "component", ibNode->getOutputClip().getComponentsString() );
			{
				double startFrame, endFrame;
				ibNode->getOutputClip().getFrameRange( startFrame, endFrame );
				s << subDotEntry( "startFrame", startFrame );
				s << subDotEntry( "endFrame", endFrame );
			}
			s << subDotEntry( "output RoD", ibNode->getOutputClip().fetchRegionOfDefinition(_data._time) );
			s << subDotEntry( "fps", ieNode->getOutputClip().getFrameRate() );
		}
	}
	s << subDotEntry( "timeDomain", ( boost::format("[%1%:%2%]") % _data._nodeData->_timeDomain.min % _data._nodeData->_timeDomain.max ).str() );
	
	s << subDotEntry( "localMemory", _data._localInfos._memory );
	s << subDotEntry( "globalMemory", _data._globalInfos._memory );
	s << subDotEntry( "time", _data._time );

	os << "[" << std::endl;
	os << dotEntry( "type", "Node" ) << ", " << std::endl;
	os << dotEntry( "label", s.str() ) << ", " << std::endl;
	os << "]" << std::endl;
	return os;
}
Пример #4
0
RadialMap::Segment::~Segment()
{
    if (isFake())
        delete m_file; //created by us in Builder::build()
}