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