textureprimitive3d.cxx (464702f4) | textureprimitive3d.cxx (035a2f44) |
---|---|
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 --- 153 unchanged lines hidden (view full) --- 162 163////////////////////////////////////////////////////////////////////////////// 164 165namespace drawinglayer 166{ 167 namespace primitive3d 168 { 169 BitmapTexturePrimitive3D::BitmapTexturePrimitive3D( | 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 --- 153 unchanged lines hidden (view full) --- 162 163////////////////////////////////////////////////////////////////////////////// 164 165namespace drawinglayer 166{ 167 namespace primitive3d 168 { 169 BitmapTexturePrimitive3D::BitmapTexturePrimitive3D( |
170 const attribute::FillBitmapAttribute& rFillBitmapAttribute, | 170 const attribute::FillGraphicAttribute& rFillGraphicAttribute, |
171 const Primitive3DSequence& rChildren, 172 const basegfx::B2DVector& rTextureSize, 173 bool bModulate, bool bFilter) 174 : TexturePrimitive3D(rChildren, rTextureSize, bModulate, bFilter), | 171 const Primitive3DSequence& rChildren, 172 const basegfx::B2DVector& rTextureSize, 173 bool bModulate, bool bFilter) 174 : TexturePrimitive3D(rChildren, rTextureSize, bModulate, bFilter), |
175 maFillBitmapAttribute(rFillBitmapAttribute) | 175 maFillGraphicAttribute(rFillGraphicAttribute) |
176 { 177 } 178 179 bool BitmapTexturePrimitive3D::operator==(const BasePrimitive3D& rPrimitive) const 180 { 181 if(TexturePrimitive3D::operator==(rPrimitive)) 182 { 183 const BitmapTexturePrimitive3D& rCompare = (BitmapTexturePrimitive3D&)rPrimitive; 184 | 176 { 177 } 178 179 bool BitmapTexturePrimitive3D::operator==(const BasePrimitive3D& rPrimitive) const 180 { 181 if(TexturePrimitive3D::operator==(rPrimitive)) 182 { 183 const BitmapTexturePrimitive3D& rCompare = (BitmapTexturePrimitive3D&)rPrimitive; 184 |
185 return (getFillBitmapAttribute() == rCompare.getFillBitmapAttribute()); | 185 return (getFillGraphicAttribute() == rCompare.getFillGraphicAttribute()); |
186 } 187 188 return false; 189 } 190 191 // provide unique ID 192 ImplPrimitrive3DIDBlock(BitmapTexturePrimitive3D, PRIMITIVE3D_ID_BITMAPTEXTUREPRIMITIVE3D) 193 --- 30 unchanged lines hidden --- | 186 } 187 188 return false; 189 } 190 191 // provide unique ID 192 ImplPrimitrive3DIDBlock(BitmapTexturePrimitive3D, PRIMITIVE3D_ID_BITMAPTEXTUREPRIMITIVE3D) 193 --- 30 unchanged lines hidden --- |