LibreOffice Module svx (master) 1
|
#include <overlaymanager.hxx>
Public Member Functions | |
drawinglayer::geometry::ViewInformation2D const & | getCurrentViewInformation2D () const |
virtual void | completeRedraw (const vcl::Region &rRegion, OutputDevice *pPreRenderDevice=nullptr) const |
virtual void | flush () |
OutputDevice & | getOutputDevice () const |
void | add (OverlayObject &rOverlayObject) |
void | remove (OverlayObject &rOverlayObject) |
virtual void | invalidateRange (const basegfx::B2DRange &rRange) |
const Color & | getStripeColorA () const |
void | setStripeColorA (Color aNew) |
const Color & | getStripeColorB () const |
void | setStripeColorB (Color aNew) |
sal_uInt32 | getStripeLengthPixel () const |
void | setStripeLengthPixel (sal_uInt32 nNew) |
void | InsertEvent (sdr::animation::Event &rNew) |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Static Public Member Functions | |
static rtl::Reference< OverlayManager > | create (OutputDevice &rOutputDevice) |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions | |
void | ImpDrawMembers (const basegfx::B2DRange &rRange, OutputDevice &rDestinationDevice) const |
void | ImpStripeDefinitionChanged () |
void | impApplyRemoveActions (OverlayObject &rTarget) |
void | impApplyAddActions (OverlayObject &rTarget) |
double | getDiscreteOne () const |
tools::Rectangle | RangeToInvalidateRectangle (const basegfx::B2DRange &rRange) const |
OverlayManager (OutputDevice &rOutputDevice) | |
virtual | ~OverlayManager () override |
Protected Member Functions inherited from sdr::animation::Scheduler | |
SAL_DLLPRIVATE | Scheduler () |
virtual | ~Scheduler () override |
virtual void | Invoke () override |
SAL_DLLPRIVATE sal_uInt32 | GetTime () const |
SAL_DLLPRIVATE void | SetTime (sal_uInt32 nTime) |
SAL_DLLPRIVATE void | triggerEvents () |
SAL_DLLPRIVATE void | checkTimeout () |
void | InsertEvent (Event &rNew) |
SAL_DLLPRIVATE void | RemoveEvent (Event *pOld) |
SAL_DLLPRIVATE bool | IsPaused () const |
SAL_DLLPRIVATE void | SetPaused (bool bNew) |
Protected Member Functions inherited from Timer | |
virtual void | SetDeletionFlags () override |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const override |
Timer (bool bAuto, const char *pDebugName) | |
Timer (const char *pDebugName) | |
Timer (const Timer &rTimer) | |
virtual | ~Timer () override |
Timer & | operator= (const Timer &rTimer) |
virtual void | Invoke () override |
void | Invoke (Timer *arg) |
void | SetInvokeHandler (const Link< Timer *, void > &rLink) |
void | ClearInvokeHandler () |
void | SetTimeout (sal_uInt64 nTimeoutMs) |
sal_uInt64 | GetTimeout () const |
virtual void | Start (bool bStartTimer=true) override |
Protected Member Functions inherited from Task | |
const ImplSchedulerData * | GetSchedulerData () const |
virtual void | SetDeletionFlags () |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const=0 |
Task (const char *pDebugName) | |
Task (const Task &rTask) | |
virtual | ~Task () COVERITY_NOEXCEPT_FALSE |
Task & | operator= (const Task &rTask) |
void | SetPriority (TaskPriority ePriority) |
TaskPriority | GetPriority () const |
const char * | GetDebugName () const |
virtual void | Invoke ()=0 |
virtual void | Start (bool bStartTimer=true) |
void | Stop () |
bool | IsActive () const |
void | SetStatic () |
bool | IsStatic () const |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Protected Attributes | |
OutputDevice & | mrOutputDevice |
OverlayObjectVector | maOverlayObjects |
Color | maStripeColorA |
Color | maStripeColorB |
sal_uInt32 | mnStripeLengthPixel |
basegfx::B2DHomMatrix | maViewTransformation |
drawinglayer::geometry::ViewInformation2D | maViewInformation2D |
double | mfDiscreteOne |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Private Member Functions | |
OverlayManager (const OverlayManager &)=delete | |
OverlayManager & | operator= (const OverlayManager &)=delete |
Additional Inherited Members | |
Static Protected Member Functions inherited from Task | |
static void | StartTimer (sal_uInt64 nMS) |
Static Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Definition at line 47 of file overlaymanager.hxx.
|
privatedelete |
Referenced by create().
|
protected |
Definition at line 133 of file overlaymanager.cxx.
References COL_BLACK(), COL_WHITE(), drawinglayer::geometry::createViewInformation2D(), comphelper::makePropertyValue(), and maViewInformation2D.
|
overrideprotectedvirtual |
Definition at line 221 of file overlaymanager.cxx.
References impApplyRemoveActions(), and maOverlayObjects.
void sdr::overlay::OverlayManager::add | ( | OverlayObject & | rOverlayObject | ) |
Definition at line 264 of file overlaymanager.cxx.
References impApplyAddActions(), maOverlayObjects, and sdr::overlay::OverlayObject::mpOverlayManager.
Referenced by SdrDragMethod::insertNewlyCreatedOverlayObjectForSdrDragMethod(), and SdrHdl::insertNewlyCreatedOverlayObjectForSdrHdl().
|
virtual |
Reimplemented in sdr::overlay::OverlayManagerBuffered.
Definition at line 242 of file overlaymanager.cxx.
References vcl::unotools::b2DRectangleFromRectangle(), vcl::Region::GetBoundRect(), getOutputDevice(), ImpDrawMembers(), vcl::Region::IsEmpty(), maOverlayObjects, and rTarget.
Referenced by sdr::overlay::OverlayManagerBuffered::completeRedraw().
|
static |
Definition at line 148 of file overlaymanager.cxx.
References OverlayManager().
Referenced by SdrPaintView::CreateOverlayManager().
|
virtual |
Reimplemented in sdr::overlay::OverlayManagerBuffered.
Definition at line 259 of file overlaymanager.cxx.
drawinglayer::geometry::ViewInformation2D const & sdr::overlay::OverlayManager::getCurrentViewInformation2D | ( | ) | const |
Definition at line 153 of file overlaymanager.cxx.
References Size::getHeight(), getOutputDevice(), drawinglayer::geometry::ViewInformation2D::getViewport(), OutputDevice::GetViewTransformation(), Size::getWidth(), Size::Height(), maViewInformation2D, maViewTransformation, mfDiscreteOne, OUTDEV_WINDOW, drawinglayer::geometry::ViewInformation2D::setViewport(), drawinglayer::geometry::ViewInformation2D::setViewTransformation(), basegfx::B2DRange::transform(), and Size::Width().
Referenced by ImpDrawMembers(), sdr::overlay::OverlayManagerBuffered::invalidateRange(), sdr::overlay::OverlayObjectList::isHitLogic(), and RangeToInvalidateRectangle().
|
protected |
Definition at line 122 of file overlaymanager.cxx.
References basegfx::fTools::equalZero(), basegfx::B2DVector::getLength(), getOutputDevice(), and mfDiscreteOne.
Referenced by sdr::overlay::OverlayManagerBuffered::invalidateRange(), and RangeToInvalidateRectangle().
|
inline |
Definition at line 102 of file overlaymanager.hxx.
Referenced by completeRedraw(), getCurrentViewInformation2D(), getDiscreteOne(), sdr::overlay::OverlayManagerBuffered::ImpPrepareBufferDevice(), sdr::overlay::OverlayManagerBuffered::ImpRestoreBackground(), sdr::overlay::OverlayManagerBuffered::ImpSaveBackground(), invalidateRange(), sdr::overlay::OverlayManagerBuffered::invalidateRange(), sdr::overlay::OverlayObjectList::isHitLogic(), and sdr::overlay::OverlayObjectList::isHitPixel().
|
inline |
Definition at line 112 of file overlaymanager.hxx.
|
inline |
Definition at line 116 of file overlaymanager.hxx.
|
inline |
Definition at line 120 of file overlaymanager.hxx.
|
protected |
Definition at line 202 of file overlaymanager.cxx.
References sdr::animation::Scheduler::GetTime(), invalidateRange(), and rTarget.
Referenced by add().
|
protected |
Definition at line 186 of file overlaymanager.cxx.
References invalidateRange(), sdr::animation::Scheduler::RemoveEvent(), and rTarget.
Referenced by remove(), and ~OverlayManager().
|
protected |
Definition at line 41 of file overlaymanager.cxx.
References sdr::overlay::OverlayObject::allowsAntiAliase(), drawinglayer::processor2d::createProcessor2DFromOutputDevice(), OutputDevice::GetAntialiasing(), sdr::overlay::OverlayObject::getBaseRange(), getCurrentViewInformation2D(), OutputDevice::GetDrawMode(), sdr::overlay::OverlayObject::getOverlayObjectPrimitive2DSequence(), sdr::overlay::OverlayObject::isHighContrastSelection(), sdr::overlay::OverlayObject::isVisible(), maOverlayObjects, basegfx::Range2D< typename TYPE, typename TRAITS >::overlaps(), OutputDevice::SetAntialiasing(), and OutputDevice::SetDrawMode().
Referenced by completeRedraw(), and sdr::overlay::IMPL_LINK_NOARG().
|
protected |
Definition at line 107 of file overlaymanager.cxx.
References maOverlayObjects, and sdr::overlay::OverlayObject::stripeDefinitionHasChanged().
Referenced by setStripeColorA(), setStripeColorB(), and setStripeLengthPixel().
|
inline |
Definition at line 123 of file overlaymanager.hxx.
Referenced by sdr::overlay::OverlayAnimatedBitmapEx::Trigger(), and sdr::overlay::OverlayRectangle::Trigger().
|
virtual |
Reimplemented in sdr::overlay::OverlayManagerBuffered.
Definition at line 320 of file overlaymanager.cxx.
References getOutputDevice(), OutputDevice::GetOwnerWindow(), vcl::Window::Invalidate(), OUTDEV_WINDOW, and RangeToInvalidateRectangle().
Referenced by impApplyAddActions(), impApplyRemoveActions(), and sdr::overlay::OverlayObject::objectChange().
|
privatedelete |
|
protected |
Definition at line 293 of file overlaymanager.cxx.
References getCurrentViewInformation2D(), getDiscreteOne(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), and basegfx::Range2D< typename TYPE, typename TRAITS >::isEmpty().
Referenced by invalidateRange().
void sdr::overlay::OverlayManager::remove | ( | OverlayObject & | rOverlayObject | ) |
Definition at line 275 of file overlaymanager.cxx.
References impApplyRemoveActions(), maOverlayObjects, and sdr::overlay::OverlayObject::mpOverlayManager.
Referenced by sdr::overlay::OverlaySelection::~OverlaySelection().
void sdr::overlay::OverlayManager::setStripeColorA | ( | Color | aNew | ) |
Definition at line 331 of file overlaymanager.cxx.
References ImpStripeDefinitionChanged(), and maStripeColorA.
void sdr::overlay::OverlayManager::setStripeColorB | ( | Color | aNew | ) |
Definition at line 341 of file overlaymanager.cxx.
References ImpStripeDefinitionChanged(), and maStripeColorB.
void sdr::overlay::OverlayManager::setStripeLengthPixel | ( | sal_uInt32 | nNew | ) |
Definition at line 351 of file overlaymanager.cxx.
References ImpStripeDefinitionChanged(), and mnStripeLengthPixel.
|
protected |
Definition at line 60 of file overlaymanager.hxx.
Referenced by add(), completeRedraw(), ImpDrawMembers(), ImpStripeDefinitionChanged(), remove(), and ~OverlayManager().
|
protected |
Definition at line 64 of file overlaymanager.hxx.
Referenced by setStripeColorA().
|
protected |
Definition at line 65 of file overlaymanager.hxx.
Referenced by setStripeColorB().
|
protected |
Definition at line 71 of file overlaymanager.hxx.
Referenced by getCurrentViewInformation2D(), and OverlayManager().
|
protected |
Definition at line 70 of file overlaymanager.hxx.
Referenced by getCurrentViewInformation2D().
|
protected |
Definition at line 72 of file overlaymanager.hxx.
Referenced by getCurrentViewInformation2D(), and getDiscreteOne().
|
protected |
Definition at line 66 of file overlaymanager.hxx.
Referenced by setStripeLengthPixel().
|
protected |
Definition at line 57 of file overlaymanager.hxx.