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

Iterates the lines and curves that a path contains. More...

List of all members.

Public Types

enum  PathElementType {
  startNewSubPath, lineTo, quadraticTo, cubicTo,
  closePath
}

Public Member Functions

 Iterator (const Path &path)
 ~Iterator ()
bool next ()
 Moves onto the next element in the path.

Public Attributes

PathElementType elementType
float x1
float y1
float x2
float y2
float x3
float y3

Detailed Description

Iterates the lines and curves that a path contains.

See also:
Path, PathFlatteningIterator

Member Enumeration Documentation

Enumerator:
startNewSubPath 

For this type, x1 and y1 will be set to indicate the first point in the subpath.

lineTo 

For this type, x1 and y1 indicate the end point of the line.

quadraticTo 

For this type, x1, y1, x2, y2 indicate the control point and endpoint of a quadratic curve.

cubicTo 

For this type, x1, y1, x2, y2, x3, y3 indicate the two control points and the endpoint of a cubic curve.

closePath 

Indicates that the sub-path is being closed.

None of the x or y values are valid in this case.


Constructor & Destructor Documentation

Path::Iterator::Iterator ( const Path path)

Member Function Documentation

Moves onto the next element in the path.

If this returns false, there are no more elements. If it returns true, the elementType variable will be set to the type of the current element, and some of the x and y variables will be filled in with values.


Member Data Documentation


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