LibreOffice Module chart2 (master) 1
|
#include <DragMethod_RotateDiagram.hxx>
Public Types | |
enum | RotationDirection { ROTATIONDIRECTION_FREE , ROTATIONDIRECTION_X , ROTATIONDIRECTION_Y , ROTATIONDIRECTION_Z } |
Public Member Functions | |
DragMethod_RotateDiagram (DrawViewWrapper &rDrawViewWrapper, const OUString &rObjectCID, const rtl::Reference<::chart::ChartModel > &xChartModel, RotationDirection eRotationDirection) | |
virtual | ~DragMethod_RotateDiagram () override |
virtual OUString | GetSdrDragComment () const override |
virtual bool | BeginSdrDrag () override |
virtual void | MoveSdrDrag (const Point &rPnt) override |
virtual bool | EndSdrDrag (bool bCopy) override |
virtual void | CreateOverlayGeometry (sdr::overlay::OverlayManager &rOverlayManager, const sdr::contact::ObjectContact &rObjectContact) override |
Public Member Functions inherited from chart::DragMethod_Base | |
DragMethod_Base (DrawViewWrapper &rDrawViewWrapper, OUString aObjectCID, const rtl::Reference<::chart::ChartModel > &xChartModel, ActionDescriptionProvider::ActionType eActionType=ActionDescriptionProvider::ActionType::Move) | |
virtual | ~DragMethod_Base () override |
OUString | getUndoDescription () const |
virtual OUString | GetSdrDragComment () const override |
virtual PointerStyle | GetSdrDragPointer () const override |
Public Member Functions inherited from SdrDragMethod | |
void | resetSdrDragEntries () |
basegfx::B2DRange | getCurrentRange () const |
SdrDragMethod (SdrDragView &rNewView) | |
virtual | ~SdrDragMethod () |
void | Show () |
void | Hide () |
bool | IsShiftPressed () const |
void | SetShiftPressed (bool bShiftPressed) |
virtual OUString | GetSdrDragComment () const=0 |
virtual bool | BeginSdrDrag ()=0 |
virtual void | MoveSdrDrag (const Point &rPnt)=0 |
virtual bool | EndSdrDrag (bool bCopy)=0 |
virtual void | CancelSdrDrag () |
virtual PointerStyle | GetSdrDragPointer () const=0 |
virtual void | CreateOverlayGeometry (sdr::overlay::OverlayManager &rOverlayManager, const sdr::contact::ObjectContact &rObjectContact) |
void | destroyOverlayGeometry () |
virtual basegfx::B2DHomMatrix | getCurrentTransformation () const |
virtual void | applyCurrentTransformationToSdrObject (SdrObject &rTarget) |
virtual void | applyCurrentTransformationToPolyPolygon (basegfx::B2DPolyPolygon &rTarget) |
bool | getMoveOnly () const |
bool | getSolidDraggingActive () const |
Private Attributes | |
E3dScene * | m_pScene |
tools::Rectangle | m_aReferenceRect |
Point | m_aStartPos |
basegfx::B3DPolyPolygon | m_aWireframePolyPolygon |
double | m_fInitialXAngleRad |
double | m_fInitialYAngleRad |
double | m_fInitialZAngleRad |
double | m_fAdditionalXAngleRad |
double | m_fAdditionalYAngleRad |
double | m_fAdditionalZAngleRad |
sal_Int32 | m_nInitialHorizontalAngleDegree |
sal_Int32 | m_nInitialVerticalAngleDegree |
sal_Int32 | m_nAdditionalHorizontalAngleDegree |
sal_Int32 | m_nAdditionalVerticalAngleDegree |
RotationDirection | m_eRotationDirection |
bool | m_bRightAngledAxes |
Definition at line 31 of file DragMethod_RotateDiagram.hxx.
Enumerator | |
---|---|
ROTATIONDIRECTION_FREE | |
ROTATIONDIRECTION_X | |
ROTATIONDIRECTION_Y | |
ROTATIONDIRECTION_Z |
Definition at line 34 of file DragMethod_RotateDiagram.hxx.
chart::DragMethod_RotateDiagram::DragMethod_RotateDiagram | ( | DrawViewWrapper & | rDrawViewWrapper, |
const OUString & | rObjectCID, | ||
const rtl::Reference<::chart::ChartModel > & | xChartModel, | ||
RotationDirection | eRotationDirection | ||
) |
Definition at line 45 of file DragMethod_RotateDiagram.cxx.
References chart::ThreeDHelper::adaptRadAnglesForRightAngledAxes(), E3dObject::CreateWireframe(), chart::DragMethod_Base::getChartModel(), SdrObject::GetLogicRect(), chart::DrawViewWrapper::getNamedSdrObject(), chart::SelectionHelper::getSceneToRotate(), chart::DrawViewWrapper::getSelectedObject(), chart::ChartTypeHelper::isSupportingRightAngledAxes(), m_aReferenceRect, m_aWireframePolyPolygon, m_bRightAngledAxes, m_eRotationDirection, m_fInitialXAngleRad, m_fInitialYAngleRad, m_fInitialZAngleRad, m_nInitialHorizontalAngleDegree, m_nInitialVerticalAngleDegree, m_pScene, Rotate, ROTATIONDIRECTION_FREE, and ROTATIONDIRECTION_Z.
|
overridevirtual |
Definition at line 95 of file DragMethod_RotateDiagram.cxx.
|
overridevirtual |
Implements SdrDragMethod.
Definition at line 102 of file DragMethod_RotateDiagram.cxx.
References SdrDragMethod::DragStat(), SdrDragStat::GetStart(), m_aStartPos, and SdrDragMethod::Show().
|
overridevirtual |
Reimplemented from SdrDragMethod.
Definition at line 176 of file DragMethod_RotateDiagram.cxx.
References chart::ThreeDHelper::adaptRadAnglesForRightAngledAxes(), chart::ThreeDHelper::convertElevationRotationDegToXYZAngleRad(), basegfx::B3DPolyPolygon::count(), basegfx::utils::createB2DPolyPolygonFromB3DPolyPolygon(), FIXED_SIZE_FOR_3D_CHART_VOLUME, drawinglayer::geometry::ViewInformation3D::getDeviceToView(), sdr::contact::ViewContactOfE3dScene::getObjectTransformation(), drawinglayer::geometry::ViewInformation3D::getOrientation(), drawinglayer::geometry::ViewInformation3D::getProjection(), SdrObject::GetViewContact(), sdr::contact::ViewContactOfE3dScene::getViewInformation3D(), SdrDragMethod::insertNewlyCreatedOverlayObjectForSdrDragMethod(), m_aWireframePolyPolygon, m_bRightAngledAxes, m_eRotationDirection, m_fAdditionalXAngleRad, m_fAdditionalYAngleRad, m_fAdditionalZAngleRad, m_fInitialXAngleRad, m_fInitialYAngleRad, m_fInitialZAngleRad, m_nAdditionalHorizontalAngleDegree, m_nAdditionalVerticalAngleDegree, m_nInitialHorizontalAngleDegree, m_nInitialVerticalAngleDegree, m_pScene, basegfx::B3DHomMatrix::rotate(), ROTATIONDIRECTION_Z, basegfx::B3DHomMatrix::shearXY(), basegfx::B2DPolyPolygon::transform(), and basegfx::B3DHomMatrix::translate().
|
overridevirtual |
Implements SdrDragMethod.
Definition at line 149 of file DragMethod_RotateDiagram.cxx.
References chart::ThreeDHelper::adaptRadAnglesForRightAngledAxes(), chart::DragMethod_Base::getChartModel(), SdrDragMethod::Hide(), m_bRightAngledAxes, m_eRotationDirection, m_fAdditionalXAngleRad, m_fAdditionalYAngleRad, m_fAdditionalZAngleRad, m_fInitialXAngleRad, m_fInitialYAngleRad, m_fInitialZAngleRad, m_nAdditionalHorizontalAngleDegree, m_nAdditionalVerticalAngleDegree, m_nInitialHorizontalAngleDegree, m_nInitialVerticalAngleDegree, and ROTATIONDIRECTION_Z.
|
overridevirtual |
Reimplemented from chart::DragMethod_Base.
Definition at line 98 of file DragMethod_RotateDiagram.cxx.
|
overridevirtual |
Implements SdrDragMethod.
Definition at line 108 of file DragMethod_RotateDiagram.cxx.
References tools::Rectangle::Center(), SdrDragMethod::DragStat(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), SdrDragMethod::Hide(), m_aReferenceRect, m_aStartPos, m_eRotationDirection, m_fAdditionalXAngleRad, m_fAdditionalYAngleRad, m_fAdditionalZAngleRad, m_nAdditionalHorizontalAngleDegree, m_nAdditionalVerticalAngleDegree, SdrDragStat::NextMove(), basegfx::rad2deg(), ROTATIONDIRECTION_X, ROTATIONDIRECTION_Y, ROTATIONDIRECTION_Z, SdrDragMethod::Show(), Point::X(), and Point::Y().
|
private |
Definition at line 62 of file DragMethod_RotateDiagram.hxx.
Referenced by DragMethod_RotateDiagram(), and MoveSdrDrag().
|
private |
Definition at line 63 of file DragMethod_RotateDiagram.hxx.
Referenced by BeginSdrDrag(), and MoveSdrDrag().
|
private |
Definition at line 64 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), and DragMethod_RotateDiagram().
|
private |
Definition at line 81 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), DragMethod_RotateDiagram(), and EndSdrDrag().
|
private |
Definition at line 80 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), DragMethod_RotateDiagram(), EndSdrDrag(), and MoveSdrDrag().
|
private |
Definition at line 70 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().
|
private |
Definition at line 71 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().
|
private |
Definition at line 72 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().
|
private |
Definition at line 66 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), DragMethod_RotateDiagram(), and EndSdrDrag().
|
private |
Definition at line 67 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), DragMethod_RotateDiagram(), and EndSdrDrag().
|
private |
Definition at line 68 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), DragMethod_RotateDiagram(), and EndSdrDrag().
|
private |
Definition at line 77 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().
|
private |
Definition at line 78 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().
|
private |
Definition at line 74 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), DragMethod_RotateDiagram(), and EndSdrDrag().
|
private |
Definition at line 75 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), DragMethod_RotateDiagram(), and EndSdrDrag().
|
private |
Definition at line 60 of file DragMethod_RotateDiagram.hxx.
Referenced by CreateOverlayGeometry(), and DragMethod_RotateDiagram().