Kaydet (Commit) b8159642 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS aw024 (1.16.66); FILE MERGED

2006/09/21 21:52:19 aw 1.16.66.4: RESYNC: (1.18-1.19); FILE MERGED
2006/07/04 14:18:02 aw 1.16.66.3: RESYNC: (1.17-1.18); FILE MERGED
2005/09/17 07:13:42 aw 1.16.66.2: RESYNC: (1.16-1.17); FILE MERGED
2004/12/28 15:24:45 aw 1.16.66.1: #i39528
üst e45f5a7a
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: ximp3dscene.cxx,v $ * $RCSfile: ximp3dscene.cxx,v $
* *
* $Revision: 1.19 $ * $Revision: 1.20 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 10:30:53 $ * last change: $Author: ihi $ $Date: 2006-11-14 14:15:52 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -105,7 +105,7 @@ SdXML3DLightContext::SdXML3DLightContext( ...@@ -105,7 +105,7 @@ SdXML3DLightContext::SdXML3DLightContext(
} }
case XML_TOK_3DLIGHT_DIRECTION: case XML_TOK_3DLIGHT_DIRECTION:
{ {
GetImport().GetMM100UnitConverter().convertVector3D(maDirection, sValue); GetImport().GetMM100UnitConverter().convertB3DVector(maDirection, sValue);
break; break;
} }
case XML_TOK_3DLIGHT_ENABLED: case XML_TOK_3DLIGHT_ENABLED:
...@@ -300,8 +300,8 @@ void SdXML3DSceneAttributesHelper::processSceneAttribute( sal_uInt16 nPrefix, co ...@@ -300,8 +300,8 @@ void SdXML3DSceneAttributesHelper::processSceneAttribute( sal_uInt16 nPrefix, co
} }
else if( IsXMLToken( rLocalName, XML_VRP ) ) else if( IsXMLToken( rLocalName, XML_VRP ) )
{ {
Vector3D aNewVec; ::basegfx::B3DVector aNewVec;
mrImport.GetMM100UnitConverter().convertVector3D(aNewVec, rValue); mrImport.GetMM100UnitConverter().convertB3DVector(aNewVec, rValue);
if(aNewVec != maVRP) if(aNewVec != maVRP)
{ {
...@@ -312,8 +312,8 @@ void SdXML3DSceneAttributesHelper::processSceneAttribute( sal_uInt16 nPrefix, co ...@@ -312,8 +312,8 @@ void SdXML3DSceneAttributesHelper::processSceneAttribute( sal_uInt16 nPrefix, co
} }
else if( IsXMLToken( rLocalName, XML_VPN ) ) else if( IsXMLToken( rLocalName, XML_VPN ) )
{ {
Vector3D aNewVec; ::basegfx::B3DVector aNewVec;
mrImport.GetMM100UnitConverter().convertVector3D(aNewVec, rValue); mrImport.GetMM100UnitConverter().convertB3DVector(aNewVec, rValue);
if(aNewVec != maVPN) if(aNewVec != maVPN)
{ {
...@@ -324,8 +324,8 @@ void SdXML3DSceneAttributesHelper::processSceneAttribute( sal_uInt16 nPrefix, co ...@@ -324,8 +324,8 @@ void SdXML3DSceneAttributesHelper::processSceneAttribute( sal_uInt16 nPrefix, co
} }
else if( IsXMLToken( rLocalName, XML_VUP ) ) else if( IsXMLToken( rLocalName, XML_VUP ) )
{ {
Vector3D aNewVec; ::basegfx::B3DVector aNewVec;
mrImport.GetMM100UnitConverter().convertVector3D(aNewVec, rValue); mrImport.GetMM100UnitConverter().convertB3DVector(aNewVec, rValue);
if(aNewVec != maVUP) if(aNewVec != maVUP)
{ {
...@@ -431,9 +431,9 @@ void SdXML3DSceneAttributesHelper::setSceneAttributes( const com::sun::star::uno ...@@ -431,9 +431,9 @@ void SdXML3DSceneAttributesHelper::setSceneAttributes( const com::sun::star::uno
// set anys // set anys
aAny <<= pCtx->GetDiffuseColor().GetColor(); aAny <<= pCtx->GetDiffuseColor().GetColor();
drawing::Direction3D xLightDir; drawing::Direction3D xLightDir;
xLightDir.DirectionX = pCtx->GetDirection().X(); xLightDir.DirectionX = pCtx->GetDirection().getX();
xLightDir.DirectionY = pCtx->GetDirection().Y(); xLightDir.DirectionY = pCtx->GetDirection().getY();
xLightDir.DirectionZ = pCtx->GetDirection().Z(); xLightDir.DirectionZ = pCtx->GetDirection().getZ();
aAny2 <<= xLightDir; aAny2 <<= xLightDir;
aAny3 <<= pCtx->GetEnabled(); aAny3 <<= pCtx->GetEnabled();
...@@ -501,15 +501,15 @@ void SdXML3DSceneAttributesHelper::setSceneAttributes( const com::sun::star::uno ...@@ -501,15 +501,15 @@ void SdXML3DSceneAttributesHelper::setSceneAttributes( const com::sun::star::uno
// CameraGeometry and camera settings // CameraGeometry and camera settings
drawing::CameraGeometry aCamGeo; drawing::CameraGeometry aCamGeo;
aCamGeo.vrp.PositionX = maVRP.X(); aCamGeo.vrp.PositionX = maVRP.getX();
aCamGeo.vrp.PositionY = maVRP.Y(); aCamGeo.vrp.PositionY = maVRP.getY();
aCamGeo.vrp.PositionZ = maVRP.Z(); aCamGeo.vrp.PositionZ = maVRP.getZ();
aCamGeo.vpn.DirectionX = maVPN.X(); aCamGeo.vpn.DirectionX = maVPN.getX();
aCamGeo.vpn.DirectionY = maVPN.Y(); aCamGeo.vpn.DirectionY = maVPN.getY();
aCamGeo.vpn.DirectionZ = maVPN.Z(); aCamGeo.vpn.DirectionZ = maVPN.getZ();
aCamGeo.vup.DirectionX = maVUP.X(); aCamGeo.vup.DirectionX = maVUP.getX();
aCamGeo.vup.DirectionY = maVUP.Y(); aCamGeo.vup.DirectionY = maVUP.getY();
aCamGeo.vup.DirectionZ = maVUP.Z(); aCamGeo.vup.DirectionZ = maVUP.getZ();
aAny <<= aCamGeo; aAny <<= aCamGeo;
xPropSet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("D3DCameraGeometry")), aAny); xPropSet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("D3DCameraGeometry")), aAny);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment