Lines Matching refs:rShape
273 void LayerManager::addShape( const ShapeSharedPtr& rShape ) in addShape() argument
276 ENSURE_OR_THROW( rShape, "LayerManager::addShape(): invalid Shape" ); in addShape()
280 XShapeHash::value_type( rShape->getXShape(), in addShape()
281 rShape) ).second ) in addShape()
288 implAddShape( rShape ); in addShape()
298 void LayerManager::implAddShape( const ShapeSharedPtr& rShape ) in implAddShape() argument
301 ENSURE_OR_THROW( rShape, "LayerManager::implAddShape(): invalid Shape" ); in implAddShape()
303 LayerShapeMap::value_type aValue (rShape, LayerWeakPtr()); in implAddShape()
305 … OSL_ASSERT( maAllShapes.find(rShape) == maAllShapes.end() ); // shape must not be added already in implAddShape()
315 if( rShape->isVisible() ) in implAddShape()
316 notifyShapeUpdate( rShape ); in implAddShape()
319 bool LayerManager::removeShape( const ShapeSharedPtr& rShape ) in removeShape() argument
322 if( maXShapeHash.erase( rShape->getXShape() ) == 0 ) in removeShape()
325 OSL_ASSERT( maAllShapes.find(rShape) != maAllShapes.end() ); in removeShape()
327 implRemoveShape( rShape ); in removeShape()
332 void LayerManager::implRemoveShape( const ShapeSharedPtr& rShape ) in implRemoveShape() argument
335 ENSURE_OR_THROW( rShape, "LayerManager::implRemoveShape(): invalid Shape" ); in implRemoveShape()
337 const LayerShapeMap::iterator aShapeEntry( maAllShapes.find(rShape) ); in implRemoveShape()
342 const bool bShapeUpdateNotified = maUpdateShapes.erase( rShape ) != 0; in implRemoveShape()
350 (rShape->isVisible() && in implRemoveShape()
351 !rShape->isBackgroundDetached()) ) in implRemoveShape()
358 pLayer->addUpdateRange( rShape->getUpdateArea() ); in implRemoveShape()
362 rShape->clearAllViewLayers(); in implRemoveShape()
429 void LayerManager::enterAnimationMode( const AnimatableShapeSharedPtr& rShape ) in enterAnimationMode() argument
432 ENSURE_OR_THROW( rShape, "LayerManager::enterAnimationMode(): invalid Shape" ); in enterAnimationMode()
434 const bool bPrevAnimState( rShape->isBackgroundDetached() ); in enterAnimationMode()
436 rShape->enterAnimationMode(); in enterAnimationMode()
442 if( bPrevAnimState != rShape->isBackgroundDetached() ) in enterAnimationMode()
450 if( rShape->isVisible() ) in enterAnimationMode()
451 addUpdateArea( rShape ); in enterAnimationMode()
459 void LayerManager::leaveAnimationMode( const AnimatableShapeSharedPtr& rShape ) in leaveAnimationMode() argument
462 ENSURE_OR_THROW( rShape, "LayerManager::leaveAnimationMode(): invalid Shape" ); in leaveAnimationMode()
464 const bool bPrevAnimState( rShape->isBackgroundDetached() ); in leaveAnimationMode()
466 rShape->leaveAnimationMode(); in leaveAnimationMode()
472 if( bPrevAnimState != rShape->isBackgroundDetached() ) in leaveAnimationMode()
479 if( rShape->isVisible() ) in leaveAnimationMode()
480 notifyShapeUpdate( rShape ); in leaveAnimationMode()
488 void LayerManager::notifyShapeUpdate( const ShapeSharedPtr& rShape ) in notifyShapeUpdate() argument
494 if( rShape->isVisible() || rShape->isBackgroundDetached() ) in notifyShapeUpdate()
495 maUpdateShapes.insert( rShape ); in notifyShapeUpdate()
497 addUpdateArea( rShape ); in notifyShapeUpdate()
728 void LayerManager::addUpdateArea( ShapeSharedPtr const& rShape ) in addUpdateArea() argument
731 ENSURE_OR_THROW( rShape, "LayerManager::addUpdateArea(): invalid Shape" ); in addUpdateArea()
733 const LayerShapeMap::const_iterator aShapeEntry( maAllShapes.find(rShape) ); in addUpdateArea()
740 pLayer->addUpdateRange( rShape->getUpdateArea() ); in addUpdateArea()