JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | Friends | List of all members
juce::RelativePointPath Class Reference

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 (const RelativePointPath &)
 
 RelativePointPath (const Path &path)
 
bool operator== (const RelativePointPath &) const noexcept
 
bool operator!= (const RelativePointPath &) const noexcept
 
void createPath (Path &path, Expression::Scope *scope) const
 Resolves this points in this path and adds them to a normal Path object.
 
bool containsAnyDynamicPoints () const
 Returns true if the path contains any non-fixed points.
 
void swapWith (RelativePointPath &) noexcept
 Quickly swaps the contents of this path with another.
 
void addElement (ElementBase *newElement)
 

Public Attributes

OwnedArray< ElementBaseelements
 
bool usesNonZeroWinding
 

Friends

class Positioner
 

Detailed Description

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.

See also
RelativePoint, RelativeCoordinate

@tags{GUI}

Definition at line 40 of file juce_RelativePointPath.h.

Member Enumeration Documentation

◆ ElementType

The types of element that may be contained in this path.

See also
RelativePointPath::ElementBase

Definition at line 66 of file juce_RelativePointPath.h.

Constructor & Destructor Documentation

◆ RelativePointPath() [1/3]

juce::RelativePointPath::RelativePointPath ( )

Definition at line 29 of file juce_RelativePointPath.cpp.

◆ RelativePointPath() [2/3]

juce::RelativePointPath::RelativePointPath ( const RelativePointPath other)

Definition at line 35 of file juce_RelativePointPath.cpp.

◆ RelativePointPath() [3/3]

juce::RelativePointPath::RelativePointPath ( const Path path)
explicit

Definition at line 43 of file juce_RelativePointPath.cpp.

◆ ~RelativePointPath()

juce::RelativePointPath::~RelativePointPath ( )

Definition at line 61 of file juce_RelativePointPath.cpp.

Member Function Documentation

◆ addElement()

void juce::RelativePointPath::addElement ( ElementBase newElement)

Definition at line 117 of file juce_RelativePointPath.cpp.

◆ containsAnyDynamicPoints()

bool juce::RelativePointPath::containsAnyDynamicPoints ( ) const

Returns true if the path contains any non-fixed points.

Definition at line 112 of file juce_RelativePointPath.cpp.

◆ createPath()

void juce::RelativePointPath::createPath ( Path path,
Expression::Scope scope 
) const

Resolves this points in this path and adds them to a normal Path object.

Definition at line 106 of file juce_RelativePointPath.cpp.

◆ operator!=()

bool juce::RelativePointPath::operator!= ( const RelativePointPath other) const
noexcept

Definition at line 94 of file juce_RelativePointPath.cpp.

◆ operator==()

bool juce::RelativePointPath::operator== ( const RelativePointPath other) const
noexcept

Definition at line 65 of file juce_RelativePointPath.cpp.

◆ swapWith()

void juce::RelativePointPath::swapWith ( RelativePointPath other)
noexcept

Quickly swaps the contents of this path with another.

Definition at line 99 of file juce_RelativePointPath.cpp.

Friends And Related Symbol Documentation

◆ Positioner

friend class Positioner
friend

Definition at line 184 of file juce_RelativePointPath.h.

Member Data Documentation

◆ elements

OwnedArray<ElementBase> juce::RelativePointPath::elements

Definition at line 179 of file juce_RelativePointPath.h.

◆ usesNonZeroWinding

bool juce::RelativePointPath::usesNonZeroWinding

Definition at line 180 of file juce_RelativePointPath.h.


The documentation for this class was generated from the following files: