summaryrefslogtreecommitdiff
path: root/include/svx/view3d.hxx
diff options
context:
space:
mode:
authorPhilipp Weissenbacher <p.weissenbacher@gmail.com>2013-07-31 22:21:55 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-08-06 11:42:48 +0200
commit51f9af747fce6f46df4422677943dae73f839876 (patch)
tree17a712f0c01f02ba37e590329b772757626ede6a /include/svx/view3d.hxx
parent389bdc162415abff78971b1ce7c5d47482e1d37b (diff)
Translate German comments, fix some WS
Conflicts: include/svx/unoapi.hxx Change-Id: Icd0adbe98727a83fae3822863f7c6395f7474882
Diffstat (limited to 'include/svx/view3d.hxx')
-rw-r--r--include/svx/view3d.hxx51
1 files changed, 23 insertions, 28 deletions
diff --git a/include/svx/view3d.hxx b/include/svx/view3d.hxx
index 7f4d52307450..70da2bc7b515 100644
--- a/include/svx/view3d.hxx
+++ b/include/svx/view3d.hxx
@@ -26,39 +26,37 @@
#include <basegfx/point/b2dpoint.hxx>
#include "svx/svxdllapi.h"
-//************************************************************
-// Vorausdeklarationen
-//************************************************************
+/*
+ * Forward declarations
+ */
class E3dObject;
class E3dScene;
class Impl3DMirrorConstructOverlay;
-/*************************************************************************
-|*
-|* Ableitung von SdrView zur Bearbeitung von 3D-Objekten
-|*
-\************************************************************************/
+/**
+ * Derived class of SdrView to edit 3D objects.
+ */
class SVX_DLLPUBLIC E3dView : public SdrView
{
protected:
E3dDefaultAttributes a3DDefaultAttr;
- MouseEvent aMouseEvent; // Die Parameter der letzten Events (Mouse, Keyboard)
- Color aDefaultLightColor; // dito mit den Farben
+ MouseEvent aMouseEvent; // The parameters of the last Events (Mouse, Keyboard)
+ Color aDefaultLightColor; // The paramaters for the last colors
Color aDefaultAmbientColor;
- double fDefaultScaleX; // Verzerrungen
+ double fDefaultScaleX; // Scaling
double fDefaultScaleY;
double fDefaultScaleZ;
- double fDefaultRotateX; // und Drehungen
+ double fDefaultRotateX; // and Rotation
double fDefaultRotateY;
double fDefaultRotateZ;
- double fDefaultExtrusionDeepth; // Extrusionstiefe
- double fDefaultLightIntensity; // Intensitaeten der beiden (notwendigen) Licht-
- double fDefaultAmbientIntensity; // quellen
- long nHDefaultSegments; // wieviele HSegmente braucht mein Lathe-Ojekt
- long nVDefaultSegments; // wieviele VSegmente braucht mein Lathe-Ojekt
+ double fDefaultExtrusionDeepth; // Extrusion depth
+ double fDefaultLightIntensity; // Intensity of the two (necessary) light sources.
+ double fDefaultAmbientIntensity;
+ long nHDefaultSegments; // Amount of HSegments required by the Lathe object
+ long nVDefaultSegments; // Amount of VSegments required by the Lathe object
E3dDragConstraint eDragConstraint;
@@ -83,24 +81,22 @@ public:
E3dView(SdrModel* pModel, OutputDevice* pOut = 0L);
virtual ~E3dView();
- // Alle markierten Objekte auf dem angegebenen OutputDevice ausgeben.
+ // Output all marked Objects on the given OutputDevice.
virtual void DrawMarkedObj(OutputDevice& rOut) const;
- // Zugriff auf die Default-Attribute
+ // Access to the default attributes.
E3dDefaultAttributes& Get3DDefaultAttributes() { return a3DDefaultAttr; }
virtual sal_Bool BegDragObj(const Point& rPnt, OutputDevice* pOut = NULL, SdrHdl* pHdl = NULL, short nMinMov = -3, SdrDragMethod* pForcedMeth = NULL);
virtual void CheckPossibilities();
- // Event setzen/rausruecken
+ // Get/Set Event
void SetMouseEvent(const MouseEvent& rNew) { aMouseEvent = rNew; }
const MouseEvent& GetMouseEvent() { return aMouseEvent; }
- // Model holen ueberladen, da bei einzelnen 3D Objekten noch eine Szene
- // untergeschoben werden muss
+ // Override getting the model, as we need to supply a Scene together with individual 3D Objects.
virtual SdrModel* GetMarkedObjModel() const;
- // Bei Paste muss - falls in eine Scene eingefuegt wird - die
- // Objekte der Szene eingefuegt werden, die Szene selbst aber nicht
+ // On Paste: We need to insert the objects of the Scene, but not the Scene itself
using SdrView::Paste;
virtual sal_Bool Paste(const SdrModel& rMod, const Point& rPos, SdrObjList* pLst=NULL, sal_uInt32 nOptions=0);
@@ -110,14 +106,13 @@ public:
bool IsConvertTo3DObjPossible() const;
void ConvertMarkedObjTo3D(bool bExtrude=true, basegfx::B2DPoint aPnt1 = basegfx::B2DPoint(0.0, 0.0), basegfx::B2DPoint aPnt2 = basegfx::B2DPoint(0.0, 1.0));
- // Nachtraeglichhe Korrekturmoeglichkeit um alle Extrudes in einer
- // bestimmten Tiefensortierung anzulegen
+ // Means to create all Extrudes in a certain depth order.
void DoDepthArrange(E3dScene* pScene, double fDepth);
void ConvertMarkedToPolyObj(sal_Bool bLineToArea);
E3dScene* SetCurrent3DObj(E3dObject* p3DObj);
void Start3DCreation();
- // migration of overlay
+ // Migration of overlay
bool Is3DRotationCreationActive() const { return (0L != mpMirrorOverlay); }
virtual void MovAction(const Point& rPnt);
@@ -261,6 +256,6 @@ public:
void Set3DAttributes(const SfxItemSet& rAttr, E3dScene* pInScene = NULL, sal_Bool bOnly3DAttr=sal_False);
};
-#endif // _E3D_VIEW3D_HXX
+#endif // _E3D_VIEW3D_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */