Holds either a simple integer translation, or an affine transform. More...
#include <juce_RenderingHelpers.h>
Public Member Functions | |
TranslationOrTransform ()=default | |
TranslationOrTransform (const TranslationOrTransform &other)=default | |
TranslationOrTransform (Point< int > origin) 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< float > | translated (Rectangle< float > r) const noexcept |
Rectangle< int > | translated (Rectangle< int > 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.
@tags{Graphics}
|
default |
|
inlinenoexcept |
|
default |
|
inlinenoexcept |
References int(), juce::gl::offset, juce::gl::t, and juce::gl::ty.
|
inlinenoexcept |
References juce::gl::offset, and juce::gl::r.
|
inlinenoexcept |
|
inlinenoexcept |
References juce::gl::offset, and juce::AffineTransform::translation().
|
inlinenoexcept |
|
inlinenoexcept |
References juce::gl::offset.
|
inlinenoexcept |
References juce::gl::offset.
|
inlinenoexcept |
References jassert, and juce::gl::r.
|
inlinenoexcept |
References jassert, juce::gl::offset, and juce::gl::r.
|
inlinenoexcept |
References jassert, juce::gl::offset, and juce::gl::r.
AffineTransform juce::RenderingHelpers::TranslationOrTransform::complexTransform |
bool juce::RenderingHelpers::TranslationOrTransform::isOnlyTranslated = true |
bool juce::RenderingHelpers::TranslationOrTransform::isRotated = false |