LibreOffice Module svx (master)
1
|
#include <scene3d.hxx>
Public Member Functions | |
E3dScene (SdrModel &rSdrModel) | |
virtual void | StructureChanged () override |
virtual SdrPage * | getSdrPageFromSdrObjList () const override |
virtual SdrObject * | getSdrObjectFromSdrObjList () const override |
virtual SdrObjList * | getChildrenOfSdrObject () const override |
virtual void | SetBoundRectDirty () override |
virtual basegfx::B2DPolyPolygon | TakeXorPoly () const override |
The Xor-Polygon is required by the View to drag the object. More... | |
sal_uInt32 | RemapOrdNum (sal_uInt32 nOrdNum) const |
ProjectionType | GetPerspective () const |
double | GetDistance () const |
double | GetFocalLength () const |
void | SetDrawOnlySelected (bool bNew) |
bool | GetDrawOnlySelected () const |
virtual SdrObjKind | GetObjIdentifier () const override |
virtual void | NbcSetSnapRect (const tools::Rectangle &rRect) override |
virtual void | NbcMove (const Size &rSize) override |
The methods Move, Resize, Rotate, Mirror, Shear, SetSnapRect and SetLogicRect call the corresponding Nbc-methods, send a Repaint broadcast and set the Modified state on the Model. More... | |
virtual void | NbcResize (const Point &rRef, const Fraction &rXFact, const Fraction &rYFact) override |
virtual void | RecalcSnapRect () override |
Snap is not done on the BoundRect but if possible on logic coordinates (i.e. More... | |
virtual E3dScene * | getRootE3dSceneFromE3dObject () const override |
void | SetCamera (const Camera3D &rNewCamera) |
const Camera3D & | GetCamera () const |
void | removeAllNonSelectedObjects () |
virtual E3dScene * | CloneSdrObject (SdrModel &rTargetModel) const override |
E3dScene & | operator= (const E3dScene &) |
virtual SdrObjGeoData * | NewGeoData () const override |
A derived class must override these 3 methods if it has own geometric data that must be saved for Undo. More... | |
virtual void | SaveGeoData (SdrObjGeoData &rGeo) const override |
virtual void | RestGeoData (const SdrObjGeoData &rGeo) override |
virtual void | NbcSetTransform (const basegfx::B3DHomMatrix &rMatrix) override |
virtual void | SetTransform (const basegfx::B3DHomMatrix &rMatrix) override |
virtual void | NbcRotate (const Point &rRef, Degree100 nAngle, double sn, double cs) override |
void | RotateScene (const Point &rRef, double sn, double cs) |
virtual OUString | TakeObjNameSingul () const override |
virtual OUString | TakeObjNamePlural () const override |
B3dCamera & | GetCameraSet () |
const B3dCamera & | GetCameraSet () const |
virtual bool | IsBreakObjPossible () override |
virtual basegfx::B2DPolyPolygon | TakeCreatePoly (const SdrDragStat &rDrag) const override |
Polygon dragged by the user when creating the object. More... | |
virtual bool | BegCreate (SdrDragStat &rStat) override |
Every object must be able to create itself interactively. More... | |
virtual bool | MovCreate (SdrDragStat &rStat) override |
virtual bool | EndCreate (SdrDragStat &rStat, SdrCreateCmd eCmd) override |
virtual bool | BckCreate (SdrDragStat &rStat) override |
virtual void | BrkCreate (SdrDragStat &rStat) override |
void | SuspendReportingDirtyRects () |
void | ResumeReportingDirtyRects () |
void | SetAllSceneRectsDirty () |
virtual void | SetSelected (bool bNew) override |
virtual void | NbcInsertObject (SdrObject *pObj, size_t nPos=SAL_MAX_SIZE) override |
virtual void | InsertObject (SdrObject *pObj, size_t nPos=SAL_MAX_SIZE) override |
virtual SdrObject * | NbcRemoveObject (size_t nObjNum) override |
remove from list without delete More... | |
virtual SdrObject * | RemoveObject (size_t nObjNum) override |
virtual void | SetRectsDirty (bool bNotMyself=false, bool bRecursive=true) override |
virtual void | NbcSetLayer (SdrLayerID nLayer) override |
virtual void | handlePageChange (SdrPage *pOldPage, SdrPage *pNewPage) override |
virtual SdrObjList * | GetSubList () const override |
virtual void | SetTransformChanged () override |
![]() | |
virtual SdrInventor | GetObjInventor () const override |
virtual void | TakeObjInfo (SdrObjTransformInfoRec &rInfo) const override |
E3dScene * | getParentE3dSceneFromE3dObject () const |
const basegfx::B3DRange & | GetBoundVolume () const |
void | InvalidateBoundVolume () |
const basegfx::B3DHomMatrix & | GetFullTransform () const |
const basegfx::B3DHomMatrix & | GetTransform () const |
basegfx::B3DPolyPolygon | CreateWireframe () const |
E3dObject & | operator= (const E3dObject &rObj) |
bool | GetSelected () const |
virtual std::unique_ptr< SdrAttrObj, SdrObjectFreeOp > | GetBreakObj () |
![]() | |
SdrAttrObj (SdrAttrObj const &)=delete | |
SdrAttrObj (SdrAttrObj &&)=delete | |
SdrAttrObj & | operator= (SdrAttrObj const &)=default |
SdrAttrObj & | operator= (SdrAttrObj &&)=default |
bool | HasFill () const |
bool | HasLine () const |
virtual const tools::Rectangle & | GetSnapRect () const override |
![]() | |
const SdrObject * | getFillGeometryDefiningShape () const |
SdrObject (SdrModel &rSdrModel) | |
SdrPage * | getSdrPageFromSdrObject () const |
SdrModel & | getSdrModelFromSdrObject () const |
SdrObjList * | getParentSdrObjListFromSdrObject () const |
SdrObject * | getParentSdrObjectFromSdrObject () const |
void | AddObjectUser (sdr::ObjectUser &rNewUser) |
void | RemoveObjectUser (sdr::ObjectUser &rOldUser) |
sdr::contact::ViewContact & | GetViewContact () const |
virtual sdr::properties::BaseProperties & | GetProperties () const |
void | ActionChanged () const |
void | SetRelativeWidth (double nValue) |
void | SetRelativeWidthRelation (sal_Int16 eValue) |
void | SetRelativeHeight (double nValue) |
void | SetRelativeHeightRelation (sal_Int16 eValue) |
const double * | GetRelativeWidth () const |
sal_Int16 | GetRelativeWidthRelation () const |
const double * | GetRelativeHeight () const |
sal_Int16 | GetRelativeHeightRelation () const |
void | SetDiagramData (std::shared_ptr< DiagramDataInterface > pDiagramData) |
std::shared_ptr< DiagramDataInterface > | GetDiagramData () const |
SfxItemPool & | GetObjectItemPool () const |
void | AddListener (SfxListener &rListener) |
void | RemoveListener (SfxListener &rListener) |
void | AddReference (SdrVirtObj &rVrtObj) |
void | DelReference (SdrVirtObj &rVrtObj) |
virtual SdrLayerID | GetLayer () const |
virtual void | SetLayer (SdrLayerID nLayer) |
void | getMergedHierarchySdrLayerIDSet (SdrLayerIDSet &rSet) const |
void | SendUserCall (SdrUserCallType eUserCall, const tools::Rectangle &rBoundRect) const |
void | SetName (const OUString &rStr, const bool bSetChanged=true) |
OUString | GetName () const |
void | MakeNameUnique () |
void | MakeNameUnique (std::unordered_set< OUString > &rNameSet) |
void | SetTitle (const OUString &rStr) |
OUString | GetTitle () const |
void | SetDescription (const OUString &rStr) |
OUString | GetDescription () const |
bool | IsGroupObject () const |
sal_uInt32 | GetOrdNum () const |
The order number (aka ZOrder, aka z-index) determines whether a SdrObject is located above or below another. More... | |
void | SetOrdNum (sal_uInt32 nNum) |
void | GetGrabBagItem (css::uno::Any &rVal) const |
void | SetGrabBagItem (const css::uno::Any &rVal) |
sal_uInt32 | GetNavigationPosition () const |
virtual const tools::Rectangle & | GetCurrentBoundRect () const |
virtual const tools::Rectangle & | GetLastBoundRect () const |
virtual void | RecalcBoundRect () |
void | BroadcastObjectChange () const |
const SfxBroadcaster * | GetBroadcaster () const |
virtual void | SetChanged () |
void | SingleObjectPainter (OutputDevice &rOut) const |
bool | LineGeometryUsageIsNecessary () const |
virtual bool | HasLimitedRotation () const |
SdrObject & | operator= (const SdrObject &rObj) |
virtual basegfx::B2DPolyPolygon | TakeContour () const |
contour for TextToContour More... | |
virtual sal_uInt32 | GetHdlCount () const |
Via GetHdlCount the number of Handles can be retrieved. More... | |
virtual void | AddToPlusHdlList (SdrHdlList &rHdlList, SdrHdl &rHdl) const |
virtual void | AddToHdlList (SdrHdlList &rHdlList) const |
virtual void | addCropHandles (SdrHdlList &rTarget) const |
virtual bool | hasSpecialDrag () const |
The standard transformations (Move,Resize,Rotate,Mirror,Shear) are taken over by the View (TakeXorPoly(),...). More... | |
virtual bool | beginSpecialDrag (SdrDragStat &rDrag) const |
virtual bool | applySpecialDrag (SdrDragStat &rDrag) |
virtual OUString | getSpecialDragComment (const SdrDragStat &rDrag) const |
virtual basegfx::B2DPolyPolygon | getSpecialDragPoly (const SdrDragStat &rDrag) const |
virtual bool | supportsFullDrag () const |
virtual SdrObjectUniquePtr | getFullDragClone () const |
virtual PointerStyle | GetCreatePointer () const |
get the cursor/pointer that signals creating this object More... | |
virtual void | NbcCrop (const basegfx::B2DPoint &rRef, double fxFact, double fyFact) |
void | NbcRotate (const Point &rRef, Degree100 nAngle) |
virtual void | NbcMirror (const Point &rRef1, const Point &rRef2) |
virtual void | NbcShear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear) |
virtual void | Move (const Size &rSiz) |
virtual void | Resize (const Point &rRef, const Fraction &xFact, const Fraction &yFact, bool bUnsetRelative=true) |
virtual void | Crop (const basegfx::B2DPoint &rRef, double fxFact, double fyFact) |
virtual void | Rotate (const Point &rRef, Degree100 nAngle, double sn, double cs) |
virtual void | Mirror (const Point &rRef1, const Point &rRef2) |
virtual void | Shear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear) |
virtual void | NbcSetRelativePos (const Point &rPnt) |
The relative position of a SdrObject is the distance of the upper left corner of the logic bounding rectangle (SnapRect) to the anchor. More... | |
virtual void | SetRelativePos (const Point &rPnt) |
virtual Point | GetRelativePos () const |
void | ImpSetAnchorPos (const Point &rPnt) |
virtual void | NbcSetAnchorPos (const Point &rPnt) |
virtual void | SetAnchorPos (const Point &rPnt) |
virtual void | SetSnapRect (const tools::Rectangle &rRect) |
virtual const tools::Rectangle & | GetLogicRect () const |
virtual void | SetLogicRect (const tools::Rectangle &rRect) |
virtual void | NbcSetLogicRect (const tools::Rectangle &rRect) |
virtual void | AdjustToMaxRect (const tools::Rectangle &rMaxRect, bool bShrinkOnly=false) |
virtual Degree100 | GetRotateAngle () const |
virtual Degree100 | GetShearAngle (bool bVertical=false) const |
virtual sal_uInt32 | GetSnapPointCount () const |
snap to special points of an Object (polygon points, center of circle) More... | |
virtual Point | GetSnapPoint (sal_uInt32 i) const |
virtual bool | IsPolyObj () const |
virtual sal_uInt32 | GetPointCount () const |
virtual Point | GetPoint (sal_uInt32 i) const |
void | SetPoint (const Point &rPnt, sal_uInt32 i) |
virtual void | NbcSetPoint (const Point &rPnt, sal_uInt32 i) |
virtual SdrObjGeoData * | GetGeoData () const |
virtual void | SetGeoData (const SdrObjGeoData &rGeo) |
const SfxItemSet & | GetMergedItemSet () const |
void | SetMergedItem (const SfxPoolItem &rItem) |
void | ClearMergedItem (const sal_uInt16 nWhich=0) |
void | SetMergedItemSet (const SfxItemSet &rSet, bool bClearAllItems=false) |
const SfxPoolItem & | GetMergedItem (const sal_uInt16 nWhich) const |
template<class T > | |
const T & | GetMergedItem (TypedWhichId< T > nWhich) const |
void | SetMergedItemSetAndBroadcast (const SfxItemSet &rSet, bool bClearAllItems=false) |
void | TakeNotPersistAttr (SfxItemSet &rAttr) const |
void | ApplyNotPersistAttr (const SfxItemSet &rAttr) |
void | NbcApplyNotPersistAttr (const SfxItemSet &rAttr) |
void | SetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) |
virtual void | NbcSetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) |
SfxStyleSheet * | GetStyleSheet () const |
virtual bool | HasTextEdit () const |
void | SetOutlinerParaObject (std::unique_ptr< OutlinerParaObject > pTextObject) |
virtual void | NbcSetOutlinerParaObject (std::unique_ptr< OutlinerParaObject > pTextObject) |
virtual OutlinerParaObject * | GetOutlinerParaObject () const |
virtual void | NbcReformatText () |
void | BurnInStyleSheetAttributes () |
virtual bool | HasMacro () const |
virtual SdrObject * | CheckMacroHit (const SdrObjMacroHitRec &rRec) const |
virtual PointerStyle | GetMacroPointer (const SdrObjMacroHitRec &rRec) const |
virtual void | PaintMacro (OutputDevice &rOut, const tools::Rectangle &rDirtyRect, const SdrObjMacroHitRec &rRec) const |
virtual bool | DoMacro (const SdrObjMacroHitRec &rRec) |
bool | IsMacroHit (const SdrObjMacroHitRec &rRec) const |
virtual SdrGluePoint | GetVertexGluePoint (sal_uInt16 nNum) const |
virtual SdrGluePoint | GetCornerGluePoint (sal_uInt16 nNum) const |
virtual const SdrGluePointList * | GetGluePointList () const |
virtual SdrGluePointList * | ForceGluePointList () |
void | SetGlueReallyAbsolute (bool bOn) |
void | NbcRotateGluePoints (const Point &rRef, Degree100 nAngle, double sn, double cs) |
void | NbcMirrorGluePoints (const Point &rRef1, const Point &rRef2) |
void | NbcShearGluePoints (const Point &rRef, double tn, bool bVShear) |
virtual void | ConnectToNode (bool bTail1, SdrObject *pObj) |
virtual void | DisconnectFromNode (bool bTail1) |
virtual SdrObject * | GetConnectedNode (bool bTail1) const |
virtual void | SetContextWritingMode (const sal_Int16 _nContextWritingMode) |
virtual SdrObjectUniquePtr | DoConvertToPolyObj (bool bBezier, bool bAddText) const |
SdrObjectUniquePtr | ConvertToPolyObj (bool bBezier, bool bLineToArea) const |
SdrObject * | ConvertToContourObj (SdrObject *pRet, bool bForceLineDash=false) const |
bool | IsVirtualObj () const |
bool | IsClosedObj () const |
void | InsertedStateChange () |
bool | IsInserted () const |
bool | IsEdgeObj () const |
bool | Is3DObj () const |
bool | IsUnoObj () const |
void | SetMoveProtect (bool bProt) |
bool | IsMoveProtect () const |
void | SetResizeProtect (bool bProt) |
bool | IsResizeProtect () const |
void | SetPrintable (bool bPrn) |
bool | IsPrintable () const |
void | SetVisible (bool bVisible) |
bool | IsVisible () const |
void | SetMarkProtect (bool bProt) |
bool | IsMarkProtect () const |
virtual bool | shouldKeepAspectRatio () const |
Whether the aspect ratio should be kept by default when resizing. More... | |
sal_uInt16 | GetUserDataCount () const |
SdrObjUserData * | GetUserData (sal_uInt16 nNum) const |
void | AppendUserData (std::unique_ptr< SdrObjUserData > pData) |
void | DeleteUserData (sal_uInt16 nNum) |
virtual css::uno::Reference< css::uno::XInterface > | getUnoShape () |
svx::PropertyChangeNotifier & | getShapePropertyChangeNotifier () |
void | notifyShapePropertyChange (const svx::ShapeProperty _eProperty) const |
virtual bool | TRGetBaseGeometry (basegfx::B2DHomMatrix &rMatrix, basegfx::B2DPolyPolygon &rPolyPolygon) const |
virtual void | TRSetBaseGeometry (const basegfx::B2DHomMatrix &rMatrix, const basegfx::B2DPolyPolygon &rPolyPolygon) |
bool | IsInDestruction () const |
bool | HasFillStyle () const |
bool | HasLineStyle () const |
const tools::Rectangle & | GetBLIPSizeRectangle () const |
void | SetBLIPSizeRectangle (const tools::Rectangle &aRect) |
virtual bool | HasText () const |
bool | Equals (const SdrObject &) const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual bool | IsTextBox () const |
Is this a textbox of a drawinglayer shape? More... | |
void | SetEmptyPresObj (bool bEpt) |
bool | IsEmptyPresObj () const |
void | SetNotVisibleAsMaster (bool bFlg) |
bool | IsNotVisibleAsMaster () const |
void | SetUserCall (SdrObjUserCall *pUser) |
SdrObjUserCall * | GetUserCall () const |
void | SetDoNotInsertIntoPageAutomatically (bool bSet) |
bool | IsDoNotInsertIntoPageAutomatically () const |
sal_uInt32 | GetOrdNumDirect () const |
bool | DoesSupportTextIndentingOnLineWidthChange () const |
const Point & | GetAnchorPos () const |
bool | LineIsOutsideGeometry () const |
void | SetNavigationPosition (const sal_uInt32 nPosition) |
void | setUnoShape (const css::uno::Reference< css::uno::XInterface > &_rxUnoShape) |
const css::uno::WeakReference< css::uno::XInterface > & | getWeakUnoShape () const |
void | setSuitableOutlinerBg (Outliner &rOutliner) const |
const Graphic * | getFillGraphic () const |
![]() | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
![]() | |
WeakBase () | |
virtual | ~WeakBase () |
void | clearWeak () |
![]() | |
void | CopyObjects (const SdrObjList &rSrcList) |
void | ClearSdrObjList () |
void | RecalcObjOrdNums () |
recalculate order numbers / ZIndex More... | |
bool | IsObjOrdNumsDirty () const |
void | sort (std::vector< sal_Int32 > &sortOrder) |
void | InsertObjectThenMakeNameUnique (SdrObject *pObj) |
void | InsertObjectThenMakeNameUnique (SdrObject *pObj, std::unordered_set< rtl::OUString > &rNameSet, size_t nPos=SAL_MAX_SIZE) |
virtual SdrObject * | ReplaceObject (SdrObject *pNewObj, size_t nObjNum) |
Replace existing object by different one. More... | |
virtual SdrObject * | SetObjectOrdNum (size_t nOldObjNum, size_t nNewObjNum) |
Modify ZOrder of an SdrObject. More... | |
void | SetSdrObjListRectsDirty () |
const tools::Rectangle & | GetAllObjSnapRect () const |
const tools::Rectangle & | GetAllObjBoundRect () const |
void | NbcReformatAllTextObjects () |
reformat all text objects, e.g. when changing printer More... | |
void | ReformatAllTextObjects () |
void | ReformatAllEdgeObjects () |
#103122# reformats all edge objects that are connected to other objects More... | |
void | BurnInStyleSheetAttributes () |
convert attributes of the style to hard formatting More... | |
size_t | GetObjCount () const |
SdrObject * | GetObj (size_t nNum) const |
virtual bool | IsReadOnly () const |
linked page or linked group object More... | |
void | FlattenGroups () |
Makes the object list flat, i.e. More... | |
void | UnGroupObj (size_t nObjNum) |
Ungroup the object at the given index. More... | |
bool | HasObjectNavigationOrder () const |
Return whether there is an explicit, user defined, object navigation order. More... | |
void | SetObjectNavigationPosition (SdrObject &rObject, const sal_uInt32 nNewNavigationPosition) |
Set the navigation position of the given object to the specified value. More... | |
SdrObject * | GetObjectForNavigationPosition (const sal_uInt32 nNavigationPosition) const |
Return the object for the given navigation position. More... | |
void | ClearObjectNavigationOrder () |
Restore the navigation order to that defined by the z-order. More... | |
bool | RecalcNavigationPositions () |
Set the navigation position of all SdrObjects to their position in the mxNavigationOrder list. More... | |
void | SetNavigationOrder (const css::uno::Reference< css::container::XIndexAccess > &rxOrder) |
Set the navigation order to the one defined by the given list of XShape objects. More... | |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Protected Member Functions | |
virtual std::unique_ptr< sdr::properties::BaseProperties > | CreateObjectSpecificProperties () override |
virtual std::unique_ptr< sdr::contact::ViewContact > | CreateObjectSpecificViewContact () override |
void | RebuildLists () |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
Detects when a stylesheet is changed. More... | |
void | SetDefaultAttributes () |
void | ImpCleanup3DDepthMapper () |
virtual | ~E3dScene () override |
virtual basegfx::B3DRange | RecalcBoundVolume () const override |
![]() | |
E3dObject (SdrModel &rSdrModel) | |
virtual | ~E3dObject () override |
![]() | |
sal_Int32 | ImpGetLineWdt () const |
Detects the width of the line. No line ->0. More... | |
SdrAttrObj (SdrModel &rSdrModel) | |
virtual | ~SdrAttrObj () override |
![]() | |
virtual | ~SdrObject () override |
tools::Rectangle | ImpDragCalcRect (const SdrDragStat &rDrag) const |
OUString | ImpGetDescriptionStr (const char *pStrCacheID) const |
void | ImpForcePlusData () |
OUString | GetMetrStr (tools::Long nVal) const |
const SfxItemSet & | GetObjectItemSet () const |
void | SetObjectItem (const SfxPoolItem &rItem) |
void | SetObjectItemSet (const SfxItemSet &rSet) |
const SfxPoolItem & | GetObjectItem (const sal_uInt16 nWhich) const |
template<class T > | |
const T & | GetObjectItem (TypedWhichId< T > nWhich) const |
virtual void | impl_setUnoShape (const css::uno::Reference< css::uno::XInterface > &_rxUnoShape) |
Sets a new UNO shape. More... | |
template<typename T > | |
T * | CloneHelper (SdrModel &rTargetModel) const |
const SfxItemSet * | getBackgroundFillSet () const |
![]() | |
void | RecalcRects () |
SdrObjList () | |
virtual | ~SdrObjList () |
Protected Attributes | |
B3dCamera | aCameraSet |
Camera3D | aCamera |
std::unique_ptr< Imp3DDepthRemapper > | mp3DDepthRemapper |
bool | bDrawOnlySelected: 1 |
bool | mbSkipSettingDirty: 1 |
![]() | |
basegfx::B3DRange | maLocalBoundVol |
basegfx::B3DHomMatrix | maTransformation |
basegfx::B3DHomMatrix | maFullTransform |
bool | mbTfHasChanged: 1 |
bool | mbIsSelected: 1 |
![]() | |
tools::Rectangle | maSnapRect |
![]() | |
tools::Rectangle | aOutRect |
Point | aAnchor |
SdrObjUserCall * | pUserCall |
std::unique_ptr< SdrObjPlusData > | pPlusData |
bool | bVirtObj: 1 |
bool | bSnapRectDirty: 1 |
bool | bMovProt: 1 |
bool | bSizProt: 1 |
bool | bEmptyPresObj: 1 |
bool | bNotVisibleAsMaster: 1 |
bool | bClosedObj: 1 |
bool | bIsEdge: 1 |
bool | bIs3DObj: 1 |
bool | bIsUnoObj: 1 |
bool | mbLineIsOutsideGeometry: 1 |
bool | mbSupportTextIndentingOnLineWidthChange: 1 |
Additional Inherited Members | |
![]() | |
static SdrItemPool & | GetGlobalDrawObjectItemPool () |
static void | Free (SdrObject *&_rpObject) |
static SdrObject * | getSdrObjectFromXShape (const css::uno::Reference< css::uno::XInterface > &xInt) |
Definition at line 57 of file scene3d.hxx.
|
overrideprotectedvirtual |
Definition at line 209 of file scene3d.cxx.
References ImpCleanup3DDepthMapper().
E3dScene::E3dScene | ( | SdrModel & | rSdrModel | ) |
Definition at line 170 of file scene3d.cxx.
References SetDefaultAttributes().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 727 of file scene3d.cxx.
|
overridevirtual |
Every object must be able to create itself interactively.
On MouseDown first an object is created, and its BegCreate() method is called. On every MouseMove, MovCreate() is called. BrkCreate() is called if the user cancels the interactive object creation. EndCreate() is called on the MouseUp event. If EndCreate() returns true, the creation is finished; the object is inserted into the corresponding list. Otherwise it is assumed that further points are necessary to create the object (Polygon, ...). The parameter eCmd contains the number of mouse clicks (if the application provides it). BckCreate() will undo the previous EndCreate(), e.g. to delete the last point of the Polygon. If BckCreate() returns false, creation is cancelled.
Reimplemented from SdrObject.
Definition at line 695 of file scene3d.cxx.
References SdrDragStat::GetNow(), SdrDragStat::GetStart(), tools::Rectangle::Justify(), NbcSetSnapRect(), SdrDragStat::SetActionRect(), and SdrDragStat::SetOrtho4Possible().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 732 of file scene3d.cxx.
Reimplemented from E3dObject.
Definition at line 416 of file scene3d.cxx.
|
overrideprotectedvirtual |
Reimplemented from E3dObject.
Definition at line 156 of file scene3d.cxx.
|
overrideprotectedvirtual |
Reimplemented from SdrObject.
Definition at line 164 of file scene3d.cxx.
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 717 of file scene3d.cxx.
References ForceEnd, SdrDragStat::GetPointCount(), tools::Rectangle::Justify(), NbcSetSnapRect(), SetRectsDirty(), and SdrDragStat::TakeCreateRect().
|
inline |
Definition at line 127 of file scene3d.hxx.
Referenced by Svx3DPreviewControl::Construct(), Svx3DLightControl::Construct2(), EnhancedCustomShape3d::Create3DObject(), E3dView::InitScene(), sdr::properties::E3dSceneProperties::PostItemChange(), Svx3DSceneObject::setPropertyValueImpl(), and sdr::properties::E3dSceneProperties::SetSceneItemsFromCamera().
|
inline |
Definition at line 148 of file scene3d.hxx.
Referenced by sdr::contact::ViewContactOfE3dScene::createViewInformation3D(), Svx3DSceneObject::getPropertyValueImpl(), SetCamera(), and Svx3DSceneObject::setPropertyValueImpl().
|
inline |
Definition at line 149 of file scene3d.hxx.
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 224 of file scene3d.cxx.
|
inline |
Definition at line 107 of file scene3d.hxx.
References SfxItemSet::Get(), SdrObject::GetObjectItemSet(), and SDRATTR_3DSCENE_DISTANCE().
Referenced by sdr::properties::E3dSceneProperties::PostItemChange(), and SetDefaultAttributes().
|
inline |
Definition at line 116 of file scene3d.hxx.
|
inline |
Definition at line 111 of file scene3d.hxx.
References SfxItemSet::Get(), SdrObject::GetObjectItemSet(), and SDRATTR_3DSCENE_FOCAL_LENGTH().
Referenced by sdr::properties::E3dSceneProperties::PostItemChange(), and SetDefaultAttributes().
|
overridevirtual |
|
inline |
Definition at line 103 of file scene3d.hxx.
References SfxItemSet::Get(), SdrObject::GetObjectItemSet(), and SDRATTR_3DSCENE_PERSPECTIVE().
Referenced by sdr::properties::E3dSceneProperties::PostItemChange(), and SetDefaultAttributes().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 360 of file scene3d.cxx.
References E3dObject::getParentE3dSceneFromE3dObject(), and getRootE3dSceneFromE3dObject().
Referenced by E3dView::CreateMarkedObjModel(), E3dView::DrawMarkedObj(), E3DModifySceneSnapRectUpdater::E3DModifySceneSnapRectUpdater(), E3dObject::getRootE3dSceneFromE3dObject(), getRootE3dSceneFromE3dObject(), RecalcSnapRect(), ResumeReportingDirtyRects(), SetAllSceneRectsDirty(), SetBoundRectDirty(), StructureChanged(), and SuspendReportingDirtyRects().
|
overridevirtual |
Reimplemented from SdrObjList.
Definition at line 219 of file scene3d.cxx.
Referenced by E3dView::ConvertMarkedObjTo3D(), InsertObject(), and NbcInsertObject().
|
overridevirtual |
Reimplemented from SdrObjList.
Definition at line 214 of file scene3d.cxx.
References SdrObject::getSdrPageFromSdrObject().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 867 of file scene3d.cxx.
Referenced by E3dView::ConvertMarkedObjTo3D(), E3dView::DoDepthArrange(), getAllHit3DObjectsSortedFrontToBack(), Imp3DDepthRemapper::Imp3DDepthRemapper(), E3dView::ImpCloneAll3DObjectsToDestScene(), IsBreakObjPossible(), operator=(), RebuildLists(), RemapOrdNum(), and Svx3DSceneObject::setPropertyValueImpl().
Reimplemented from SdrObject.
Definition at line 844 of file scene3d.cxx.
References a, SdrObjList::GetObj(), SdrObjList::GetObjCount(), and SdrObject::handlePageChange().
|
protected |
Definition at line 242 of file scene3d.cxx.
References mp3DDepthRemapper.
Referenced by NbcSetSnapRect(), operator=(), RebuildLists(), SetCamera(), StructureChanged(), and ~E3dScene().
Reimplemented from SdrObjList.
Definition at line 771 of file scene3d.cxx.
References getSdrObjectFromSdrObjList(), SdrObject::getSdrPageFromSdrObject(), SdrObjList::InsertObject(), E3dObject::InvalidateBoundVolume(), and StructureChanged().
Referenced by Svx3DLightControl::Construct2(), Svx3DLightControl::ConstructLightObjects(), EnhancedCustomShape3d::Create3DObject(), E3dView::ImpCloneAll3DObjectsToDestScene(), E3dView::ImpCreateSingle3DObjectFlat(), E3dView::SetCurrent3DObj(), and Svx3DPreviewControl::SetObjectType().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 674 of file scene3d.cxx.
References DBG_ASSERT, DeepWithGroups, GetSubList(), E3dObject::IsBreakObjPossible(), SdrObjListIter::IsMore(), and SdrObjListIter::Next().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 705 of file scene3d.cxx.
References SdrObject::bSnapRectDirty, tools::Rectangle::Justify(), NbcSetSnapRect(), SdrDragStat::SetActionRect(), SetBoundRectDirty(), and SdrDragStat::TakeCreateRect().
Reimplemented from SdrObjList.
Definition at line 752 of file scene3d.cxx.
References getSdrObjectFromSdrObjList(), SdrObject::getSdrPageFromSdrObject(), SdrObjList::InsertObject(), E3dObject::InvalidateBoundVolume(), SdrObjList::NbcInsertObject(), and StructureChanged().
The methods Move, Resize, Rotate, Mirror, Shear, SetSnapRect and SetLogicRect call the corresponding Nbc-methods, send a Repaint broadcast and set the Modified state on the Model.
Derived classes should usually only override the Nbc methods. Nbc means "no broadcast".
Reimplemented from E3dObject.
Definition at line 298 of file scene3d.cxx.
References SdrAttrObj::GetSnapRect(), tools::Rectangle::Move(), and NbcSetSnapRect().
Referenced by RotateScene().
|
overridevirtual |
remove from list without delete
Reimplemented from SdrObjList.
Definition at line 790 of file scene3d.cxx.
References E3dObject::InvalidateBoundVolume(), SdrObjList::NbcRemoveObject(), and StructureChanged().
Referenced by removeAllNonSelectedObjects().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 305 of file scene3d.cxx.
References SdrAttrObj::GetSnapRect(), NbcSetSnapRect(), and ResizeRect().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 617 of file scene3d.cxx.
References E3dObject::GetTransform(), SdrObject::NbcRotateGluePoints(), NbcSetTransform(), basegfx::B3DHomMatrix::rotate(), RotateScene(), SdrObject::SetGlueReallyAbsolute(), SetRectsDirty(), and toRadians().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 828 of file scene3d.cxx.
References a, SdrObjList::GetObj(), SdrObjList::GetObjCount(), and SdrObject::NbcSetLayer().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 288 of file scene3d.cxx.
References aCamera, aCameraSet, ImpCleanup3DDepthMapper(), SdrObject::NbcSetSnapRect(), Viewport3D::SetDeviceWindow(), and SetRectsDirty().
Referenced by BegCreate(), E3dView::ConvertMarkedObjTo3D(), EnhancedCustomShape3d::Create3DObject(), EndCreate(), MovCreate(), NbcMove(), NbcResize(), E3dView::SetCurrent3DObj(), and Svx3DSceneObject::setPropertyValueImpl().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 599 of file scene3d.cxx.
References E3dObject::maTransformation, and E3dObject::NbcSetTransform().
Referenced by EnhancedCustomShape3d::Create3DObject(), NbcRotate(), and Svx3DSceneObject::setPropertyValueImpl().
|
overridevirtual |
A derived class must override these 3 methods if it has own geometric data that must be saved for Undo.
NewGeoData() creates an empty instance of a class derived from SdrObjGeoData.
Reimplemented from E3dObject.
Definition at line 500 of file scene3d.cxx.
|
overrideprotectedvirtual |
Detects when a stylesheet is changed.
Reimplemented from SdrAttrObj.
Definition at line 522 of file scene3d.cxx.
References SdrAttrObj::Notify(), and SetRectsDirty().
Definition at line 421 of file scene3d.cxx.
References aCamera, aCameraSet, sdr::contact::ViewContact::ActionChanged(), SdrObjList::CopyObjects(), SdrObject::GetProperties(), GetSubList(), SdrObject::GetViewContact(), ImpCleanup3DDepthMapper(), E3dObject::InvalidateBoundVolume(), E3dObject::operator=(), RebuildLists(), and SetRectsDirty().
|
protected |
Definition at line 484 of file scene3d.cxx.
References Flat, SdrObject::GetLayer(), GetSubList(), ImpCleanup3DDepthMapper(), SdrObjListIter::IsMore(), SdrObject::NbcSetLayer(), and SdrObjListIter::Next().
Referenced by operator=().
|
overrideprotectedvirtual |
Reimplemented from E3dObject.
Definition at line 872 of file scene3d.cxx.
References a, basegfx::B3DRange::expand(), E3dObject::GetBoundVolume(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), E3dObject::GetTransform(), and basegfx::B3DRange::transform().
|
overridevirtual |
Snap is not done on the BoundRect but if possible on logic coordinates (i.e.
without considering stroke width, ...) SetSnapRect() tries to size the Object so that it fits into the passed Rect (without stroke width, ...)
Reimplemented from E3dObject.
Definition at line 645 of file scene3d.cxx.
References a, aCamera, Viewport3D::GetDeviceWindow(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), getRootE3dSceneFromE3dObject(), SdrAttrObj::GetSnapRect(), SdrAttrObj::maSnapRect, E3dObject::RecalcSnapRect(), and tools::Rectangle::Union().
sal_uInt32 E3dScene::RemapOrdNum | ( | sal_uInt32 | nOrdNum | ) | const |
Definition at line 247 of file scene3d.cxx.
References SdrObjList::GetObjCount(), GetSubList(), and mp3DDepthRemapper.
Referenced by SdrMarkView::CheckSingleSdrObjectHit(), and SdrMarkView::MarkNextObj().
void E3dScene::removeAllNonSelectedObjects | ( | ) |
Definition at line 372 of file scene3d.cxx.
References a, SdrObject::Free(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrObject::GetOrdNum(), and NbcRemoveObject().
Referenced by E3dView::CreateMarkedObjModel().
|
overridevirtual |
Reimplemented from SdrObjList.
Definition at line 801 of file scene3d.cxx.
References E3dObject::InvalidateBoundVolume(), SdrObjList::RemoveObject(), and StructureChanged().
Referenced by Svx3DLightControl::ConstructLightObjects(), EnhancedCustomShape3d::Create3DObject(), and Svx3DPreviewControl::SetObjectType().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 512 of file scene3d.cxx.
References aCamera, E3dObject::RestGeoData(), and SetCamera().
void E3dScene::ResumeReportingDirtyRects | ( | ) |
Definition at line 462 of file scene3d.cxx.
References getRootE3dSceneFromE3dObject(), and mbSkipSettingDirty.
Definition at line 528 of file scene3d.cxx.
References SdrObject::aOutRect, tools::Rectangle::BottomRight(), Center, LowerRight, NbcMove(), Point, Size::setHeight(), Size::setWidth(), tools::Rectangle::TopLeft(), and UpperLeft.
Referenced by NbcRotate().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 505 of file scene3d.cxx.
References aCamera, and E3dObject::SaveGeoData().
void E3dScene::SetAllSceneRectsDirty | ( | ) |
Definition at line 472 of file scene3d.cxx.
References getRootE3dSceneFromE3dObject(), and SetRectsDirty().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 272 of file scene3d.cxx.
References getRootE3dSceneFromE3dObject(), and SdrObject::SetBoundRectDirty().
Referenced by MovCreate().
Definition at line 316 of file scene3d.cxx.
References aCamera, GetCameraSet(), Viewport3D::GetDeviceWindow(), Viewport3D::GetProjection(), SdrObject::GetProperties(), Viewport3D::GetViewPoint(), Viewport3D::GetVRP(), Viewport3D::GetVUV(), ImpCleanup3DDepthMapper(), Perspective, and SetRectsDirty().
Referenced by Svx3DPreviewControl::Construct(), Svx3DLightControl::Construct2(), EnhancedCustomShape3d::Create3DObject(), E3dView::InitScene(), sdr::properties::E3dSceneProperties::PostItemChange(), RestGeoData(), and Svx3DSceneObject::setPropertyValueImpl().
|
protected |
Definition at line 181 of file scene3d.cxx.
References aCamera, aCameraSet, GetDistance(), GetFocalLength(), GetPerspective(), Camera3D::GetPosition(), Viewport3D::SetDeviceWindow(), Camera3D::SetFocalLength(), Camera3D::SetPosition(), Viewport3D::SetProjection(), and Camera3D::SetViewWindow().
Referenced by E3dScene().
|
inline |
Definition at line 115 of file scene3d.hxx.
Referenced by E3dView::DrawMarkedObj().
|
overridevirtual |
bNotMyself | = true: set only ObjList to dirty, don't mark this object as dirty. |
This is needed for instance for NbcMove, because usually one moves SnapRect and aOutRect at the same time to avoid recomputation.
Reimplemented from SdrObject.
Definition at line 812 of file scene3d.cxx.
References a, SdrObjList::GetObj(), SdrObjList::GetObjCount(), and SdrObject::SetRectsDirty().
Referenced by Svx3DPreviewControl::Construct(), Svx3DLightControl::Construct2(), EnhancedCustomShape3d::Create3DObject(), EndCreate(), NbcRotate(), NbcSetSnapRect(), Notify(), operator=(), SetAllSceneRectsDirty(), SetCamera(), and StructureChanged().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 736 of file scene3d.cxx.
References a, SdrObjList::GetObj(), SdrObjList::GetObjCount(), and E3dObject::SetSelected().
Referenced by E3dView::CreateMarkedObjModel(), and E3dView::DrawMarkedObj().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 608 of file scene3d.cxx.
References E3dObject::maTransformation, and E3dObject::SetTransform().
Referenced by Svx3DPreviewControl::Construct(), Svx3DLightControl::Construct2(), and E3dView::ConvertMarkedObjTo3D().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 892 of file scene3d.cxx.
References a, SdrObjList::GetObj(), SdrObjList::GetObjCount(), and E3dObject::SetTransformChanged().
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 344 of file scene3d.cxx.
References getRootE3dSceneFromE3dObject(), ImpCleanup3DDepthMapper(), mbSkipSettingDirty, SetRectsDirty(), and E3dObject::StructureChanged().
Referenced by InsertObject(), NbcInsertObject(), NbcRemoveObject(), sdr::properties::E3dSceneProperties::PostItemChange(), RemoveObject(), and E3dObject::StructureChanged().
void E3dScene::SuspendReportingDirtyRects | ( | ) |
Definition at line 452 of file scene3d.cxx.
References getRootE3dSceneFromE3dObject(), and mbSkipSettingDirty.
|
overridevirtual |
Polygon dragged by the user when creating the object.
Reimplemented from SdrObject.
Definition at line 690 of file scene3d.cxx.
References TakeXorPoly().
|
overridevirtual |
|
overridevirtual |
Reimplemented from E3dObject.
Definition at line 575 of file scene3d.cxx.
References aName, SdrObject::GetName(), sName, and SvxResId().
|
overridevirtual |
The Xor-Polygon is required by the View to drag the object.
All polygons within the PolyPolygon are interpreted as PolyLine. To get a closed Polygon, close it explicitly.
Reimplemented from SdrObject.
Definition at line 229 of file scene3d.cxx.
References basegfx::utils::createB2DPolyPolygonFromB3DPolyPolygon(), E3dObject::CreateWireframe(), sdr::contact::ViewContactOfE3dScene::getObjectTransformation(), SdrObject::GetViewContact(), sdr::contact::ViewContactOfE3dScene::getViewInformation3D(), and basegfx::B2DPolyPolygon::transform().
Referenced by TakeCreatePoly().
|
protected |
Definition at line 65 of file scene3d.hxx.
Referenced by NbcSetSnapRect(), operator=(), RecalcSnapRect(), RestGeoData(), SaveGeoData(), SetCamera(), and SetDefaultAttributes().
|
protected |
Definition at line 64 of file scene3d.hxx.
Referenced by NbcSetSnapRect(), operator=(), and SetDefaultAttributes().
|
protected |
Definition at line 70 of file scene3d.hxx.
|
protected |
Definition at line 72 of file scene3d.hxx.
Referenced by ResumeReportingDirtyRects(), StructureChanged(), and SuspendReportingDirtyRects().
|
mutableprotected |
Definition at line 67 of file scene3d.hxx.
Referenced by ImpCleanup3DDepthMapper(), and RemapOrdNum().