LibreOffice Module chart2 (master) 1
|
The VDiagram is responsible to generate the visible parts of the Diagram that is wall, floor, axes and data series. More...
#include <VDiagram.hxx>
Public Member Functions | |
VDiagram (const rtl::Reference<::chart::Diagram > &xDiagram, const css::drawing::Direction3D &rPreferredAspectRatio, sal_Int32 nDimension) | |
~VDiagram () | |
void | init (const rtl::Reference< SvxShapeGroupAnyD > &xTarget) |
void | createShapes (const css::awt::Point &rPos, const css::awt::Size &rSize) |
const rtl::Reference< SvxShapeGroupAnyD > & | getCoordinateRegion () const |
basegfx::B2IRectangle | getCurrentRectangle () const |
Get current bounding rectangle for the diagram without axes. More... | |
void | reduceToMinimumSize () |
::basegfx::B2IRectangle | adjustPosAndSize (const css::awt::Point &rPos, const css::awt::Size &rAvailableSize) |
::basegfx::B2IRectangle | adjustInnerSize (const ::basegfx::B2IRectangle &rConsumedOuterRect) |
Private Member Functions | |
void | createShapes_2d () |
void | createShapes_3d () |
::basegfx::B2IRectangle | adjustPosAndSize_2d (const css::awt::Point &rPos, const css::awt::Size &rAvailableSize) |
::basegfx::B2IRectangle | adjustPosAndSize_3d (const css::awt::Point &rPos, const css::awt::Size &rAvailableSize) |
void | adjustAspectRatio3d (const css::awt::Size &rAvailableSize) |
VDiagram (const VDiagram &rD)=delete | |
Private Attributes | |
rtl::Reference< SvxShapeGroupAnyD > | m_xTarget |
rtl::Reference< SvxShapeGroupAnyD > | m_xOuterGroupShape |
rtl::Reference< SvxShapeGroupAnyD > | m_xCoordinateRegionShape |
rtl::Reference< SvxShapeRect > | m_xWall2D |
sal_Int32 | m_nDimensionCount |
rtl::Reference< ::chart::Diagram > | m_xDiagram |
css::drawing::Direction3D | m_aPreferredAspectRatio |
css::uno::Reference< css::beans::XPropertySet > | m_xAspectRatio3D |
double | m_fXAnglePi |
double | m_fYAnglePi |
double | m_fZAnglePi |
css::awt::Point | m_aAvailablePosIncludingAxes |
css::awt::Size | m_aAvailableSizeIncludingAxes |
css::awt::Point | m_aCurrentPosWithoutAxes |
css::awt::Size | m_aCurrentSizeWithoutAxes |
bool | m_bRightAngledAxes |
The VDiagram is responsible to generate the visible parts of the Diagram that is wall, floor, axes and data series.
The axes and data series are subobjects which are created and managed by the diagram.
Definition at line 45 of file VDiagram.hxx.
chart::VDiagram::VDiagram | ( | const rtl::Reference<::chart::Diagram > & | xDiagram, |
const css::drawing::Direction3D & | rPreferredAspectRatio, | ||
sal_Int32 | nDimension | ||
) |
chart::VDiagram::~VDiagram | ( | ) |
Definition at line 71 of file VDiagram.cxx.
|
privatedelete |
|
private |
Definition at line 261 of file VDiagram.cxx.
References chart::BaseGFXHelper::B3DHomMatrixToHomogenMatrix(), FIXED_SIZE_FOR_3D_CHART_VOLUME, chart::lcl_getE3dScene(), basegfx::B3DHomMatrix::scale(), TOOLS_WARN_EXCEPTION, basegfx::B3DHomMatrix::translate(), and UNO_NAME_3D_TRANSFORM_MATRIX.
basegfx::B2IRectangle chart::VDiagram::adjustInnerSize | ( | const ::basegfx::B2IRectangle & | rConsumedOuterRect | ) |
Definition at line 652 of file VDiagram.cxx.
References abs(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), and chart::BaseGFXHelper::makeRectangle().
Referenced by chart::ChartView::impl_createDiagramAndContent().
basegfx::B2IRectangle chart::VDiagram::adjustPosAndSize | ( | const css::awt::Point & | rPos, |
const css::awt::Size & | rAvailableSize | ||
) |
Definition at line 91 of file VDiagram.cxx.
References chart::BaseGFXHelper::B2IRectangleToAWTPoint(), chart::BaseGFXHelper::B2IRectangleToAWTSize(), basegfx::Range2D< typename TYPE, typename TRAITS >::intersect(), and chart::BaseGFXHelper::makeRectangle().
|
private |
Definition at line 105 of file VDiagram.cxx.
References FIXED_SIZE_FOR_3D_CHART_VOLUME, and chart::BaseGFXHelper::makeRectangle().
|
private |
Definition at line 411 of file VDiagram.cxx.
References chart::BaseGFXHelper::makeRectangle().
void chart::VDiagram::createShapes | ( | const css::awt::Point & | rPos, |
const css::awt::Size & | rSize | ||
) |
Definition at line 80 of file VDiagram.cxx.
Referenced by chart::ChartView::impl_createDiagramAndContent().
|
private |
Definition at line 131 of file VDiagram.cxx.
References m_xTarget, chart::OBJECTTYPE_DIAGRAM_WALL, TOOLS_WARN_EXCEPTION, u, and UNO_NAME_MISC_OBJ_NAME.
|
private |
Definition at line 428 of file VDiagram.cxx.
References chart::BaseGFXHelper::B3DHomMatrixToHomogenMatrix(), chart::CuboidPlanePosition_Bottom, chart::CuboidPlanePosition_Front, chart::CuboidPlanePosition_Right, DBG_UNHANDLED_EXCEPTION, FIXED_SIZE_FOR_3D_CHART_VOLUME, GRID_TO_WALL_DISTANCE, chart::Stripe::InvertNormal(), chart::lcl_getE3dScene(), chart::lcl_setLightSources(), m_xTarget, chart::OBJECTTYPE_DIAGRAM_FLOOR, chart::OBJECTTYPE_DIAGRAM_WALL, basegfx::B3DHomMatrix::rotate(), basegfx::B3DHomMatrix::scale(), basegfx::B3DHomMatrix::shearXY(), TOOLS_WARN_EXCEPTION, basegfx::B3DHomMatrix::translate(), u, UNO_NAME_3D_SCENE_AMBIENTCOLOR, UNO_NAME_3D_SCENE_DISTANCE, UNO_NAME_3D_SCENE_PERSPECTIVE, UNO_NAME_3D_SCENE_SHADE_MODE, UNO_NAME_3D_SCENE_TWO_SIDED_LIGHTING, and UNO_NAME_3D_TRANSFORM_MATRIX.
|
inline |
Definition at line 60 of file VDiagram.hxx.
References m_xCoordinateRegionShape.
Referenced by chart::ChartView::impl_createDiagramAndContent().
basegfx::B2IRectangle chart::VDiagram::getCurrentRectangle | ( | ) | const |
Get current bounding rectangle for the diagram without axes.
Definition at line 629 of file VDiagram.cxx.
References chart::BaseGFXHelper::makeRectangle().
Referenced by chart::ChartView::impl_createDiagramAndContent().
void chart::VDiagram::init | ( | const rtl::Reference< SvxShapeGroupAnyD > & | xTarget | ) |
Definition at line 75 of file VDiagram.cxx.
References m_xTarget, and xTarget.
Referenced by chart::ChartView::impl_createDiagramAndContent().
void chart::VDiagram::reduceToMinimumSize | ( | ) |
Definition at line 634 of file VDiagram.cxx.
Referenced by chart::ChartView::impl_createDiagramAndContent().
|
private |
Definition at line 106 of file VDiagram.hxx.
|
private |
Definition at line 107 of file VDiagram.hxx.
|
private |
Definition at line 109 of file VDiagram.hxx.
|
private |
Definition at line 110 of file VDiagram.hxx.
|
private |
Definition at line 99 of file VDiagram.hxx.
|
private |
Definition at line 112 of file VDiagram.hxx.
|
private |
Definition at line 102 of file VDiagram.hxx.
|
private |
Definition at line 103 of file VDiagram.hxx.
|
private |
Definition at line 104 of file VDiagram.hxx.
|
private |
Definition at line 96 of file VDiagram.hxx.
|
private |
Definition at line 100 of file VDiagram.hxx.
|
private |
Definition at line 93 of file VDiagram.hxx.
Referenced by getCoordinateRegion().
|
private |
Definition at line 97 of file VDiagram.hxx.
|
private |
Definition at line 91 of file VDiagram.hxx.
|
private |
Definition at line 88 of file VDiagram.hxx.
|
private |
Definition at line 94 of file VDiagram.hxx.