JUCE
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DrawablePath::ValueTreeWrapper::Element Class Reference

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

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

Member Function Documentation

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

References ValueTree::getType().

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

Member Data Documentation

const Identifier DrawablePath::ValueTreeWrapper::Element::mode
static
const Identifier DrawablePath::ValueTreeWrapper::Element::startSubPathElement
static
const Identifier DrawablePath::ValueTreeWrapper::Element::closeSubPathElement
static
const Identifier DrawablePath::ValueTreeWrapper::Element::lineToElement
static
const Identifier DrawablePath::ValueTreeWrapper::Element::quadraticToElement
static
const Identifier DrawablePath::ValueTreeWrapper::Element::cubicToElement
static
const char* DrawablePath::ValueTreeWrapper::Element::cornerMode
static
const char* DrawablePath::ValueTreeWrapper::Element::roundedMode
static
const char* DrawablePath::ValueTreeWrapper::Element::symmetricMode
static
ValueTree DrawablePath::ValueTreeWrapper::Element::state

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