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 ~Svx3DPreviewControl () override
 
SvxPreviewObjectType GetObjectType () const
 
SfxItemSet const & Get3DAttributes () const
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
virtual FactoryFunction GetUITestFactory () const
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void GrabFocus ()
 
bool HasFocus () 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
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void SetDragDataTransferrable (rtl::Reference< TransferDataContainer > &rTransferrable, 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 *, voidmaChangeCallback
 
Link< Svx3DLightControl *, voidmaSelectionChangeCallback
 
sal_uInt32 maSelectedLight
 
E3dObjectmpExpansionObject
 
E3dObjectmpLampBottomObject
 
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
 
FmFormPagempFmPage
 
std::unique_ptr< E3dViewmp3DView
 
E3dScenempScene
 
E3dObjectmp3DObj
 
SvxPreviewObjectType mnObjectType
 

Detailed Description

Definition at line 65 of file dlgctl3d.hxx.

Constructor & Destructor Documentation

Svx3DLightControl::Svx3DLightControl ( )

Definition at line 247 of file dlgctl3d.cxx.

References mbMouseCaptured.

Member Function Documentation

void Svx3DLightControl::AdaptToSelectedLight ( )
private
void Svx3DLightControl::Construct2 ( )
private
void Svx3DLightControl::ConstructLightObjects ( )
private
tools::Rectangle Svx3DLightControl::GetFocusRect ( )
overridevirtual
Color Svx3DLightControl::GetLightColor ( sal_uInt32  nNum) const
basegfx::B3DVector Svx3DLightControl::GetLightDirection ( sal_uInt32  nNum) const
bool Svx3DLightControl::GetLightOnOff ( sal_uInt32  nNum) const
void Svx3DLightControl::GetPosition ( double &  rHor,
double &  rVer 
)
void Svx3DLightControl::GetRotation ( double &  rRotX,
double &  rRotY,
double &  rRotZ 
)

Definition at line 805 of file dlgctl3d.cxx.

References mfRotateX, mfRotateY, and mfRotateZ.

Referenced by MouseMove().

sal_uInt32 Svx3DLightControl::GetSelectedLight ( ) const
inline

Definition at line 131 of file dlgctl3d.hxx.

bool Svx3DLightControl::IsGeometrySelected ( ) const
inline

Definition at line 119 of file dlgctl3d.hxx.

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

bool Svx3DLightControl::IsSelectionValid ( )
bool Svx3DLightControl::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual
bool Svx3DLightControl::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual
bool Svx3DLightControl::MouseMove ( const MouseEvent rMEvt)
overridevirtual
void Svx3DLightControl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual

Reimplemented from Svx3DPreviewControl.

Definition at line 528 of file dlgctl3d.cxx.

References Svx3DPreviewControl::Paint().

void Svx3DLightControl::Resize ( )
overridevirtual
void Svx3DLightControl::SelectLight ( sal_uInt32  nLightNumber)
void Svx3DLightControl::Set3DAttributes ( const SfxItemSet rAttr)
overridevirtual
void Svx3DLightControl::SetChangeCallback ( Link< Svx3DLightControl *, void aNew)
inline

Definition at line 114 of file dlgctl3d.hxx.

Referenced by SvxLightCtl3D::Init().

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

Reimplemented from Svx3DPreviewControl.

Definition at line 268 of file dlgctl3d.cxx.

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

void Svx3DLightControl::SetObjectType ( SvxPreviewObjectType  nType)
overridevirtual
void Svx3DLightControl::SetPosition ( double  fHor,
double  fVer 
)
void Svx3DLightControl::SetRotation ( double  fRotX,
double  fRotY,
double  fRotZ 
)
void Svx3DLightControl::SetSelectionChangeCallback ( Link< Svx3DLightControl *, void aNew)
inline

Definition at line 115 of file dlgctl3d.hxx.

Referenced by SvxLightCtl3D::Init().

void Svx3DLightControl::TrySelection ( Point  aPosPixel)
private

Member Data Documentation

Point Svx3DLightControl::maActionStartPoint
private

Definition at line 86 of file dlgctl3d.hxx.

Referenced by MouseButtonDown(), and MouseMove().

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

Definition at line 68 of file dlgctl3d.hxx.

Referenced by MouseMove().

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

Definition at line 78 of file dlgctl3d.hxx.

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

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

Definition at line 69 of file dlgctl3d.hxx.

Referenced by TrySelection().

bool Svx3DLightControl::mbGeometrySelected
private

Definition at line 93 of file dlgctl3d.hxx.

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

bool Svx3DLightControl::mbMouseCaptured
private

Definition at line 92 of file dlgctl3d.hxx.

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

bool Svx3DLightControl::mbMouseMoved
private

Definition at line 91 of file dlgctl3d.hxx.

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

double Svx3DLightControl::mfRotateX
private

Definition at line 81 of file dlgctl3d.hxx.

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

double Svx3DLightControl::mfRotateY
private

Definition at line 82 of file dlgctl3d.hxx.

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

double Svx3DLightControl::mfRotateZ
private

Definition at line 83 of file dlgctl3d.hxx.

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

double Svx3DLightControl::mfSaveActionStartHor
private

Definition at line 87 of file dlgctl3d.hxx.

Referenced by MouseMove().

double Svx3DLightControl::mfSaveActionStartRotZ
private

Definition at line 89 of file dlgctl3d.hxx.

Referenced by MouseMove().

double Svx3DLightControl::mfSaveActionStartVer
private

Definition at line 88 of file dlgctl3d.hxx.

Referenced by MouseMove().

E3dObject* Svx3DLightControl::mpExpansionObject
private

Definition at line 75 of file dlgctl3d.hxx.

Referenced by Construct2(), and TrySelection().

E3dObject* Svx3DLightControl::mpLampBottomObject
private

Definition at line 76 of file dlgctl3d.hxx.

Referenced by AdaptToSelectedLight(), and Construct2().

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: