Public Member Functions

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

Public Attributes

ValueTree state
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ Element()

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

◆ ~Element()

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

Member Function Documentation

◆ getType()

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

References ValueTree::getType().

◆ getNumControlPoints()

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

◆ getControlPoint()

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

◆ getControlPointValue()

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

◆ getStartPoint()

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

◆ getEndPoint()

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

◆ setControlPoint()

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

◆ getLength()

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

◆ getParent()

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

◆ getPreviousElement()

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

◆ getModeOfEndPoint()

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

◆ setModeOfEndPoint()

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

◆ convertToLine()

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

◆ convertToCubic()

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

◆ convertToPathBreak()

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

◆ insertPoint()

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

◆ removePoint()

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

◆ findProportionAlongLine()

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

Member Data Documentation

◆ mode

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

◆ startSubPathElement

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

◆ closeSubPathElement

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

◆ lineToElement

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

◆ quadraticToElement

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

◆ cubicToElement

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

◆ cornerMode

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

◆ roundedMode

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

◆ symmetricMode

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

◆ state

ValueTree DrawablePath::ValueTreeWrapper::Element::state

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