LibreOffice Module slideshow (master) 1
Public Member Functions | List of all members
slideshow::internal::ViewLayer Class Referenceabstract

#include <viewlayer.hxx>

Inheritance diagram for slideshow::internal::ViewLayer:
[legend]

Public Member Functions

virtual ~ViewLayer ()
 
virtual bool isOnView (ViewSharedPtr const &rView) const =0
 Query whether layer displays on given view. More...
 
virtual cppcanvas::CanvasSharedPtr getCanvas () const =0
 Get the associated canvas of this layer. More...
 
virtual void clear () const =0
 Clear the clipped view layer area. More...
 
virtual void clearAll () const =0
 Clear the complete view. More...
 
virtual cppcanvas::CustomSpriteSharedPtr createSprite (const basegfx::B2DSize &rSpriteSizePixel, double nPriority) const =0
 Create a sprite for this layer. More...
 
virtual void setPriority (const basegfx::B1DRange &rRange)=0
 Set the layer priority range. More...
 
virtual basegfx::B2DHomMatrix getTransformation () const =0
 Get the overall view transformation. More...
 
virtual css::geometry::IntegerSize2D getTranslationOffset () const =0
 
virtual basegfx::B2DHomMatrix getSpriteTransformation () const =0
 Get the overall view transformation. More...
 
virtual void setClip (const basegfx::B2DPolyPolygon &rClip)=0
 Set clipping on this view layer. More...
 
virtual bool resize (const basegfx::B2DRange &rArea)=0
 Resize this view layer. More...
 

Detailed Description

Definition at line 52 of file viewlayer.hxx.

Constructor & Destructor Documentation

◆ ~ViewLayer()

virtual slideshow::internal::ViewLayer::~ViewLayer ( )
inlinevirtual

Definition at line 55 of file viewlayer.hxx.

Member Function Documentation

◆ clear()

virtual void slideshow::internal::ViewLayer::clear ( ) const
pure virtual

Clear the clipped view layer area.

This method clears the area inside the clip polygon, if none is set, the transformed unit rectangle of the view.

◆ clearAll()

virtual void slideshow::internal::ViewLayer::clearAll ( ) const
pure virtual

Clear the complete view.

This method clears the full view area (not only the transformed unit rectangle, or within the clip). If this ViewLayer represents the background layer, the whole XSlideShowView is cleared. If this ViewLayer is implemented using sprites (i.e. one of the upper layers), the sprite is cleared to fully transparent.

◆ createSprite()

virtual cppcanvas::CustomSpriteSharedPtr slideshow::internal::ViewLayer::createSprite ( const basegfx::B2DSize rSpriteSizePixel,
double  nPriority 
) const
pure virtual

Create a sprite for this layer.

Parameters
rSpriteSizePixelSprite size in device pixel
nPrioritySprite priority. This value determines the priority of this sprite, relative to all other sprites of this ViewLayer. The higher the priority, the closer to the foreground the sprite will be.
Returns
the sprite, or NULL on failure (or if this canvas does not support sprites).

◆ getCanvas()

virtual cppcanvas::CanvasSharedPtr slideshow::internal::ViewLayer::getCanvas ( ) const
pure virtual

Get the associated canvas of this layer.

The canvas returned by this method must not change, as long as this object is alive.

◆ getSpriteTransformation()

virtual basegfx::B2DHomMatrix slideshow::internal::ViewLayer::getSpriteTransformation ( ) const
pure virtual

Get the overall view transformation.

Same transformation as with getTransformation(), only that you can safely use this one to position sprites on screen (no ViewLayer offsets included whatsoever).

◆ getTransformation()

virtual basegfx::B2DHomMatrix slideshow::internal::ViewLayer::getTransformation ( ) const
pure virtual

Get the overall view transformation.

This method should not simply return the underlying canvas' transformation, but rather provide a layer above that. This enables clients of the slideshow to set their own user space transformation at the canvas, whilst the slideshow adds their transformation on top of that. Concretely, this method returns the user transform (implicitly calculated from the setViewSize() method), combined with the view transformation.

◆ getTranslationOffset()

virtual css::geometry::IntegerSize2D slideshow::internal::ViewLayer::getTranslationOffset ( ) const
pure virtual

◆ isOnView()

virtual bool slideshow::internal::ViewLayer::isOnView ( ViewSharedPtr const &  rView) const
pure virtual

Query whether layer displays on given view.

Returns
true, if this layer displays on the given view.

◆ resize()

virtual bool slideshow::internal::ViewLayer::resize ( const basegfx::B2DRange rArea)
pure virtual

Resize this view layer.

Parameters
rAreaNew area to cover. The area is interpreted in the user coordinate system, i.e. relative to the size as given by setViewSize() on the corresponding View.
Returns
true, if layer was actually resized (which invalidates its content)

◆ setClip()

virtual void slideshow::internal::ViewLayer::setClip ( const basegfx::B2DPolyPolygon rClip)
pure virtual

Set clipping on this view layer.

Parameters
rClipClip poly-polygon to set. The polygon is interpreted in the user coordinate system, i.e. the view layer has the size as given by setViewSize() on its corresponding View.

◆ setPriority()

virtual void slideshow::internal::ViewLayer::setPriority ( const basegfx::B1DRange rRange)
pure virtual

Set the layer priority range.

This method influences the relative priority of this layer, i.e. the z position in relation to other layers on the parent view. The higher the priority range, the further in front the layer resides.

Parameters
rRangePriority range, must be in the range [0,1]

The documentation for this class was generated from the following file: