Holds either a simple integer translation, or an affine transform. More...
#include <juce_RenderingHelpers.h>
Public Member Functions | |
TranslationOrTransform (Point< int > origin) noexcept | |
TranslationOrTransform (const TranslationOrTransform &other) noexcept | |
void | addTransform (const AffineTransform &t) noexcept |
template<typename Type > | |
Rectangle< Type > | deviceSpaceToUserSpace (const Rectangle< Type > &r) const noexcept |
float | getPhysicalPixelScaleFactor () const noexcept |
AffineTransform | getTransform () const noexcept |
AffineTransform | getTransformWith (const AffineTransform &userTransform) const noexcept |
void | moveOriginInDeviceSpace (Point< int > delta) noexcept |
void | setOrigin (Point< int > delta) noexcept |
template<typename RectangleOrPoint > | |
RectangleOrPoint | transformed (const RectangleOrPoint &r) const noexcept |
Rectangle< int > | translated (const Rectangle< int > &r) const noexcept |
Rectangle< float > | translated (const Rectangle< float > &r) const noexcept |
Public Attributes | |
AffineTransform | complexTransform |
bool | isOnlyTranslated |
bool | isRotated |
Point< int > | offset |
Holds either a simple integer translation, or an affine transform.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
References complexTransform, AffineTransform::getScaleFactor(), and isOnlyTranslated.
|
inlinenoexcept |
References complexTransform, isOnlyTranslated, offset, and AffineTransform::translation().
|
inlinenoexcept |
References complexTransform, isOnlyTranslated, and offset.
Referenced by addTransform().
|
inlinenoexcept |
References complexTransform, isOnlyTranslated, offset, and AffineTransform::translated().
Referenced by RenderingHelpers::SoftwareRendererSavedState::beginTransparencyLayer().
|
inlinenoexcept |
References complexTransform, isOnlyTranslated, and jassert.
Referenced by RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillRectList().
|
inlinenoexcept |
References isOnlyTranslated, jassert, and offset.
|
inlinenoexcept |
References isOnlyTranslated, jassert, offset, and juce::Point< ValueType >::toFloat().
AffineTransform RenderingHelpers::TranslationOrTransform::complexTransform |
bool RenderingHelpers::TranslationOrTransform::isOnlyTranslated |
bool RenderingHelpers::TranslationOrTransform::isRotated |
Referenced by addTransform().
Referenced by addTransform(), deviceSpaceToUserSpace(), getTransform(), getTransformWith(), moveOriginInDeviceSpace(), setOrigin(), and translated().