LibreOffice Module drawinglayer (master) 1
|
#include <texture.hxx>
Public Member Functions | |
GeoTexSvxHatch (const basegfx::B2DRange &rDefinitionRange, const basegfx::B2DRange &rOutputRange, double fDistance, double fAngle) | |
virtual | ~GeoTexSvxHatch () override |
virtual bool | operator== (const GeoTexSvx &rGeoTexSvx) const override |
void | appendTransformations (::std::vector< basegfx::B2DHomMatrix > &rMatrices) |
double | getDistanceToHatch (const basegfx::B2DPoint &rUV) const |
const basegfx::B2DHomMatrix & | getBackTextureTransform () const |
Public Member Functions inherited from drawinglayer::texture::GeoTexSvx | |
GeoTexSvx () | |
virtual | ~GeoTexSvx () |
virtual bool | operator== (const GeoTexSvx &rGeoTexSvx) const |
bool | operator!= (const GeoTexSvx &rGeoTexSvx) const |
virtual void | modifyBColor (const basegfx::B2DPoint &rUV, basegfx::BColor &rBColor, double &rfOpacity) const |
virtual void | modifyOpacity (const basegfx::B2DPoint &rUV, double &rfOpacity) const |
Private Attributes | |
basegfx::B2DRange | maOutputRange |
basegfx::B2DHomMatrix | maTextureTransform |
basegfx::B2DHomMatrix | maBackTextureTransform |
double | mfDistance |
double | mfAngle |
sal_uInt32 | mnSteps |
bool | mbDefinitionRangeEqualsOutputRange: 1 |
Definition at line 187 of file texture.hxx.
drawinglayer::texture::GeoTexSvxHatch::GeoTexSvxHatch | ( | const basegfx::B2DRange & | rDefinitionRange, |
const basegfx::B2DRange & | rOutputRange, | ||
double | fDistance, | ||
double | fAngle | ||
) |
Definition at line 811 of file texture.cxx.
References basegfx::utils::createRotateAroundPoint(), basegfx::fround(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), maTextureTransform, mfDistance, mnSteps, basegfx::B2DHomMatrix::scale(), and basegfx::B2DHomMatrix::translate().
|
overridevirtual |
Definition at line 864 of file texture.cxx.
void drawinglayer::texture::GeoTexSvxHatch::appendTransformations | ( | ::std::vector< basegfx::B2DHomMatrix > & | rMatrices | ) |
Definition at line 879 of file texture.cxx.
References a, basegfx::fround(), getBackTextureTransform(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), maOutputRange, maTextureTransform, mbDefinitionRangeEqualsOutputRange, mfDistance, mnSteps, basegfx::B2DHomMatrix::set(), basegfx::snapToNearestMultiple(), and basegfx::B2DRange::transform().
Referenced by drawinglayer::primitive2d::FillHatchPrimitive2D::create2DDecomposition(), and drawinglayer::primitive3d::HatchTexturePrimitive3D::impCreate3DDecomposition().
const basegfx::B2DHomMatrix & drawinglayer::texture::GeoTexSvxHatch::getBackTextureTransform | ( | ) | const |
Definition at line 950 of file texture.cxx.
References basegfx::B2DHomMatrix::invert(), basegfx::B2DHomMatrix::isIdentity(), maBackTextureTransform, and maTextureTransform.
Referenced by appendTransformations(), and getDistanceToHatch().
double drawinglayer::texture::GeoTexSvxHatch::getDistanceToHatch | ( | const basegfx::B2DPoint & | rUV | ) | const |
Definition at line 932 of file texture.cxx.
References basegfx::B2DHomMatrix::get(), getBackTextureTransform(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), and mfDistance.
|
overridevirtual |
Reimplemented from drawinglayer::texture::GeoTexSvx.
Definition at line 868 of file texture.cxx.
References maOutputRange, maTextureTransform, mfAngle, mfDistance, and mnSteps.
|
private |
Definition at line 191 of file texture.hxx.
Referenced by getBackTextureTransform().
|
private |
Definition at line 189 of file texture.hxx.
Referenced by appendTransformations(), and operator==().
|
private |
Definition at line 190 of file texture.hxx.
Referenced by appendTransformations(), GeoTexSvxHatch(), getBackTextureTransform(), and operator==().
|
private |
Definition at line 196 of file texture.hxx.
Referenced by appendTransformations().
|
private |
Definition at line 193 of file texture.hxx.
Referenced by operator==().
|
private |
Definition at line 192 of file texture.hxx.
Referenced by appendTransformations(), GeoTexSvxHatch(), getDistanceToHatch(), and operator==().
|
private |
Definition at line 194 of file texture.hxx.
Referenced by appendTransformations(), GeoTexSvxHatch(), and operator==().