A path object that consists of RelativePoint coordinates rather than the normal fixed ones. More...
#include <juce_RelativePointPath.h>
Classes | |
class | CloseSubPath |
Class for the close sub path element. More... | |
class | CubicTo |
Class for the cubic to element. More... | |
class | ElementBase |
Base class for the elements that make up a RelativePointPath. More... | |
class | LineTo |
Class for the line to element. More... | |
class | QuadraticTo |
Class for the quadratic to element. More... | |
class | StartSubPath |
Class for the start sub path element. More... | |
Public Types | |
enum | ElementType { nullElement, startSubPathElement, closeSubPathElement, lineToElement, quadraticToElement, cubicToElement } |
The types of element that may be contained in this path. More... | |
Public Member Functions | |
RelativePointPath () | |
RelativePointPath (const Path &path) | |
RelativePointPath (const RelativePointPath &) | |
~RelativePointPath () | |
void | addElement (ElementBase *newElement) |
bool | containsAnyDynamicPoints () const |
Returns true if the path contains any non-fixed points. More... | |
void | createPath (Path &path, Expression::Scope *scope) const |
Resolves this points in this path and adds them to a normal Path object. More... | |
bool | operator!= (const RelativePointPath &) const noexcept |
bool | operator== (const RelativePointPath &) const noexcept |
void | swapWith (RelativePointPath &) noexcept |
Quickly swaps the contents of this path with another. More... | |
Public Attributes | |
OwnedArray< ElementBase > | elements |
bool | usesNonZeroWinding |
Private Member Functions | |
void | applyTo (DrawablePath &path) const |
RelativePointPath & | operator= (const RelativePointPath &) |
Private Attributes | |
bool | containsDynamicPoints |
Friends | |
class | Positioner |
A path object that consists of RelativePoint coordinates rather than the normal fixed ones.
One of these paths can be converted into a Path object for drawing and manipulation, but unlike a Path, its points can be dynamic instead of just fixed.
@tags{GUI}
The types of element that may be contained in this path.
Enumerator | |
---|---|
nullElement | |
startSubPathElement | |
closeSubPathElement | |
lineToElement | |
quadraticToElement | |
cubicToElement |
juce::RelativePointPath::RelativePointPath | ( | ) |
juce::RelativePointPath::RelativePointPath | ( | const RelativePointPath & | ) |
|
explicit |
juce::RelativePointPath::~RelativePointPath | ( | ) |
void juce::RelativePointPath::addElement | ( | ElementBase * | newElement | ) |
|
private |
bool juce::RelativePointPath::containsAnyDynamicPoints | ( | ) | const |
Returns true if the path contains any non-fixed points.
void juce::RelativePointPath::createPath | ( | Path & | path, |
Expression::Scope * | scope | ||
) | const |
Resolves this points in this path and adds them to a normal Path object.
|
noexcept |
|
private |
|
noexcept |
|
noexcept |
Quickly swaps the contents of this path with another.
|
friend |
|
private |
OwnedArray<ElementBase> juce::RelativePointPath::elements |
bool juce::RelativePointPath::usesNonZeroWinding |