LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Svx3DLightControl Class Referencefinal

#include <dlgctl3d.hxx>

Inheritance diagram for Svx3DLightControl:
[legend]
Collaboration diagram for Svx3DLightControl:
[legend]

Public Member Functions

 Svx3DLightControl ()
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual tools::Rectangle GetFocusRect () override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual void Resize () override
 
virtual void SetObjectType (SvxPreviewObjectType nType) override
 
void SetChangeCallback (Link< Svx3DLightControl *, void > aNew)
 
void SetSelectionChangeCallback (Link< Svx3DLightControl *, void > aNew)
 
bool IsSelectionValid ()
 
bool IsGeometrySelected () const
 
void GetPosition (double &rHor, double &rVer)
 
void SetPosition (double fHor, double fVer)
 
void SetRotation (double fRotX, double fRotY, double fRotZ)
 
void GetRotation (double &rRotX, double &rRotY, double &rRotZ)
 
void SelectLight (sal_uInt32 nLightNumber)
 
virtual void Set3DAttributes (const SfxItemSet &rAttr) override
 
sal_uInt32 GetSelectedLight () const
 
bool GetLightOnOff (sal_uInt32 nNum) const
 
Color GetLightColor (sal_uInt32 nNum) const
 
basegfx::B3DVector GetLightDirection (sal_uInt32 nNum) const
 
- Public Member Functions inherited from Svx3DPreviewControl
 Svx3DPreviewControl ()
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual ~Svx3DPreviewControl () override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual void Resize () override
 
virtual void SetObjectType (SvxPreviewObjectType nType)
 
SvxPreviewObjectType GetObjectType () const
 
SfxItemSet const & Get3DAttributes () const
 
virtual void Set3DAttributes (const SfxItemSet &rAttr)
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0
 
virtual void Resize ()
 
virtual bool MouseButtonDown (const MouseEvent &)
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
virtual tools::Rectangle GetFocusRect ()
 
virtual FactoryFunction GetUITestFactory () const
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void SetCursor (void *pData)
 
void GrabFocus ()
 
bool HasFocus () const
 
bool HasChildFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
void Enable () const
 
void Disable () const
 
bool IsActive () const
 
int GetTextHeight () const
 
int GetTextWidth (const OUString &rText) const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
Point GetPointerPosPixel () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OUString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void SetInputContext (const InputContext &rInputContext)
 
void SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth)
 
virtual int GetSurroundingText (OUString &)
 
virtual bool DeleteSurroundingText (const Selection &)
 
css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget ()
 
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const
 
void SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants)
 
virtual bool StartDrag ()
 
void set_size_request (int nWidth, int nHeight)
 
void queue_resize ()
 
 CustomWidgetController ()
 
virtual ~CustomWidgetController ()
 
 CustomWidgetController (CustomWidgetController const &)=default
 
 CustomWidgetController (CustomWidgetController &&)=default
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 

Private Member Functions

void Construct2 ()
 
void ConstructLightObjects ()
 
void AdaptToSelectedLight ()
 
void TrySelection (Point aPosPixel)
 

Private Attributes

Link< Svx3DLightControl *, void > maChangeCallback
 
Link< Svx3DLightControl *, void > maSelectionChangeCallback
 
sal_uInt32 maSelectedLight
 
rtl::Reference< E3dObjectmpExpansionObject
 
rtl::Reference< E3dObjectmpLampBottomObject
 
rtl::Reference< E3dObjectmpLampShaftObject
 
std::vector< E3dObject * > maLightObjects
 
double mfRotateX
 
double mfRotateY
 
double mfRotateZ
 
Point maActionStartPoint
 
double mfSaveActionStartHor
 
double mfSaveActionStartVer
 
double mfSaveActionStartRotZ
 
bool mbMouseMoved: 1
 
bool mbMouseCaptured: 1
 
bool mbGeometrySelected: 1
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 
- Protected Member Functions inherited from Svx3DPreviewControl
void Construct ()
 
