LibreOffice Module chart2 (master) 1
Static Public Member Functions | List of all members
chart::ThreeDHelper Class Reference

#include <ThreeDHelper.hxx>

Static Public Member Functions

static css::drawing::CameraGeometry getDefaultCameraGeometry (bool bPie=false)
 Returns the default camera geometry that is set in the Diagram CTOR. More...
 
static void adaptRadAnglesForRightAngledAxes (double &rfXAngleRad, double &rfYAngleRad)
 
static double getXDegreeAngleLimitForRightAngledAxes ()
 
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 SAL_DLLPRIVATE void convertXYZAngleRadToElevationRotationDeg (sal_Int32 &rnElevationDeg, sal_Int32 &rnRotationDeg, double fXRad, double fYRad, double fZRad)
 
static SAL_DLLPRIVATE void ensureCameraDistanceRange (double &rfCameraDistance)
 
static SAL_DLLPRIVATE void getCameraDistanceRange (double &rfMinimumDistance, double &rfMaximumDistance)
 
static double CameraDistanceToPerspective (double fCameraDistance)
 
static double PerspectiveToCameraDistance (double fPerspective)
 
static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardLeftWall (const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardBackWall (const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static CuboidPlanePosition getAutomaticCuboidPlanePositionForStandardBottom (const rtl::Reference< ::chart::Diagram > &xDiagram)
 
static void getRoundedEdgesAndObjectLines (const rtl::Reference< ::chart::Diagram > &xDiagram, sal_Int32 &rnRoundedEdges, sal_Int32 &rnObjectLines)
 
static void setRoundedEdgesAndObjectLines (const rtl::Reference< ::chart::Diagram > &xDiagram, sal_Int32 nRoundedEdges, sal_Int32 nObjectLines)
 

Detailed Description

Definition at line 50 of file ThreeDHelper.hxx.

Member Function Documentation

◆ adaptRadAnglesForRightAngledAxes()

void chart::ThreeDHelper::adaptRadAnglesForRightAngledAxes ( double &  rfXAngleRad,
double &  rfYAngleRad 
)
static

◆ CameraDistanceToPerspective()

double chart::ThreeDHelper::CameraDistanceToPerspective ( double  fCameraDistance)
static

Definition at line 627 of file ThreeDHelper.cxx.

References a, and getCameraDistanceRange().

Referenced by chart::Diagram::getFastPropertyValue().

◆ convertElevationRotationDegToXYZAngleRad()

void chart::ThreeDHelper::convertElevationRotationDegToXYZAngleRad ( sal_Int32  nElevationDeg,
sal_Int32  nRotationDeg,
double &  rfXAngleRad,
double &  rfYAngleRad,
double &  rfZAngleRad 
)
static

◆ convertXYZAngleRadToElevationRotationDeg()

void chart::ThreeDHelper::convertXYZAngleRadToElevationRotationDeg ( sal_Int32 &  rnElevationDeg,
sal_Int32 &  rnRotationDeg,
double  fXRad,
double  fYRad,
double  fZRad 
)
static

Definition at line 293 of file ThreeDHelper.cxx.

References E, basegfx::fround(), R, basegfx::rad2deg(), x, y, and z.

Referenced by chart::Diagram::getRotation().

◆ ensureCameraDistanceRange()

void chart::ThreeDHelper::ensureCameraDistanceRange ( double &  rfCameraDistance)
static

Definition at line 617 of file ThreeDHelper.cxx.

References getCameraDistanceRange().

Referenced by chart::Diagram::getCameraDistance().

◆ getAutomaticCuboidPlanePositionForStandardBackWall()

CuboidPlanePosition chart::ThreeDHelper::getAutomaticCuboidPlanePositionForStandardBackWall ( const rtl::Reference< ::chart::Diagram > &  xDiagram)
static

◆ getAutomaticCuboidPlanePositionForStandardBottom()

CuboidPlanePosition chart::ThreeDHelper::getAutomaticCuboidPlanePositionForStandardBottom ( const rtl::Reference< ::chart::Diagram > &  xDiagram)
static

◆ getAutomaticCuboidPlanePositionForStandardLeftWall()

CuboidPlanePosition chart::ThreeDHelper::getAutomaticCuboidPlanePositionForStandardLeftWall ( const rtl::Reference< ::chart::Diagram > &  xDiagram)
static

◆ getCameraDistanceRange()

void chart::ThreeDHelper::getCameraDistanceRange ( double &  rfMinimumDistance,
double &  rfMaximumDistance 
)
static

◆ getDefaultCameraGeometry()

drawing::CameraGeometry chart::ThreeDHelper::getDefaultCameraGeometry ( bool  bPie = false)
static

Returns the default camera geometry that is set in the Diagram CTOR.

This is not the property default!

Definition at line 70 of file ThreeDHelper.cxx.

Referenced by chart::Diagram::getCameraDistance(), chart::lcl_getCameraMatrix(), chart::Diagram::setCameraDistance(), and chart::Diagram::setDefaultRotation().

◆ getRoundedEdgesAndObjectLines()

void chart::ThreeDHelper::getRoundedEdgesAndObjectLines ( const rtl::Reference< ::chart::Diagram > &  xDiagram,
sal_Int32 &  rnRoundedEdges,
sal_Int32 &  rnObjectLines 
)
static

◆ getValueClippedToRange()

double chart::ThreeDHelper::getValueClippedToRange ( double  fValue,
const double &  fPositivLimit 
)
static

Definition at line 595 of file ThreeDHelper.cxx.

Referenced by adaptRadAnglesForRightAngledAxes(), and chart::IMPL_LINK_NOARG().

◆ getXDegreeAngleLimitForRightAngledAxes()

static double chart::ThreeDHelper::getXDegreeAngleLimitForRightAngledAxes ( )
inlinestatic

Definition at line 63 of file ThreeDHelper.hxx.

Referenced by adaptRadAnglesForRightAngledAxes(), and chart::IMPL_LINK_NOARG().

◆ getYDegreeAngleLimitForRightAngledAxes()

static double chart::ThreeDHelper::getYDegreeAngleLimitForRightAngledAxes ( )
inlinestatic

Definition at line 64 of file ThreeDHelper.hxx.

Referenced by adaptRadAnglesForRightAngledAxes(), and chart::IMPL_LINK_NOARG().

◆ PerspectiveToCameraDistance()

double chart::ThreeDHelper::PerspectiveToCameraDistance ( double  fPerspective)
static

Definition at line 641 of file ThreeDHelper.cxx.

References a, and getCameraDistanceRange().

Referenced by chart::Diagram::setFastPropertyValue_NoBroadcast().

◆ setRoundedEdgesAndObjectLines()

void chart::ThreeDHelper::setRoundedEdgesAndObjectLines ( const rtl::Reference< ::chart::Diagram > &  xDiagram,
sal_Int32  nRoundedEdges,
sal_Int32  nObjectLines 
)
static

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