LibreOffice Module sd (master) 1
|
Collection of geometry related convenience functions. More...
#include <PresenterGeometryHelper.hxx>
Static Public Member Functions | |
static sal_Int32 | Round (const double nValue) |
static sal_Int32 | Floor (const double nValue) |
static sal_Int32 | Ceil (const double nValue) |
static css::awt::Rectangle | ConvertRectangle (const css::geometry::RealRectangle2D &rBox) |
Return the bounding box with integer coordinates of the given rectangle. More... | |
static css::awt::Rectangle | ConvertRectangleWithConstantSize (const css::geometry::RealRectangle2D &rBox) |
Convert the given rectangle to integer coordinates so that width and height remain constant when only the position changes. More... | |
static css::geometry::RealRectangle2D | ConvertRectangle (const css::awt::Rectangle &rBox) |
static css::awt::Rectangle | TranslateRectangle (const css::awt::Rectangle &rBox, const sal_Int32 nXOffset, const sal_Int32 nYOffset) |
static css::awt::Rectangle | Intersection (const css::awt::Rectangle &rBox1, const css::awt::Rectangle &rBox2) |
static css::geometry::RealRectangle2D | Intersection (const css::geometry::RealRectangle2D &rBox1, const css::geometry::RealRectangle2D &rBox2) |
static bool | IsInside (const css::geometry::RealRectangle2D &rBox, const css::geometry::RealPoint2D &rPoint) |
static bool | IsInside (const css::awt::Rectangle &rBox1, const css::awt::Rectangle &rBox2) |
Return whether rBox1 is completely inside rBox2. More... | |
static css::geometry::RealRectangle2D | Union (const css::geometry::RealRectangle2D &rBox1, const css::geometry::RealRectangle2D &rBox2) |
static bool | AreRectanglesDisjoint (const css::awt::Rectangle &rBox1, const css::awt::Rectangle &rBox2) |
static css::uno::Reference< css::rendering::XPolyPolygon2D > | CreatePolygon (const css::awt::Rectangle &rBox, const css::uno::Reference< css::rendering::XGraphicDevice > &rxDevice) |
static css::uno::Reference< css::rendering::XPolyPolygon2D > | CreatePolygon (const css::geometry::RealRectangle2D &rBox, const css::uno::Reference< css::rendering::XGraphicDevice > &rxDevice) |
static css::uno::Reference< css::rendering::XPolyPolygon2D > | CreatePolygon (const ::std::vector< css::awt::Rectangle > &rBoxes, const css::uno::Reference< css::rendering::XGraphicDevice > &rxDevice) |
Collection of geometry related convenience functions.
Definition at line 33 of file PresenterGeometryHelper.hxx.
|
static |
Definition at line 171 of file PresenterGeometryHelper.cxx.
Referenced by sdext::presenter::PresenterScrollBar::Paint(), sdext::presenter::PresenterSlideSorter::Paint(), sdext::presenter::PresenterUIPainter::PaintHorizontalBitmapComposite(), sdext::presenter::PresenterSlideSorter::PaintPreview(), and sdext::presenter::PresenterUIPainter::PaintVerticalBitmapComposite().
|
static |
Definition at line 61 of file PresenterGeometryHelper.cxx.
References nValue.
|
static |
Definition at line 91 of file PresenterGeometryHelper.cxx.
|
static |
Return the bounding box with integer coordinates of the given rectangle.
Note that due to different rounding of the left/top and the right/bottom border the width of the resulting rectangle may differ for different positions but constant width and height.
Referenced by sdext::presenter::PresenterSlideSorter::Layout::GetBoundingBox(), sdext::presenter::PresenterNotesView::Invalidate(), sdext::presenter::PresenterSlideSorter::Paint(), sdext::presenter::PresenterScrollBar::PaintBitmap(), sdext::presenter::PresenterVerticalScrollBar::PaintComposite(), sdext::presenter::PresenterSlideSorter::PaintPreview(), sdext::presenter::PresenterNotesView::PaintText(), and sdext::presenter::PresenterScrollBar::Repaint().
|
static |
Convert the given rectangle to integer coordinates so that width and height remain constant when only the position changes.
Definition at line 81 of file PresenterGeometryHelper.cxx.
References Round().
Referenced by sdext::presenter::PresenterVerticalScrollBar::PaintComposite().
|
static |
|
static |
Referenced by sdext::presenter::PresenterSlideShowView::clear(), sdext::presenter::PresenterSlideShowView::CreateBackgroundPolygons(), sdext::presenter::PresenterHelpView::Paint(), sdext::presenter::PresenterTextView::Paint(), sdext::presenter::PresenterScrollBar::PaintBitmap(), sdext::presenter::PresenterCanvasHelper::PaintBitmap(), sdext::presenter::PresenterSlideSorter::CurrentSlideFrameRenderer::PaintBitmapTiled(), sdext::presenter::PresenterCanvasHelper::PaintColor(), sdext::presenter::PresenterSlideSorter::CurrentSlideFrameRenderer::PaintCurrentSlideFrame(), sdext::presenter::PresenterSlideShowView::PaintEndSlide(), sdext::presenter::PresenterUIPainter::PaintHorizontalBitmapComposite(), sdext::presenter::PresenterSlideShowView::PaintOuterWindow(), sdext::presenter::PresenterSlideSorter::PaintPreview(), sdext::presenter::PresenterCanvasHelper::PaintRectangle(), sdext::presenter::PresenterUIPainter::PaintVerticalBitmapComposite(), sdext::presenter::PresenterPaneBorderPainter::Renderer::SetupClipping(), and sdext::presenter::PresenterButton::windowPaint().
|
static |
|
static |
Definition at line 56 of file PresenterGeometryHelper.cxx.
References nValue.
|
static |
Definition at line 109 of file PresenterGeometryHelper.cxx.
References Bottom, Height, Right, and Width.
Referenced by sdext::presenter::PresenterScrollBar::PaintBitmap(), sdext::presenter::PresenterSlideSorter::CurrentSlideFrameRenderer::PaintBitmapTiled(), sdext::presenter::PresenterUIPainter::PaintHorizontalBitmapComposite(), sdext::presenter::PresenterSlideSorter::PaintPreview(), sdext::presenter::PresenterCanvasHelper::PaintRectangle(), sdext::presenter::PresenterNotesView::PaintText(), sdext::presenter::PresenterUIPainter::PaintVerticalBitmapComposite(), and sdext::presenter::PresenterPaneBorderPainter::Renderer::SetupClipping().
|
static |
|
static |
Return whether rBox1 is completely inside rBox2.
Definition at line 147 of file PresenterGeometryHelper.cxx.
|
static |
Definition at line 137 of file PresenterGeometryHelper.cxx.
Referenced by sdext::presenter::PresenterScrollBar::GetArea(), sdext::presenter::PresenterSlideSorter::Layout::GetSlideIndexForPosition(), and sdext::presenter::PresenterCanvasHelper::PaintTiledBitmap().
|
static |
Definition at line 66 of file PresenterGeometryHelper.cxx.
References nValue.
Referenced by ConvertRectangleWithConstantSize(), and sdext::presenter::PresenterTextView::Paint().
|
static |
Definition at line 101 of file PresenterGeometryHelper.cxx.
|
static |
Definition at line 157 of file PresenterGeometryHelper.cxx.
Referenced by sdext::presenter::PresenterVerticalScrollBar::UpdateBorders().