diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-05-15 07:25:33 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-05-15 07:25:33 +0000 |
commit | 8dda0ae233b3d5c434ceddd1de1294a1b0b9b809 (patch) | |
tree | d990918b1ada366af8e82d19edee287fe7ee9661 /chart2 | |
parent | 10dd17f7788a51de384180035420ae268cb441b5 (diff) |
INTEGRATION: CWS chart26_DEV300 (1.2.110); FILE MERGED
2008/04/23 19:17:35 iha 1.2.110.5: #i72994# good automatic placement of walls, grid lines and axes labels dependent on 3D rotation
2008/04/18 15:27:41 iha 1.2.110.4: #i72994# simpler access to 3D settings
2008/04/09 08:11:40 iha 1.2.110.3: #i72994# simpler access to 3D settings
2008/04/08 15:54:12 iha 1.2.110.2: #i72994# simpler access to 3D settings
2008/04/07 15:48:41 iha 1.2.110.1: #i72994# simpler access to 3D settings - joined from CWS xmlfilter04
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/inc/ThreeDHelper.hxx | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/chart2/source/inc/ThreeDHelper.hxx b/chart2/source/inc/ThreeDHelper.hxx index 2c82a7ee6c70..738cde2bb203 100644 --- a/chart2/source/inc/ThreeDHelper.hxx +++ b/chart2/source/inc/ThreeDHelper.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ThreeDHelper.hxx,v $ - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -51,6 +51,16 @@ enum ThreeDLookScheme ThreeDLookScheme_Unknown }; +enum CuboidPlanePosition +{ + CuboidPlanePosition_Left, + CuboidPlanePosition_Right, + CuboidPlanePosition_Top, + CuboidPlanePosition_Bottom, + CuboidPlanePosition_Front, + CuboidPlanePosition_Back +}; + class ThreeDHelper { public: @@ -90,6 +100,14 @@ public: static double getYDegreeAngleLimitForRightAngledAxes(); static double getValueClippedToRange( double fValue, const double& fPositivLimit ); + static void convertElevationRotationDegToXYZAngleRad( + sal_Int32 nElevationDeg, sal_Int32 nRotationDeg + , double& rfXAngleRad, double& rfYAngleRad, double& rfZAngleRad ); + + static void convertXYZAngleRadToElevationRotationDeg( + sal_Int32& rnElevationDeg, sal_Int32& rnRotationDeg + , double fXRad, double fYRad, double fZRad ); + static double getCameraDistance( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xSceneProperties ); @@ -103,6 +121,23 @@ public: static double CameraDistanceToPerspective( double fCameraDistance ); static double PerspectiveToCameraDistance( double fPerspective ); + static void set3DSettingsToDefault( const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xSceneProperties ); + static void setDefaultRotation( const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xSceneProperties ); + static void setDefaultIllumination( const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xSceneProperties ); + + static void setDefaultRotation( const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xSceneProperties, bool bPieOrDonut ); + + static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardLeftWall( const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xSceneProperties ); + static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardBackWall(const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xSceneProperties ); + static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardBottom(const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xSceneProperties ); + static ThreeDLookScheme detectScheme( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >& xDiagram ); static void setScheme( const ::com::sun::star::uno::Reference< |