- Protected Attributes inherited from Svx3DPreviewControl
std::unique_ptr< FmFormModelmpModel
 
rtl::Reference< FmFormPagemxFmPage
 
std::unique_ptr< E3dViewmp3DView
 
rtl::Reference< E3dScenempScene
 
rtl::Reference< E3dObjectmp3DObj
 
SvxPreviewObjectType mnObjectType
 

Detailed Description

Definition at line 65 of file dlgctl3d.hxx.

Constructor & Destructor Documentation

◆ Svx3DLightControl()

Svx3DLightControl::Svx3DLightControl ( )

Definition at line 243 of file dlgctl3d.cxx.

References mbMouseCaptured.

Member Function Documentation

◆ AdaptToSelectedLight()

void Svx3DLightControl::AdaptToSelectedLight ( )
private

◆ Construct2()

void Svx3DLightControl::Construct2 ( )
private

◆ ConstructLightObjects()

void Svx3DLightControl::ConstructLightObjects ( )
private

◆ GetFocusRect()

tools::Rectangle Svx3DLightControl::GetFocusRect ( )
overridevirtual

◆ GetLightColor()

Color Svx3DLightControl::GetLightColor ( sal_uInt32  nNum) const

◆ GetLightDirection()

basegfx::B3DVector Svx3DLightControl::GetLightDirection ( sal_uInt32  nNum) const

◆ GetLightOnOff()

bool Svx3DLightControl::GetLightOnOff ( sal_uInt32  nNum) const

◆ GetPosition()

void Svx3DLightControl::GetPosition ( double &  rHor,
double &  rVer 
)

◆ GetRotation()

void Svx3DLightControl::GetRotation ( double &  rRotX,
double &  rRotY,
double &  rRotZ 
)

Definition at line 792 of file dlgctl3d.cxx.

References mfRotateX, mfRotateY, and mfRotateZ.

Referenced by MouseMove().

◆ GetSelectedLight()

sal_uInt32 Svx3DLightControl::GetSelectedLight ( ) const
inline

Definition at line 131 of file dlgctl3d.hxx.

◆ IsGeometrySelected()

bool Svx3DLightControl::IsGeometrySelected ( ) const
inline

Definition at line 119 of file dlgctl3d.hxx.

Referenced by SvxLightCtl3D::CheckSelection(), GetPosition(), SetPosition(), and SetRotation().

◆ IsSelectionValid()

bool Svx3DLightControl::IsSelectionValid ( )

◆ MouseButtonDown()

bool Svx3DLightControl::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual

◆ MouseButtonUp()

bool Svx3DLightControl::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual

◆ MouseMove()

bool Svx3DLightControl::MouseMove ( const MouseEvent rMEvt)
overridevirtual

◆ Paint()

void Svx3DLightControl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual

Reimplemented from Svx3DPreviewControl.

Definition at line 515 of file dlgctl3d.cxx.

References Svx3DPreviewControl::Paint().

◆ Resize()

void Svx3DLightControl::Resize ( )
overridevirtual

◆ SelectLight()

void Svx3DLightControl::SelectLight ( sal_uInt32  nLightNumber)

◆ Set3DAttributes()

void Svx3DLightControl::Set3DAttributes ( const SfxItemSet rAttr)
overridevirtual

◆ SetChangeCallback()

void Svx3DLightControl::SetChangeCallback ( Link< Svx3DLightControl *, void >  aNew)
inline

Definition at line 114 of file dlgctl3d.hxx.

Referenced by SvxLightCtl3D::Init().

◆ SetDrawingArea()

void Svx3DLightControl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

Reimplemented from Svx3DPreviewControl.

Definition at line 258 of file dlgctl3d.cxx.

References Construct2(), and Svx3DPreviewControl::SetDrawingArea().

◆ SetObjectType()

void Svx3DLightControl::SetObjectType ( SvxPreviewObjectType  nType)
overridevirtual

◆ SetPosition()

void Svx3DLightControl::SetPosition ( double  fHor,
double  fVer 
)

◆ SetRotation()

