JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Classes | Public Types | Public Member Functions | Public Attributes
RelativePointPath Class Reference

A path object that consists of RelativePoint coordinates rather than the normal fixed ones. More...

List of all members.

Classes

class  CloseSubPath
class  CubicTo
class  ElementBase
 Base class for the elements that make up a RelativePointPath. More...
class  LineTo
class  QuadraticTo
class  StartSubPath

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 RelativePointPath &other)
 RelativePointPath (const Path &path)
 ~RelativePointPath ()
bool operator== (const RelativePointPath &other) const noexcept
bool operator!= (const RelativePointPath &other) 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 &other) noexcept
 Quickly swaps the contents of this path with another.
void addElement (ElementBase *newElement)

Public Attributes

OwnedArray< ElementBaseelements
bool usesNonZeroWinding

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

Member Enumeration Documentation

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

See also:
RelativePointPath::ElementBase
Enumerator:
nullElement 
startSubPathElement 
closeSubPathElement 
lineToElement 
quadraticToElement 
cubicToElement 

Constructor & Destructor Documentation

RelativePointPath::RelativePointPath ( const Path path) [explicit]

Member Function Documentation

bool RelativePointPath::operator== ( const RelativePointPath other) const
bool RelativePointPath::operator!= ( const RelativePointPath other) const
void RelativePointPath::createPath ( Path path,
Expression::Scope scope 
) const

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

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

Quickly swaps the contents of this path with another.


Member Data Documentation


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