Inkscape
Vector Graphics Editor
|
NodeSatellite a per node holder of data. More...
#include <geom-nodesatellite.h>
Public Member Functions | |
NodeSatellite () | |
NodeSatellite a per node holder of data. | |
NodeSatellite (NodeSatelliteType nodesatellite_type) | |
virtual | ~NodeSatellite () |
void | setIsTime (bool set_is_time) |
void | setSelected (bool set_selected) |
void | setHasMirror (bool set_has_mirror) |
void | setHidden (bool set_hidden) |
void | setAmount (double set_amount) |
void | setAngle (double set_angle) |
void | setSteps (size_t set_steps) |
double | lenToRad (double const A, Geom::Curve const &curve_in, Geom::Curve const &curve_out, NodeSatellite const previousNodeSatellite) const |
Convert a nodesatellite length -point position where fillet/chamfer knot be on original curve- to a arc radius of fillet/chamfer. | |
double | radToLen (double const A, Geom::Curve const &curve_in, Geom::Curve const &curve_out) const |
Convert a arc radius of a fillet/chamfer to his nodesatellite length -point position where fillet/chamfer knot be on original curve. | |
double | time (Geom::Curve const &curve_in, bool inverse=false) const |
Get the time position of the nodesatellite in curve_in. | |
double | time (double A, bool inverse, Geom::Curve const &curve_in) const |
Get the time from a length A in other curve, a boolean inverse given to reverse time. | |
double | arcDistance (Geom::Curve const &curve_in) const |
Get the length of the nodesatellite in curve_in. | |
void | setPosition (Geom::Point const p, Geom::Curve const &curve_in, bool inverse=false) |
Set the position of the nodesatellite from a given point P. | |
Geom::Point | getPosition (Geom::Curve const &curve_in, bool inverse=false) const |
Get the point position of the nodesatellite. | |
void | setNodeSatellitesType (gchar const *A) |
Map a nodesatellite type with gchar. | |
gchar const * | getNodeSatellitesTypeGchar () const |
Map a gchar with nodesatelliteType. | |
Public Attributes | |
NodeSatelliteType | nodesatellite_type |
bool | is_time |
bool | selected |
bool | has_mirror |
bool | hidden |
double | amount |
double | angle |
size_t | steps |
NodeSatellite a per node holder of data.
Definition at line 33 of file geom-nodesatellite.h.
|
default |
NodeSatellite a per node holder of data.
NodeSatellite::NodeSatellite | ( | NodeSatelliteType | nodesatellite_type | ) |
Definition at line 31 of file geom-nodesatellite.cpp.
|
virtualdefault |
double NodeSatellite::arcDistance | ( | Geom::Curve const & | curve_in | ) | const |
Get the length of the nodesatellite in curve_in.
Definition at line 186 of file geom-nodesatellite.cpp.
References amount, arcLengthAt(), and is_time.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doEffect_path(), and Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get().
gchar const * NodeSatellite::getNodeSatellitesTypeGchar | ( | ) | const |
Map a gchar with nodesatelliteType.
Definition at line 228 of file geom-nodesatellite.cpp.
References CHAMFER, FILLET, INVALID_SATELLITE, INVERSE_CHAMFER, INVERSE_FILLET, and nodesatellite_type.
Geom::Point NodeSatellite::getPosition | ( | Geom::Curve const & | curve_in, |
bool | inverse = false |
||
) | const |
Get the point position of the nodesatellite.
Definition at line 196 of file geom-nodesatellite.cpp.
References Geom::Curve::pointAt(), and time().
Referenced by Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get().
double NodeSatellite::lenToRad | ( | double const | A, |
Geom::Curve const & | curve_in, | ||
Geom::Curve const & | curve_out, | ||
NodeSatellite const | previousNodeSatellite | ||
) | const |
Convert a nodesatellite length -point position where fillet/chamfer knot be on original curve- to a arc radius of fillet/chamfer.
Definition at line 122 of file geom-nodesatellite.cpp.
References angle, Geom::distance(), Geom::Curve::pointAt(), Geom::Curve::portion(), Geom::Ray::setPoints(), time(), and timeAtArcLength().
double NodeSatellite::radToLen | ( | double const | A, |
Geom::Curve const & | curve_in, | ||
Geom::Curve const & | curve_out | ||
) | const |
Convert a arc radius of a fillet/chamfer to his nodesatellite length -point position where fillet/chamfer knot be on original curve.
Definition at line 90 of file geom-nodesatellite.cpp.
References arcLengthAt(), Geom::crossings(), len, radToLen(), and Geom::Curve::toSBasis().
Referenced by radToLen().
|
inline |
Definition at line 56 of file geom-nodesatellite.h.
References amount.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect(), and Inkscape::LivePathEffect::LPEFilletChamfer::doOnApply().
|
inline |
Definition at line 60 of file geom-nodesatellite.h.
References angle.
|
inline |
Definition at line 48 of file geom-nodesatellite.h.
References has_mirror.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect(), and Inkscape::LivePathEffect::LPEFilletChamfer::doOnApply().
|
inline |
Definition at line 52 of file geom-nodesatellite.h.
References hidden.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect(), and Inkscape::LivePathEffect::LPEFilletChamfer::doOnApply().
|
inline |
Definition at line 40 of file geom-nodesatellite.h.
References is_time.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect(), and Inkscape::LivePathEffect::LPEFilletChamfer::doOnApply().
void NodeSatellite::setNodeSatellitesType | ( | gchar const * | A | ) |
Map a nodesatellite type with gchar.
Definition at line 217 of file geom-nodesatellite.cpp.
References CHAMFER, FILLET, INVALID_SATELLITE, INVERSE_CHAMFER, INVERSE_FILLET, and nodesatellite_type.
Referenced by Inkscape::LivePathEffect::ArrayParam< StorageType >::readsvg().
void NodeSatellite::setPosition | ( | Geom::Point const | p, |
Geom::Curve const & | curve_in, | ||
bool | inverse = false |
||
) |
Set the position of the nodesatellite from a given point P.
Definition at line 203 of file geom-nodesatellite.cpp.
References amount, arcLengthAt(), is_time, and Geom::nearest_time().
Referenced by Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set().
|
inline |
Definition at line 44 of file geom-nodesatellite.h.
References selected.
|
inline |
Definition at line 64 of file geom-nodesatellite.h.
References steps.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect(), and Inkscape::LivePathEffect::LPEFilletChamfer::doOnApply().
double NodeSatellite::time | ( | double | A, |
bool | inverse, | ||
Geom::Curve const & | curve_in | ||
) | const |
Get the time from a length A in other curve, a boolean inverse given to reverse time.
Definition at line 169 of file geom-nodesatellite.cpp.
References Geom::Curve::length(), and timeAtArcLength().
double NodeSatellite::time | ( | Geom::Curve const & | curve_in, |
bool | inverse = false |
||
) | const |
Get the time position of the nodesatellite in curve_in.
Definition at line 154 of file geom-nodesatellite.cpp.
References amount, is_time, and time().
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doEffect_path(), getPosition(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), lenToRad(), and time().
double NodeSatellite::amount |
Definition at line 90 of file geom-nodesatellite.h.
Referenced by Inkscape::UI::Dialog::FilletChamferPropertiesDialog::_apply(), arcDistance(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set_offset(), setAmount(), setPosition(), and time().
double NodeSatellite::angle |
Definition at line 91 of file geom-nodesatellite.h.
Referenced by lenToRad(), and setAngle().
bool NodeSatellite::has_mirror |
Definition at line 87 of file geom-nodesatellite.h.
Referenced by setHasMirror().
bool NodeSatellite::hidden |
bool NodeSatellite::is_time |
Definition at line 85 of file geom-nodesatellite.h.
Referenced by Inkscape::UI::Dialog::FilletChamferPropertiesDialog::_setNodeSatellite(), arcDistance(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set_offset(), setIsTime(), setPosition(), and time().
NodeSatelliteType NodeSatellite::nodesatellite_type |
Definition at line 82 of file geom-nodesatellite.h.
Referenced by Inkscape::UI::Dialog::FilletChamferPropertiesDialog::_apply(), Inkscape::UI::Dialog::FilletChamferPropertiesDialog::_setNodeSatellite(), Inkscape::LivePathEffect::LPEFilletChamfer::doEffect_path(), getNodeSatellitesTypeGchar(), and setNodeSatellitesType().
bool NodeSatellite::selected |
Definition at line 86 of file geom-nodesatellite.h.
Referenced by setSelected().
size_t NodeSatellite::steps |