LibreOffice Module chart2 (master) 1
|
#include <ShapeFactory.hxx>
Public Types | |
enum class | StackPosition { Top , Bottom } |
Public Member Functions | |
ShapeFactory ()=delete | |
Static Public Member Functions | |
static rtl::Reference< SvxShapeGroup > | createGroup2D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const OUString &aName=OUString()) |
static rtl::Reference< SvxShapeGroup > | createGroup2D (const rtl::Reference< SvxDrawPage > &xTarget, const OUString &aName=OUString()) |
static rtl::Reference< Svx3DSceneObject > | createGroup3D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const OUString &aName=OUString()) |
static rtl::Reference< Svx3DExtrudeObject > | createCube (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::Position3D &rPosition, const css::drawing::Direction3D &rSize, sal_Int32 nRotateZAngleHundredthDegree, const css::uno::Reference< css::beans::XPropertySet > &xSourceProp, const tPropertyNameMap &rPropertyNameMap, bool bRounded=false) |
static rtl::Reference< Svx3DLatheObject > | createCylinder (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::Position3D &rPosition, const css::drawing::Direction3D &rSize, sal_Int32 nRotateZAngleHundredthDegree) |
static rtl::Reference< Svx3DSceneObject > | createPyramid (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::Position3D &rPosition, const css::drawing::Direction3D &rSize, double fTopHeight, bool bRotateZ, const css::uno::Reference< css::beans::XPropertySet > &xSourceProp, const tPropertyNameMap &rPropertyNameMap) |
static rtl::Reference< Svx3DLatheObject > | createCone (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::Position3D &rPosition, const css::drawing::Direction3D &rSize, double fTopHeight, sal_Int32 nRotateZAngleHundredthDegree) |
static rtl::Reference< SvxShapePolyPolygon > | createPieSegment2D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, double fUnitCircleStartAngleDegree, double fUnitCircleWidthAngleDegree, double fUnitCircleInnerRadius, double fUnitCircleOuterRadius, const css::drawing::Direction3D &rOffset, const css::drawing::HomogenMatrix &rUnitCircleToScene) |
static rtl::Reference< Svx3DExtrudeObject > | createPieSegment (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, double fUnitCircleStartAngleDegree, double fUnitCircleWidthAngleDegree, double fUnitCircleInnerRadius, double fUnitCircleOuterRadius, const css::drawing::Direction3D &rOffset, const css::drawing::HomogenMatrix &rUnitCircleToScene, double fDepth) |
static rtl::Reference< Svx3DPolygonObject > | createStripe (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const Stripe &rStripe, const css::uno::Reference< css::beans::XPropertySet > &xSourceProp, const tPropertyNameMap &rPropertyNameMap, bool bDoubleSided, short nRotatedTexture=0, bool bFlatNormals=true) |
static rtl::Reference< Svx3DExtrudeObject > | createArea3D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const std::vector< std::vector< css::drawing::Position3D > > &rPolyPolygon, double fDepth) |
static rtl::Reference< SvxShapePolyPolygon > | createArea2D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const std::vector< std::vector< css::drawing::Position3D > > &rPolyPolygon) |
static rtl::Reference< SvxShapePolyPolygon > | createSymbol2D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::Position3D &rPos, const css::drawing::Direction3D &rSize, sal_Int32 nStandardSymbol, sal_Int32 nBorderColor, sal_Int32 nFillColor) |
static rtl::Reference< SvxGraphicObject > | createGraphic2D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::Position3D &rPos, const css::drawing::Direction3D &rSize, const css::uno::Reference< css::graphic::XGraphic > &xGraphic) |
static rtl::Reference< SvxShapePolyPolygon > | createLine2D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::PointSequenceSequence &rPoints, const VLineProperties *pLineProperties=nullptr) |
static rtl::Reference< SvxShapePolyPolygon > | createLine2D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const std::vector< std::vector< css::drawing::Position3D > > &rPoints, const VLineProperties *pLineProperties=nullptr) |
static rtl::Reference< SvxShapePolyPolygon > | createLine (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::awt::Size &rSize, const css::awt::Point &rPosition) |
static rtl::Reference< Svx3DPolygonObject > | createLine3D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const std::vector< std::vector< css::drawing::Position3D > > &rPoints, const VLineProperties &rLineProperties) |
static rtl::Reference< SvxShapeCircle > | createCircle2D (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::Position3D &rPos, const css::drawing::Direction3D &rSize) |
static rtl::Reference< SvxShapeCircle > | createCircle (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::awt::Size &rSize, const css::awt::Point &rPosition) |
static rtl::Reference< SvxShapeText > | createText (const rtl::Reference< SvxShapeGroupAnyD > &xTarget2D, const OUString &rText, const tNameSequence &rPropNames, const tAnySequence &rPropValues, const css::uno::Any &rATransformation) |
static rtl::Reference< SvxShapeText > | createText (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > &xFormattedString, const tNameSequence &rPropNames, const tAnySequence &rPropValues, const css::uno::Any &rATransformation) |
static rtl::Reference< SvxShapeText > | createText (const rtl::Reference< SvxShapeGroupAnyD > &xTarget2D, const css::awt::Size &rSize, const css::awt::Point &rPosition, css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > &xFormattedString, const css::uno::Reference< css::beans::XPropertySet > &xTextProperties, double nRotation, const OUString &aName, sal_Int32 nTextMaxWidth) |
static rtl::Reference< SvxTableShape > | createTable (rtl::Reference< SvxShapeGroupAnyD > const &xTarget, OUString const &rName=OUString()) |
static rtl::Reference< SvxShapeRect > | createInvisibleRectangle (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::awt::Size &rSize) |
static rtl::Reference< SvxShapeRect > | createRectangle (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::awt::Size &rSize, const css::awt::Point &rPosition, const tNameSequence &rPropNames, const tAnySequence &rPropValues, StackPosition ePos=StackPosition::Top) |
static rtl::Reference< SvxShapeRect > | createRectangle (const rtl::Reference< SvxShapeGroupAnyD > &xTarget) |
static rtl::Reference< SvxShapeGroupAnyD > | getOrCreateChartRootShape (const rtl::Reference< SvxDrawPage > &xPage) |
static void | setPageSize (const rtl::Reference< SvxShapeGroupAnyD > &xChartShapes, const css::awt::Size &rSize) |
static rtl::Reference< SvxShapeGroupAnyD > | getChartRootShape (const rtl::Reference< SvxDrawPage > &xPage) |
static void | makeShapeInvisible (const rtl::Reference< SvxShape > &rShape) |
static void | setShapeName (const rtl::Reference< SvxShape > &xShape, const OUString &rName) |
static OUString | getShapeName (const css::uno::Reference< css::drawing::XShape > &xShape) |
static css::uno::Any | makeTransformation (const css::awt::Point &rScreenPosition2D, double fRotationAnglePi=0.0) |
static OUString | getStackedString (const OUString &rString, bool bStacked) |
static bool | hasPolygonAnyLines (const std::vector< std::vector< css::drawing::Position3D > > &rPoly) |
static bool | isPolygonEmptyOrSinglePoint (const css::drawing::PolyPolygonShape3D &rPoly) |
static bool | isPolygonEmptyOrSinglePoint (const std::vector< std::vector< css::drawing::Position3D > > &rPoly) |
static void | closePolygon (css::drawing::PolyPolygonShape3D &rPoly) |
static void | closePolygon (std::vector< std::vector< css::drawing::Position3D > > &rPoly) |
static css::awt::Size | calculateNewSizeRespectingAspectRatio (const css::awt::Size &rTargetSize, const css::awt::Size &rSourceSizeWithCorrectAspectRatio) |
static css::awt::Point | calculateTopLeftPositionToCenterObject (const css::awt::Point &rTargetAreaPosition, const css::awt::Size &rTargetAreaSize, const css::awt::Size &rObjectSize) |
::basegfx::B2IRectangle | getRectangleOfShape (SvxShape &rShape) |
static css::awt::Size | getSizeAfterRotation (SvxShape &rShape, double fRotationAngleDegree) |
static void | removeSubShapes (const rtl::Reference< SvxShapeGroupAnyD > &xShapes) |
static sal_Int32 | getSymbolCount () |
Static Private Member Functions | |
static rtl::Reference< Svx3DExtrudeObject > | impl_createCube (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::Position3D &rPosition, const css::drawing::Direction3D &rSize, sal_Int32 nRotateZAngleHundredthDegree, bool bRounded) |
static rtl::Reference< Svx3DLatheObject > | impl_createConeOrCylinder (const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const css::drawing::Position3D &rPosition, const css::drawing::Direction3D &rSize, double fTopHeight, sal_Int32 nRotateZAngleHundredthDegree, bool bCylinder) |
Definition at line 70 of file ShapeFactory.hxx.
|
strong |
Enumerator | |
---|---|
Top | |
Bottom |
Definition at line 73 of file ShapeFactory.hxx.
|
delete |
|
static |
Definition at line 2456 of file ShapeFactory.cxx.
|
static |
Definition at line 2471 of file ShapeFactory.cxx.
|
static |
Referenced by createPieSegment().
|
static |
Definition at line 2446 of file ShapeFactory.cxx.
References chart::AddPointToPoly(), and isPolygonEmptyOrSinglePoint().
|
static |
Definition at line 1112 of file ShapeFactory.cxx.
References chart::PolyToB2DPolyPolygon(), TOOLS_WARN_EXCEPTION, and xTarget.
|
static |
Definition at line 1057 of file ShapeFactory.cxx.
References aPropertyValues, chart::B3DHomMatrixToHomogenMatrix(), TOOLS_WARN_EXCEPTION, basegfx::B3DHomMatrix::translate(), UNO_NAME_3D_DOUBLE_SIDED, UNO_NAME_3D_EXTRUDE_DEPTH, UNO_NAME_3D_PERCENT_DIAGONAL, UNO_NAME_3D_POLYPOLYGON3D, UNO_NAME_3D_TRANSFORM_MATRIX, and xTarget.
|
static |
Definition at line 1749 of file ShapeFactory.cxx.
References xTarget.
|
static |
Definition at line 1710 of file ShapeFactory.cxx.
References chart::Direction3DToAWTSize(), chart::Position3DToAWTPoint(), TOOLS_WARN_EXCEPTION, UNO_NAME_CIRCKIND, and xTarget.
|
static |
Definition at line 648 of file ShapeFactory.cxx.
References impl_createConeOrCylinder(), and xTarget.
|
static |
Definition at line 388 of file ShapeFactory.cxx.
References impl_createCube(), chart::PropertyMapper::setMappedProperties(), TOOLS_WARN_EXCEPTION, and xTarget.
Referenced by chart::PlottingPositionHelper::transformSceneToScreenPosition().
|
static |
Definition at line 478 of file ShapeFactory.cxx.
References impl_createConeOrCylinder(), and xTarget.
|
static |
Definition at line 1561 of file ShapeFactory.cxx.
References chart::Direction3DToAWTSize(), chart::Position3DToAWTPoint(), TOOLS_WARN_EXCEPTION, and xTarget.
|
static |
Definition at line 1636 of file ShapeFactory.cxx.
References aName, setShapeName(), TOOLS_WARN_EXCEPTION, and xTarget.
|
static |
Definition at line 1604 of file ShapeFactory.cxx.
References aName, setShapeName(), TOOLS_WARN_EXCEPTION, and xTarget.
Referenced by chart::DataPointSymbolSupplier::create2DSymbolList(), chart::VSeriesPlotter::createDataLabel(), chart::PlotterBase::createGroupShape(), chart::VSeriesPlotter::createLegendEntriesForSeries(), chart::PieChart::createShapes(), chart::VLegend::createShapes(), chart::VButton::createShapes(), chart::ChartView::createShapes2D(), chart::VSeriesPlotter::createSymbolsForSeries(), chart::VSeriesPlotter::getLabelsGroupShape(), chart::ChartView::impl_createDiagramAndContent(), chart::VCoordinateSystem::initPlottingTargets(), and chart::VAxisBase::prepareShapeCreation().
|
static |
Definition at line 1668 of file ShapeFactory.cxx.
References aName, chart::B3DHomMatrixToHomogenMatrix(), setShapeName(), TOOLS_WARN_EXCEPTION, UNO_NAME_3D_TRANSFORM_MATRIX, and xTarget.
Referenced by chart::PlotterBase::createGroupShape(), createPyramid(), and chart::VCoordinateSystem::initPlottingTargets().
|
static |
Definition at line 1975 of file ShapeFactory.cxx.
References DBG_UNHANDLED_EXCEPTION, makeShapeInvisible(), and xTarget.
Referenced by chart::ChartView::createShapes2D().
|
static |
Definition at line 1962 of file ShapeFactory.cxx.
References xTarget.
|
static |
Referenced by chart::VSeriesPlotter::addErrorBorder(), chart::VPolarGrid::create2DRadiusGrid(), chart::VSeriesPlotter::createDataLabel(), chart::VSeriesPlotter::createErrorBar(), chart::VSeriesPlotter::createRegressionCurvesShapes(), chart::VCartesianGrid::createShapes(), chart::VPolarAngleAxis::createShapes(), chart::PieChart::createTextLabelShape(), and chart::PieChart::rearrangeLabelToAvoidOverlapIfRequested().
|
static |
Definition at line 1897 of file ShapeFactory.cxx.
References chart::VLineProperties::Color, chart::VLineProperties::DashName, chart::VLineProperties::LineCap, chart::VLineProperties::LineStyle, chart::PolyToPointSequence(), TOOLS_WARN_EXCEPTION, chart::VLineProperties::Transparence, UNO_NAME_LINECAP, UNO_NAME_LINECOLOR, UNO_NAME_LINESTYLE, UNO_NAME_LINETRANSPARENCE, UNO_NAME_LINEWIDTH, UNO_NAME_POLYPOLYGON, chart::VLineProperties::Width, and xTarget.
|
static |
Definition at line 1763 of file ShapeFactory.cxx.
References aPropertyValues, chart::VLineProperties::Color, chart::VLineProperties::LineStyle, TOOLS_WARN_EXCEPTION, chart::VLineProperties::Transparence, UNO_NAME_3D_LINEONLY, UNO_NAME_3D_POLYPOLYGON3D, UNO_NAME_LINECOLOR, UNO_NAME_LINESTYLE, UNO_NAME_LINETRANSPARENCE, UNO_NAME_LINEWIDTH, chart::VLineProperties::Width, and xTarget.
Referenced by chart::VCartesianGrid::createShapes().
|
static |
Definition at line 926 of file ShapeFactory.cxx.
References chart::BezierToPoly(), closePolygon(), basegfx::deg2rad(), chart::getRingBezierCoords(), chart::HomogenMatrixToB3DHomMatrix(), chart::IgnoreZ(), TOOLS_WARN_EXCEPTION, basegfx::B2DHomMatrix::translate(), UNO_NAME_3D_DOUBLE_SIDED, UNO_NAME_3D_EXTRUDE_DEPTH, UNO_NAME_3D_PERCENT_DIAGONAL, UNO_NAME_3D_POLYPOLYGON3D, UNO_NAME_3D_REDUCED_LINE_GEOMETRY, UNO_NAME_3D_TEXTURE_PROJ_X, UNO_NAME_3D_TEXTURE_PROJ_Y, and xTarget.
Referenced by chart::PieChart::createDataPoint().
|
static |
Definition at line 880 of file ShapeFactory.cxx.
References basegfx::deg2rad(), chart::getRingBezierCoords(), chart::HomogenMatrixToB3DHomMatrix(), chart::IgnoreZ(), TOOLS_WARN_EXCEPTION, basegfx::B2DHomMatrix::translate(), and xTarget.
Referenced by chart::PieChart::createDataPoint().
|
static |
Definition at line 488 of file ShapeFactory.cxx.
References createGroup3D(), createStripe(), chart::Stripe::getNormal(), chart::Stripe::InvertNormal(), chart::Stripe::SetManualNormal(), and xTarget.
|
static |
Definition at line 2026 of file ShapeFactory.cxx.
References xTarget.
|
static |
Referenced by chart::VLegend::createShapes().
|
static |
Definition at line 1002 of file ShapeFactory.cxx.
References aPropertyValues, chart::Stripe::getNormalsPolygon(), chart::Stripe::getPolyPolygonShape3D(), chart::Stripe::getTexturePolygon(), chart::PropertyMapper::setMappedProperties(), TOOLS_WARN_EXCEPTION, UNO_NAME_3D_DOUBLE_SIDED, UNO_NAME_3D_LINEONLY, UNO_NAME_3D_NORMALS_KIND, UNO_NAME_3D_NORMALSPOLYGON3D, UNO_NAME_3D_POLYPOLYGON3D, UNO_NAME_3D_TEXTUREPOLYGON3D, and xTarget.
Referenced by createPyramid().
|
static |
Definition at line 1519 of file ShapeFactory.cxx.
References chart::createPolyPolygon_Symbol(), TOOLS_WARN_EXCEPTION, UNO_NAME_FILLCOLOR, UNO_NAME_LINECOLOR, UNO_NAME_POLYPOLYGON, and xTarget.
Referenced by chart::DataPointSymbolSupplier::create2DSymbolList().
|
static |
Definition at line 2538 of file ShapeFactory.cxx.
References setShapeName(), and xTarget.
Referenced by chart::DataTableView::createShapes().
|
static |
|
static |
|
static |
|
static |
Definition at line 2306 of file ShapeFactory.cxx.
References getShapeName(), and nCount.
Referenced by chart::DrawModelWrapper::clearMainDrawPage(), chart::DrawModelWrapper::getChartRootShape(), and getOrCreateChartRootShape().
|
static |
Definition at line 113 of file ShapeFactory.cxx.
References getChartRootShape(), and setShapeName().
Referenced by chart::ChartView::createShapes().
|
static |
Definition at line 2482 of file ShapeFactory.cxx.
References SvxShape::getPosition(), SvxShape::getSize(), and chart::BaseGFXHelper::makeRectangle().
Referenced by chart::ChartView::impl_createDiagramAndContent().
|
static |
Definition at line 2362 of file ShapeFactory.cxx.
References TOOLS_WARN_EXCEPTION, and UNO_NAME_MISC_OBJ_NAME.
Referenced by getChartRootShape().
|
static |
Definition at line 2493 of file ShapeFactory.cxx.
References basegfx::deg2rad(), SvxShape::getSize(), and NormAngle360().
Referenced by chart::VTitle::getFinalSize(), chart::lcl_doesShapeOverlapWithTickmark(), chart::lcl_ResizeTextShapeToFitAvailableSpace(), and chart::VAxisBase::recordMaximumTextSize().
|
static |
Definition at line 2395 of file ShapeFactory.cxx.
Referenced by chart::createSingleLabel(), and chart::VPolarAngleAxis::createTextShapes_ForAngleAxis().
|
inlinestatic |
Definition at line 282 of file ShapeFactory.hxx.
References chart::Symbol_COUNT.
Referenced by chart::DataPointSymbolSupplier::create2DSymbolList(), and chart::createPolyPolygon_Symbol().
|
static |
Definition at line 2414 of file ShapeFactory.cxx.
References i.
|
staticprivate |
!!!!!!! problem in drawing layer: rotation object calculates wrong needed size -> wrong camera (it's a problem with bounding boxes)
Definition at line 657 of file ShapeFactory.cxx.
References aPropertyValues, chart::B3DHomMatrixToHomogenMatrix(), CHART_3DOBJECT_SEGMENTCOUNT, chart::createPolyPolygon_Cone(), chart::createPolyPolygon_Cylinder(), basegfx::B3DHomMatrix::rotate(), basegfx::B3DHomMatrix::scale(), TOOLS_WARN_EXCEPTION, basegfx::B3DHomMatrix::translate(), UNO_NAME_3D_HORZ_SEGS, UNO_NAME_3D_PERCENT_DIAGONAL, UNO_NAME_3D_POLYPOLYGON3D, UNO_NAME_3D_REDUCED_LINE_GEOMETRY, UNO_NAME_3D_TRANSFORM_MATRIX, UNO_NAME_3D_VERT_SEGS, and xTarget.
Referenced by createCone(), and createCylinder().
|
staticprivate |
Definition at line 422 of file ShapeFactory.cxx.
References aPropertyValues, chart::B3DHomMatrixToHomogenMatrix(), chart::createPolyPolygon_Cube(), basegfx::B3DHomMatrix::rotate(), TOOLS_WARN_EXCEPTION, basegfx::B3DHomMatrix::translate(), UNO_NAME_3D_EXTRUDE_DEPTH, UNO_NAME_3D_PERCENT_DIAGONAL, UNO_NAME_3D_POLYPOLYGON3D, UNO_NAME_3D_TRANSFORM_MATRIX, and xTarget.
Referenced by createCube().
|
static |
Referenced by closePolygon().
|
static |
Definition at line 2430 of file ShapeFactory.cxx.
References size.
|
static |
Definition at line 2331 of file ShapeFactory.cxx.
References TOOLS_WARN_EXCEPTION.
Referenced by createInvisibleRectangle().
|
static |
Definition at line 2383 of file ShapeFactory.cxx.
References chart::B2DHomMatrixToHomogenMatrix3(), basegfx::B2DHomMatrix::rotate(), and basegfx::B2DHomMatrix::translate().
Referenced by chart::VSeriesPlotter::createDataLabel(), chart::VSeriesPlotter::createRegressionCurveEquationShapes(), chart::createSingleLabel(), and chart::VPolarAngleAxis::createTextShapes_ForAngleAxis().
|
static |
Definition at line 2523 of file ShapeFactory.cxx.
Referenced by chart::DataTableView::createShapes(), and chart::ChartView::impl_createDiagramAndContent().
|
static |
Definition at line 133 of file ShapeFactory.cxx.
Referenced by chart::ChartView::createShapes().
|
static |
Definition at line 2346 of file ShapeFactory.cxx.
References TOOLS_WARN_EXCEPTION, and UNO_NAME_MISC_OBJ_NAME.
Referenced by chart::VPolarGrid::create2DRadiusGrid(), createGroup2D(), createGroup3D(), chart::VSeriesPlotter::createLegendEntriesForSeries(), chart::VSeriesPlotter::createRegressionCurveEquationShapes(), chart::VSeriesPlotter::createRegressionCurvesShapes(), chart::VCartesianAxis::createShapes(), chart::VCartesianGrid::createShapes(), chart::VPolarAngleAxis::createShapes(), chart::BubbleChart::createShapes(), chart::PieChart::createShapes(), chart::VLegend::createShapes(), chart::ChartView::createShapes2D(), createTable(), getOrCreateChartRootShape(), chart::NetChart::impl_createArea(), chart::AreaChart::impl_createArea(), chart::NetChart::impl_createLine(), and chart::AreaChart::impl_createLine().