JUCE  v5.1.1-3-g1a0b28c73
JUCE API
DrawablePath::ValueTreeWrapper::Element Class Reference

#include <juce_DrawablePath.h>

Collaboration diagram for DrawablePath::ValueTreeWrapper::Element:

Public Member Functions

 Element (const ValueTree &state)
 
 ~Element ()
 
void convertToCubic (Expression::Scope *, UndoManager *)
 
void convertToLine (UndoManager *)
 
void convertToPathBreak (UndoManager *undoManager)
 
float findProportionAlongLine (Point< float > targetPoint, Expression::Scope *) const
 
RelativePoint getControlPoint (int index) const
 
Value getControlPointValue (int index, UndoManager *)
 
RelativePoint getEndPoint () const
 
float getLength (Expression::Scope *) const
 
String getModeOfEndPoint () const
 
int getNumControlPoints () const noexcept
 
ValueTreeWrapper getParent () const
 
Element getPreviousElement () const
 
RelativePoint getStartPoint () const
 
const Identifier getType () const noexcept
 
ValueTree insertPoint (Point< float > targetPoint, Expression::Scope *, UndoManager *)
 
void removePoint (UndoManager *undoManager)
 
void setControlPoint (int index, const RelativePoint &point, UndoManager *)
 
void setModeOfEndPoint (const String &newMode, UndoManager *)
 

Public Attributes

ValueTree state
 

Static Public Attributes

static const Identifier closeSubPathElement
 
static const char * cornerMode
 
static const Identifier cubicToElement
 
static const Identifier lineToElement
 
static const Identifier mode
 
static const Identifier quadraticToElement
 
static const char * roundedMode
 
static const Identifier startSubPathElement
 
static const char * symmetricMode
 

Constructor & Destructor Documentation

◆ Element()

DrawablePath::ValueTreeWrapper::Element::Element ( const ValueTree state)
explicit

◆ ~Element()

DrawablePath::ValueTreeWrapper::Element::~Element ( )

Member Function Documentation

◆ convertToCubic()

void DrawablePath::ValueTreeWrapper::Element::convertToCubic ( Expression::Scope ,
UndoManager  
)

◆ convertToLine()

void DrawablePath::ValueTreeWrapper::Element::convertToLine ( UndoManager )

◆ convertToPathBreak()

void DrawablePath::ValueTreeWrapper::Element::convertToPathBreak ( UndoManager undoManager)

◆ findProportionAlongLine()

float DrawablePath::ValueTreeWrapper::Element::findProportionAlongLine ( Point< float >  targetPoint,
Expression::Scope  
) const

◆ getControlPoint()

RelativePoint DrawablePath::ValueTreeWrapper::Element::getControlPoint ( int  index) const

◆ getControlPointValue()

Value DrawablePath::ValueTreeWrapper::Element::getControlPointValue ( int  index,
UndoManager  
)

◆ getEndPoint()

RelativePoint DrawablePath::ValueTreeWrapper::Element::getEndPoint ( ) const

◆ getLength()

float DrawablePath::ValueTreeWrapper::Element::getLength ( Expression::Scope ) const

◆ getModeOfEndPoint()

String DrawablePath::ValueTreeWrapper::Element::getModeOfEndPoint ( ) const

◆ getNumControlPoints()

int DrawablePath::ValueTreeWrapper::Element::getNumControlPoints ( ) const
noexcept

◆ getParent()

ValueTreeWrapper DrawablePath::ValueTreeWrapper::Element::getParent ( ) const

◆ getPreviousElement()

Element DrawablePath::ValueTreeWrapper::Element::getPreviousElement ( ) const

◆ getStartPoint()

RelativePoint DrawablePath::ValueTreeWrapper::Element::getStartPoint ( ) const

◆ getType()

const Identifier DrawablePath::ValueTreeWrapper::Element::getType ( ) const
inlinenoexcept

References ValueTree::getType().

◆ insertPoint()

ValueTree DrawablePath::ValueTreeWrapper::Element::insertPoint ( Point< float >  targetPoint,
Expression::Scope ,
UndoManager  
)

◆ removePoint()

void DrawablePath::ValueTreeWrapper::Element::removePoint ( UndoManager undoManager)

◆ setControlPoint()

void DrawablePath::ValueTreeWrapper::Element::setControlPoint ( int  index,
const RelativePoint point,
UndoManager  
)

◆ setModeOfEndPoint()

void DrawablePath::ValueTreeWrapper::Element::setModeOfEndPoint ( const String newMode,
UndoManager  
)

Member Data Documentation

◆ closeSubPathElement

const Identifier DrawablePath::ValueTreeWrapper::Element::closeSubPathElement
static

◆ cornerMode

const char* DrawablePath::ValueTreeWrapper::Element::cornerMode
static

◆ cubicToElement

const Identifier DrawablePath::ValueTreeWrapper::Element::cubicToElement
static

◆ lineToElement

const Identifier DrawablePath::ValueTreeWrapper::Element::lineToElement
static

◆ mode

const Identifier DrawablePath::ValueTreeWrapper::Element::mode
static

◆ quadraticToElement

const Identifier DrawablePath::ValueTreeWrapper::Element::quadraticToElement
static

◆ roundedMode

const char* DrawablePath::ValueTreeWrapper::Element::roundedMode
static

◆ startSubPathElement

const Identifier DrawablePath::ValueTreeWrapper::Element::startSubPathElement
static

◆ state

ValueTree DrawablePath::ValueTreeWrapper::Element::state

◆ symmetricMode

const char* DrawablePath::ValueTreeWrapper::Element::symmetricMode
static

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