22#include <svx/svxids.hrc>
67 xFunc->DoExecute(rReq);
109 XPolygon aXPoly(
Point (0, 1250), 2500, 2500, 0_deg100, 9000_deg100,
false);
110 aXPoly.
Scale(5.0, 5.0);
115 aB2DPolygon = ::basegfx::utils::adaptiveSubdivideByAngle(aB2DPolygon);
128 case SID_3D_HALF_SPHERE:
130 XPolygon aXPoly(
Point (0, 1250), 2500, 2500, 0_deg100, 9000_deg100,
false);
131 aXPoly.
Scale(5.0, 5.0);
133 aXPoly.
Insert(0,
Point (2400*5, 1250*5), PolyFlags::Normal);
134 aXPoly.
Insert(0,
Point (2000*5, 1250*5), PolyFlags::Normal);
135 aXPoly.
Insert(0,
Point (1500*5, 1250*5), PolyFlags::Normal);
136 aXPoly.
Insert(0,
Point (1000*5, 1250*5), PolyFlags::Normal);
137 aXPoly.
Insert(0,
Point (500*5, 1250*5), PolyFlags::Normal);
138 aXPoly.
Insert(0,
Point (250*5, 1250*5), PolyFlags::Normal);
139 aXPoly.
Insert(0,
Point (50*5, 1250*5), PolyFlags::Normal);
140 aXPoly.
Insert(0,
Point (0, 1250*5), PolyFlags::Normal);
145 aB2DPolygon = ::basegfx::utils::adaptiveSubdivideByAngle(aB2DPolygon);
159 aB2DPolygon = ::basegfx::utils::adaptiveSubdivideByAngle(aB2DPolygon);
168 case SID_3D_CYLINDER:
264 aBoundVol.
expand(aObjVol);
265 double fDeepth(aBoundVol.
getDepth());
287 case SID_3D_HALF_SPHERE:
293 case SID_3D_CYLINDER:
359 bool bReturn =
false;
371 sal_uInt32 nDefaultObjectSize(1000);
410 aObjVol.
transform(p3DObj->GetTransform());
418 double fCamZ(aVolume.
getMaxZ() + ((fW + fH) / 4.0));
427 pScene->SetCamera(aCam);
428 pScene->InsertObject(p3DObj.get());
429 pScene->NbcSetSnapRect(a3DRect);
434 p3DObj->SetMergedItemSet(aAttr);
437 pScene->SetBoundAndSnapRectsDirty();
454 case SID_3D_HALF_SPHERE:
460 case SID_3D_CYLINDER:
470 pScene->SetLogicRect(aRect);
void SetAutoAdjustProjection(bool bAdjust)
void SetPosition(const basegfx::B3DPoint &rNewPos)
void SetFocalLength(double fLen)
void SetPosAndLookAt(const basegfx::B3DPoint &rNewPos, const basegfx::B3DPoint &rNewLookAt)
void SetViewWindow(double fX, double fY, double fW, double fH)
const basegfx::B3DRange & GetBoundVolume() const
const basegfx::B3DHomMatrix & GetTransform() const
virtual void SetTransform(const basegfx::B3DHomMatrix &rMatrix) override
void SetCamera(const Camera3D &rNewCamera)
const Camera3D & GetCamera() const
E3dDefaultAttributes & Get3DDefaultAttributes()
rtl::Reference< E3dScene > SetCurrent3DObj(E3dObject *p3DObj)
double GetDefaultCamFocal()
double GetDefaultCamPosZ()
const Point & GetPosPixel() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
SAL_DLLPRIVATE SfxItemPool & GetPool()
bool BegCreatePreparedObject(const Point &rPnt, sal_Int16 nMinMov, SdrObject *pPreparedFactoryObject)
bool EndCreateObj(SdrCreateCmd eCmd)
virtual bool IsAction() const override
void SetCurrentObj(SdrObjKind nIdent, SdrInventor nInvent=SdrInventor::Default)
SdrObject * GetCreateObj() const
sal_Int32 GetDragThresholdPixels() const
bool InsertObjectAtView(SdrObject *pObj, SdrPageView &rPV, SdrInsertFlags nOptions=SdrInsertFlags::NONE)
void SetMergedItemSet(const SfxItemSet &rSet, bool bClearAllItems=false)
void SetMergedItemSetAndBroadcast(const SfxItemSet &rSet, bool bClearAllItems=false)
SdrModel & getSdrModelFromSdrView() const
SdrPageView * GetSdrPageView() const
bool IsSnapEnabled() const
Point GetSnapPos(const Point &rPnt, const SdrPageView *pPV) const
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
SfxItemPool & GetPool() const
SfxDispatcher * GetDispatcher()
void SetPRP(const basegfx::B3DPoint &rNewPRP)
void Insert(sal_uInt16 nPos, const Point &rPt, PolyFlags eFlags)
void Scale(double fSx, double fSy)
basegfx::B2DPolygon getB2DPolygon() const
bool areControlPointsUsed() const
void append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
void setClosed(bool bNew)
void rotate(double fAngleX, double fAngleY, double fAngleZ)
BASEGFX_DLLPUBLIC void transform(const B3DHomMatrix &rMatrix)
void expand(const B3DTuple &rTuple)
virtual void DoExecute(SfxRequest &rReq) override
virtual rtl::Reference< SdrObject > CreateDefaultObject(const sal_uInt16 nID, const ::tools::Rectangle &rRectangle) override
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq, bool bPermanent)
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
rtl::Reference< E3dCompoundObject > ImpCreateBasic3DShape()
void ImpPrepareBasic3DShape(E3dCompoundObject const *p3DObj, E3dScene *pScene)
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
FuConstruct3dObject(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
virtual void Activate() override
activates the function
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual void Activate() override
activates the function
void SetStyleSheet(SfxItemSet &rAttr, SdrObject *pObj)
set style sheet for the object to be created
bool IsIgnoreUnexpectedMouseButtonUp()
void SetPermanent(bool bSet)
VclPtr< ::sd::Window > mpWindow
static void ImpForceQuadratic(::tools::Rectangle &rRect)
virtual void DoExecute(SfxRequest &rReq)
std::shared_ptr< ToolBarManager > const & GetToolBarManager() const
Base class of the stacked shell hierarchy.
SD_DLLPUBLIC weld::Window * GetFrameWeld() const
SD_DLLPUBLIC ViewShellBase & GetViewShellBase() const
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
An SdWindow contains the actual working area of ViewShell.
constexpr double deg2rad(double v)
constexpr int nCenterOffset
SfxBoolItem makeSvx3DDoubleSidedItem(bool bVal)
SfxUInt32Item makeSvx3DHorizontalSegmentsItem(sal_uInt32 nVal)