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

#include <dlgctl3d.hxx>

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

Public Member Functions

 LightControl3D ()
 
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< LightControl3D *, void > aNew)
 
void SetSelectionChangeCallback (Link< LightControl3D *, 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 PreviewControl3D
 PreviewControl3D ()
 
virtual ~PreviewControl3D () 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
 
bool IsActive () const
 
int GetTextHeight () 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 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< LightControl3D *, voidmaChangeCallback
 
Link< LightControl3D *, 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 PreviewControl3D
void Construct ()
 
- Protected Attributes inherited from PreviewControl3D
std::unique_ptr< FmFormModelmpModel
 
FmFormPagempFmPage
 
std::unique_ptr< E3dViewmp3DView
 
E3dScenempScene
 
E3dObjectmp3DObj
 
SvxPreviewObjectType mnObjectType
 

Detailed Description

Definition at line 167 of file dlgctl3d.hxx.

Constructor & Destructor Documentation

LightControl3D::LightControl3D ( )

Definition at line 1125 of file dlgctl3d.cxx.

Member Function Documentation

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

Definition at line 1681 of file dlgctl3d.cxx.

References mfRotateX, mfRotateY, and mfRotateZ.

Referenced by MouseMove().

sal_uInt32 LightControl3D::GetSelectedLight ( ) const
inline

Definition at line 233 of file dlgctl3d.hxx.

bool LightControl3D::IsGeometrySelected ( ) const
inline

Definition at line 221 of file dlgctl3d.hxx.

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

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

Reimplemented from PreviewControl3D.

Definition at line 1406 of file dlgctl3d.cxx.

References PreviewControl3D::Paint().

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

Definition at line 216 of file dlgctl3d.hxx.

Referenced by LightCtl3D::Init().

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

Reimplemented from PreviewControl3D.

Definition at line 1146 of file dlgctl3d.cxx.

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

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

Definition at line 217 of file dlgctl3d.hxx.

Referenced by LightCtl3D::Init().

void LightControl3D::TrySelection ( Point  aPosPixel)
private

Member Data Documentation

Point LightControl3D::maActionStartPoint
private

Definition at line 188 of file dlgctl3d.hxx.

Referenced by MouseButtonDown(), and MouseMove().

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

Definition at line 170 of file dlgctl3d.hxx.

Referenced by MouseMove().

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

Definition at line 180 of file dlgctl3d.hxx.

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

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

Definition at line 171 of file dlgctl3d.hxx.

Referenced by TrySelection().

bool LightControl3D::mbGeometrySelected
private

Definition at line 195 of file dlgctl3d.hxx.

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

bool LightControl3D::mbMouseCaptured
private

Definition at line 194 of file dlgctl3d.hxx.

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

bool LightControl3D::mbMouseMoved
private

Definition at line 193 of file dlgctl3d.hxx.

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

double LightControl3D::mfRotateX
private

Definition at line 183 of file dlgctl3d.hxx.

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

double LightControl3D::mfRotateY
private

Definition at line 184 of file dlgctl3d.hxx.

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

double LightControl3D::mfRotateZ
private

Definition at line 185 of file dlgctl3d.hxx.

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

double LightControl3D::mfSaveActionStartHor
private

Definition at line 189 of file dlgctl3d.hxx.

Referenced by MouseMove().

double LightControl3D::mfSaveActionStartRotZ
private

Definition at line 191 of file dlgctl3d.hxx.

Referenced by MouseMove().

double LightControl3D::mfSaveActionStartVer
private

Definition at line 190 of file dlgctl3d.hxx.

Referenced by MouseMove().

E3dObject* LightControl3D::mpExpansionObject
private

Definition at line 177 of file dlgctl3d.hxx.

Referenced by Construct2(), and TrySelection().

E3dObject* LightControl3D::mpLampBottomObject
private

Definition at line 178 of file dlgctl3d.hxx.

Referenced by AdaptToSelectedLight(), and Construct2().

E3dObject* LightControl3D::mpLampShaftObject
private

Definition at line 179 of file dlgctl3d.hxx.

Referenced by AdaptToSelectedLight(), and Construct2().


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