LibreOffice Module xmloff (master) 1
|
#include <shapeimport.hxx>
Public Member Functions | |
SdXML3DSceneAttributesHelper (SvXMLImport &rImporter) | |
SvXMLImportContext * | create3DLightContext (const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) |
creates a 3d light context and adds it to the internal list for later processing More... | |
void | processSceneAttribute (const sax_fastparser::FastAttributeList::FastAttributeIter &aIter) |
this should be called for each scene attribute More... | |
void | setSceneAttributes (const css::uno::Reference< css::beans::XPropertySet > &xPropSet) |
this sets the scene attributes at this propertyset More... | |
Protected Attributes | |
SvXMLImport & | mrImport |
::std::vector< rtl::Reference< SdXML3DLightContext > > | maList |
css::drawing::HomogenMatrix | mxHomMat |
bool | mbSetTransform |
css::drawing::ProjectionMode | mxPrjMode |
sal_Int32 | mnDistance |
sal_Int32 | mnFocalLength |
sal_Int32 | mnShadowSlant |
css::drawing::ShadeMode | mxShadeMode |
sal_Int32 | maAmbientColor |
bool | mbLightingMode |
::basegfx::B3DVector | maVRP |
::basegfx::B3DVector | maVPN |
::basegfx::B3DVector | maVUP |
bool | mbVRPUsed |
Definition at line 71 of file shapeimport.hxx.
SdXML3DSceneAttributesHelper::SdXML3DSceneAttributesHelper | ( | SvXMLImport & | rImporter | ) |
Definition at line 188 of file ximp3dscene.cxx.
SvXMLImportContext * SdXML3DSceneAttributesHelper::create3DLightContext | ( | const css::uno::Reference< css::xml::sax::XFastAttributeList > & | xAttrList | ) |
creates a 3d light context and adds it to the internal list for later processing
Definition at line 206 of file ximp3dscene.cxx.
References maList, and mrImport.
Referenced by SchXMLPlotAreaContext::createFastChildContext(), and SdXML3DSceneShapeContext::createFastChildContext().
void SdXML3DSceneAttributesHelper::processSceneAttribute | ( | const sax_fastparser::FastAttributeList::FastAttributeIter & | aIter | ) |
this should be called for each scene attribute
Definition at line 217 of file ximp3dscene.cxx.
References SvXMLUnitConverter::convertB3DVector(), sax::Converter::convertBool(), sax::Converter::convertColor(), sax::Converter::convertNumber(), SdXMLImExTransform3D::GetFullHomogenTransform(), sax_fastparser::FastAttributeList::FastAttributeIter::getToken(), IsTokenInNamespace(), xmloff::token::IsXMLToken(), maAmbientColor, maVPN, maVRP, maVUP, mbLightingMode, mbSetTransform, mbVRPUsed, mnDistance, mnFocalLength, mnShadowSlant, mrImport, mxHomMat, mxPrjMode, mxShadeMode, SdXMLImExTransform3D::NeedsAction(), TOKEN_MASK, sax_fastparser::FastAttributeList::FastAttributeIter::toString(), sax_fastparser::FastAttributeList::FastAttributeIter::toView(), xmloff::token::XML_AMBIENT_COLOR, xmloff::token::XML_DISTANCE, xmloff::token::XML_FLAT, xmloff::token::XML_FOCAL_LENGTH, xmloff::token::XML_GOURAUD, xmloff::token::XML_LIGHTING_MODE, XML_NAMESPACE_DR3D, xmloff::token::XML_PARALLEL, xmloff::token::XML_PHONG, xmloff::token::XML_PROJECTION, xmloff::token::XML_SHADE_MODE, xmloff::token::XML_SHADOW_SLANT, xmloff::token::XML_TRANSFORM, xmloff::token::XML_VPN, xmloff::token::XML_VRP, xmloff::token::XML_VUP, and XMLOFF_WARN_UNKNOWN.
Referenced by SchXMLPlotAreaContext::startFastElement(), and SdXML3DSceneShapeContext::startFastElement().
void SdXML3DSceneAttributesHelper::setSceneAttributes | ( | const css::uno::Reference< css::beans::XPropertySet > & | xPropSet | ) |
this sets the scene attributes at this propertyset
Definition at line 319 of file ximp3dscene.cxx.
References a, SdXML3DLightContext::GetDiffuseColor(), SdXML3DLightContext::GetDirection(), SdXML3DLightContext::GetEnabled(), basegfx::Tuple3D< typename TYPE >::getX(), basegfx::Tuple3D< typename TYPE >::getY(), basegfx::Tuple3D< typename TYPE >::getZ(), maAmbientColor, maList, maVPN, maVRP, maVUP, mbLightingMode, mbSetTransform, mnDistance, mnFocalLength, mnShadowSlant, mxHomMat, mxPrjMode, and mxShadeMode.
Referenced by SchXMLPlotAreaContext::endFastElement(), and SdXML3DSceneShapeContext::endFastElement().
|
protected |
Definition at line 89 of file shapeimport.hxx.
Referenced by processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 78 of file shapeimport.hxx.
Referenced by create3DLightContext(), and setSceneAttributes().
|
protected |
Definition at line 93 of file shapeimport.hxx.
Referenced by SchXML3DSceneAttributesHelper::getCameraDefaultFromDiagram(), processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 92 of file shapeimport.hxx.
Referenced by SchXML3DSceneAttributesHelper::getCameraDefaultFromDiagram(), processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 94 of file shapeimport.hxx.
Referenced by SchXML3DSceneAttributesHelper::getCameraDefaultFromDiagram(), processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 90 of file shapeimport.hxx.
Referenced by processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 82 of file shapeimport.hxx.
Referenced by processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 95 of file shapeimport.hxx.
Referenced by processSceneAttribute().
|
protected |
Definition at line 85 of file shapeimport.hxx.
Referenced by processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 86 of file shapeimport.hxx.
Referenced by processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 87 of file shapeimport.hxx.
Referenced by processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 74 of file shapeimport.hxx.
Referenced by create3DLightContext(), and processSceneAttribute().
|
protected |
Definition at line 81 of file shapeimport.hxx.
Referenced by processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 84 of file shapeimport.hxx.
Referenced by processSceneAttribute(), and setSceneAttributes().
|
protected |
Definition at line 88 of file shapeimport.hxx.
Referenced by processSceneAttribute(), and setSceneAttributes().