sdrdecompositiontools3d.cxx (035a2f44) sdrdecompositiontools3d.cxx (49c58f9b)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 237 unchanged lines hidden (view full) ---

246 bModulate,
247 bFilter);
248 }
249
250 // exchange aRetval content with texture group
251 const Primitive3DReference xRef(pNewTexturePrimitive3D);
252 aRetval = Primitive3DSequence(&xRef, 1L);
253
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 237 unchanged lines hidden (view full) ---

246 bModulate,
247 bFilter);
248 }
249
250 // exchange aRetval content with texture group
251 const Primitive3DReference xRef(pNewTexturePrimitive3D);
252 aRetval = Primitive3DSequence(&xRef, 1L);
253
254 if(::com::sun::star::drawing::TextureKind2_LUMINANCE == aSdr3DObjectAttribute.getTextureKind())
255 {
256 // use modified color primitive to force textures to gray
257 const basegfx::BColorModifier aBColorModifier(basegfx::BColor(), 0.0, basegfx::BCOLORMODIFYMODE_GRAY);
258 const Primitive3DReference xRef2(new ModifiedColorPrimitive3D(aRetval, aBColorModifier));
259 aRetval = Primitive3DSequence(&xRef2, 1L);
260 }
261 }
254 if(::com::sun::star::drawing::TextureKind2_LUMINANCE == aSdr3DObjectAttribute.getTextureKind())
255 {
256 // use modified color primitive to force textures to gray
257 const basegfx::BColorModifierSharedPtr aBColorModifier(
258 new basegfx::BColorModifier_gray());
259 const Primitive3DReference xRef2(
260 new ModifiedColorPrimitive3D(
261 aRetval,
262 aBColorModifier));
262
263
264 aRetval = Primitive3DSequence(&xRef2, 1L);
265 }
266 }
267
263 if(0.0 != rFill.getTransparence())
264 {
265 // create UnifiedTransparenceTexturePrimitive3D with sublist and exchange
266 const Primitive3DReference xRef(new UnifiedTransparenceTexturePrimitive3D(rFill.getTransparence(), aRetval));
267 aRetval = Primitive3DSequence(&xRef, 1L);
268 }
269 else if(!rFillGradient.isDefault())
270 {

--- 65 unchanged lines hidden ---
268 if(0.0 != rFill.getTransparence())
269 {
270 // create UnifiedTransparenceTexturePrimitive3D with sublist and exchange
271 const Primitive3DReference xRef(new UnifiedTransparenceTexturePrimitive3D(rFill.getTransparence(), aRetval));
272 aRetval = Primitive3DSequence(&xRef, 1L);
273 }
274 else if(!rFillGradient.isDefault())
275 {

--- 65 unchanged lines hidden ---