void Svx3DLightControl::SetRotation ( double  fRotX,
double  fRotY,
double  fRotZ 
)

◆ SetSelectionChangeCallback()

void Svx3DLightControl::SetSelectionChangeCallback ( Link< Svx3DLightControl *, void >  aNew)
inline

Definition at line 115 of file dlgctl3d.hxx.

Referenced by SvxLightCtl3D::Init().

◆ TrySelection()

void Svx3DLightControl::TrySelection ( Point  aPosPixel)
private

Member Data Documentation

◆ maActionStartPoint

Point Svx3DLightControl::maActionStartPoint
private

Definition at line 86 of file dlgctl3d.hxx.

Referenced by MouseButtonDown(), and MouseMove().

◆ maChangeCallback

Link<Svx3DLightControl*,void> Svx3DLightControl::maChangeCallback
private

Definition at line 68 of file dlgctl3d.hxx.

Referenced by MouseMove().

◆ maLightObjects

std::vector< E3dObject* > Svx3DLightControl::maLightObjects
private

Definition at line 78 of file dlgctl3d.hxx.

Referenced by AdaptToSelectedLight(), ConstructLightObjects(), and TrySelection().

◆ maSelectedLight

sal_uInt32 Svx3DLightControl::maSelectedLight
private

◆ maSelectionChangeCallback

Link<Svx3DLightControl*,void> Svx3DLightControl::maSelectionChangeCallback
private

Definition at line 69 of file dlgctl3d.hxx.

Referenced by TrySelection().

◆ mbGeometrySelected

bool Svx3DLightControl::mbGeometrySelected
private

Definition at line 93 of file dlgctl3d.hxx.

Referenced by MouseButtonDown(), MouseMove(), SelectLight(), and TrySelection().

◆ mbMouseCaptured

bool Svx3DLightControl::mbMouseCaptured
private

Definition at line 92 of file dlgctl3d.hxx.

Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().

◆ mbMouseMoved

bool Svx3DLightControl::mbMouseMoved
private

Definition at line 91 of file dlgctl3d.hxx.

Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().

◆ mfRotateX

double Svx3DLightControl::mfRotateX
private

Definition at line 81 of file dlgctl3d.hxx.

Referenced by GetPosition(), GetRotation(), SetObjectType(), SetPosition(), and SetRotation().

◆ mfRotateY

double Svx3DLightControl::mfRotateY
private

Definition at line 82 of file dlgctl3d.hxx.

Referenced by GetPosition(), GetRotation(), SetObjectType(), SetPosition(), and SetRotation().

◆ mfRotateZ

double Svx3DLightControl::mfRotateZ
private

Definition at line 83 of file dlgctl3d.hxx.

Referenced by GetRotation(), SetObjectType(), SetPosition(), and SetRotation().

◆ mfSaveActionStartHor

double Svx3DLightControl::mfSaveActionStartHor
private

Definition at line 87 of file dlgctl3d.hxx.

Referenced by MouseMove().

◆ mfSaveActionStartRotZ

double Svx3DLightControl::mfSaveActionStartRotZ
private

Definition at line 89 of file dlgctl3d.hxx.

Referenced by MouseMove().

◆ mfSaveActionStartVer

double Svx3DLightControl::mfSaveActionStartVer
private

Definition at line 88 of file dlgctl3d.hxx.

Referenced by MouseMove().

◆ mpExpansionObject

rtl::Reference<E3dObject> Svx3DLightControl::mpExpansionObject
private

Definition at line 75 of file dlgctl3d.hxx.

Referenced by Construct2(), and TrySelection().

◆ mpLampBottomObject

rtl::Reference<E3dObject> Svx3DLightControl::mpLampBottomObject
private

Definition at line 76 of file dlgctl3d.hxx.

Referenced by AdaptToSelectedLight(), and Construct2().

◆ mpLampShaftObject

rtl::Reference<E3dObject> Svx3DLightControl::mpLampShaftObject
private

Definition at line 77 of file dlgctl3d.hxx.

Referenced by AdaptToSelectedLight(), and Construct2().


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