LibreOffice Module chart2 (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
chart::DragMethod_RotateDiagram Class Reference

#include <DragMethod_RotateDiagram.hxx>

Inheritance diagram for chart::DragMethod_RotateDiagram:
[legend]
Collaboration diagram for chart::DragMethod_RotateDiagram:
[legend]

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

E3dScenem_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
 

Additional Inherited Members

- Protected Member Functions inherited from chart::DragMethod_Base
rtl::Reference<::chart::ChartModel > getChartModel () const
 
- Protected Member Functions inherited from SdrDragMethod
void clearSdrDragEntries ()
 
void addSdrDragEntry (std::unique_ptr< SdrDragEntry > pNew)
 
virtual void createSdrDragEntries ()
 
virtual void createSdrDragEntryForSdrObject (const SdrObject &rOriginal)
 
void insertNewlyCreatedOverlayObjectForSdrDragMethod (std::unique_ptr< sdr::overlay::OverlayObject > pOverlayObject, const sdr::contact::ObjectContact &rObjectContact, sdr::overlay::OverlayManager &rOverlayManager)
 
SdrDragViewgetSdrDragView ()
 
const SdrDragViewgetSdrDragView () const
 
void setMoveOnly (bool bNew)
 
void setSolidDraggingActive (bool bNew)
 
void createSdrDragEntries_SolidDrag ()
 
void createSdrDragEntries_PolygonDrag ()
 
void createSdrDragEntries_PointDrag ()
 
void createSdrDragEntries_GlueDrag ()
 
OUString ImpGetDescriptionStr (TranslateId pStrCacheID) const
 
SdrHdlGetDragHdl () const
 
SdrHdlKind GetDragHdlKind () const
 
SdrDragStatDragStat ()
 
const SdrDragStatDragStat () const
 
PointRef1 () const
 
PointRef2 () const
 
const SdrHdlListGetHdlList () const
 
void AddUndo (std::unique_ptr< SdrUndoAction > pUndo)
 
bool IsDragLimit ()
 
const tools::RectangleGetDragLimitRect ()
 
const SdrMarkListGetMarkedObjectList ()
 
Point GetSnapPos (const Point &rPt) const
 
SdrSnap SnapPos (Point &rPt) const
 
const tools::RectangleGetMarkedRect () const
 
SdrPageViewGetDragPV () const
 
SdrObjectGetDragObj () const
 
bool IsDraggingPoints () const
 
bool IsDraggingGluePoints () const
 
bool DoAddConnectorOverlays ()
 
drawinglayer::primitive2d::Primitive2DContainer AddConnectorOverlays ()
 
- Protected Attributes inherited from chart::DragMethod_Base
DrawViewWrapperm_rDrawViewWrapper
 
OUString m_aObjectCID
 
ActionDescriptionProvider::ActionType m_eActionType
 

Detailed Description

Definition at line 31 of file DragMethod_RotateDiagram.hxx.

Member Enumeration Documentation

◆ RotationDirection

Enumerator
ROTATIONDIRECTION_FREE 
ROTATIONDIRECTION_X 
ROTATIONDIRECTION_Y 
ROTATIONDIRECTION_Z 

Definition at line 34 of file DragMethod_RotateDiagram.hxx.

Constructor & Destructor Documentation

◆ DragMethod_RotateDiagram()

chart::DragMethod_RotateDiagram::DragMethod_RotateDiagram ( DrawViewWrapper rDrawViewWrapper,
const OUString &  rObjectCID,
const rtl::Reference<::chart::ChartModel > &  xChartModel,
RotationDirection  eRotationDirection 
)

◆ ~DragMethod_RotateDiagram()

chart::DragMethod_RotateDiagram::~DragMethod_RotateDiagram ( )
overridevirtual

Definition at line 95 of file DragMethod_RotateDiagram.cxx.

Member Function Documentation

◆ BeginSdrDrag()

bool chart::DragMethod_RotateDiagram::BeginSdrDrag ( )
overridevirtual

◆ CreateOverlayGeometry()

void chart::DragMethod_RotateDiagram::CreateOverlayGeometry ( sdr::overlay::OverlayManager rOverlayManager,
const sdr::contact::ObjectContact rObjectContact 
)
overridevirtual

◆ EndSdrDrag()

bool chart::DragMethod_RotateDiagram::EndSdrDrag ( bool  bCopy)
overridevirtual

◆ GetSdrDragComment()

OUString chart::DragMethod_RotateDiagram::GetSdrDragComment ( ) const
overridevirtual

Reimplemented from chart::DragMethod_Base.

Definition at line 98 of file DragMethod_RotateDiagram.cxx.

◆ MoveSdrDrag()

void chart::DragMethod_RotateDiagram::MoveSdrDrag ( const Point rPnt)
overridevirtual

Member Data Documentation

◆ m_aReferenceRect

tools::Rectangle chart::DragMethod_RotateDiagram::m_aReferenceRect
private

Definition at line 62 of file DragMethod_RotateDiagram.hxx.

Referenced by DragMethod_RotateDiagram(), and MoveSdrDrag().

◆ m_aStartPos

Point chart::DragMethod_RotateDiagram::m_aStartPos
private

Definition at line 63 of file DragMethod_RotateDiagram.hxx.

Referenced by BeginSdrDrag(), and MoveSdrDrag().

◆ m_aWireframePolyPolygon

basegfx::B3DPolyPolygon chart::DragMethod_RotateDiagram::m_aWireframePolyPolygon
private

Definition at line 64 of file DragMethod_RotateDiagram.hxx.

Referenced by CreateOverlayGeometry(), and DragMethod_RotateDiagram().

◆ m_bRightAngledAxes

bool chart::DragMethod_RotateDiagram::m_bRightAngledAxes
private

◆ m_eRotationDirection

RotationDirection chart::DragMethod_RotateDiagram::m_eRotationDirection
private

◆ m_fAdditionalXAngleRad

double chart::DragMethod_RotateDiagram::m_fAdditionalXAngleRad
private

Definition at line 70 of file DragMethod_RotateDiagram.hxx.

Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().

◆ m_fAdditionalYAngleRad

double chart::DragMethod_RotateDiagram::m_fAdditionalYAngleRad
private

Definition at line 71 of file DragMethod_RotateDiagram.hxx.

Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().

◆ m_fAdditionalZAngleRad

double chart::DragMethod_RotateDiagram::m_fAdditionalZAngleRad
private

Definition at line 72 of file DragMethod_RotateDiagram.hxx.

Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().

◆ m_fInitialXAngleRad

double chart::DragMethod_RotateDiagram::m_fInitialXAngleRad
private

◆ m_fInitialYAngleRad

double chart::DragMethod_RotateDiagram::m_fInitialYAngleRad
private

◆ m_fInitialZAngleRad

double chart::DragMethod_RotateDiagram::m_fInitialZAngleRad
private

◆ m_nAdditionalHorizontalAngleDegree

sal_Int32 chart::DragMethod_RotateDiagram::m_nAdditionalHorizontalAngleDegree
private

Definition at line 77 of file DragMethod_RotateDiagram.hxx.

Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().

◆ m_nAdditionalVerticalAngleDegree

sal_Int32 chart::DragMethod_RotateDiagram::m_nAdditionalVerticalAngleDegree
private

Definition at line 78 of file DragMethod_RotateDiagram.hxx.

Referenced by CreateOverlayGeometry(), EndSdrDrag(), and MoveSdrDrag().

◆ m_nInitialHorizontalAngleDegree

sal_Int32 chart::DragMethod_RotateDiagram::m_nInitialHorizontalAngleDegree
private

◆ m_nInitialVerticalAngleDegree

sal_Int32 chart::DragMethod_RotateDiagram::m_nInitialVerticalAngleDegree
private

◆ m_pScene

E3dScene* chart::DragMethod_RotateDiagram::m_pScene
private

Definition at line 60 of file DragMethod_RotateDiagram.hxx.

Referenced by CreateOverlayGeometry(), and DragMethod_RotateDiagram().


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