Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
NodeSatellite Class Reference

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
 

Detailed Description

NodeSatellite a per node holder of data.

Definition at line 33 of file geom-nodesatellite.h.

Constructor & Destructor Documentation

◆ NodeSatellite() [1/2]

NodeSatellite::NodeSatellite ( )
default

NodeSatellite a per node holder of data.

◆ NodeSatellite() [2/2]

NodeSatellite::NodeSatellite ( NodeSatelliteType  nodesatellite_type)

Definition at line 31 of file geom-nodesatellite.cpp.

◆ ~NodeSatellite()

NodeSatellite::~NodeSatellite ( )
virtualdefault

Member Function Documentation

◆ arcDistance()

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().

◆ getNodeSatellitesTypeGchar()

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.

◆ getPosition()

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().

◆ lenToRad()

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().

◆ radToLen()

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().

◆ setAmount()

void NodeSatellite::setAmount ( double  set_amount)
inline

◆ setAngle()

void NodeSatellite::setAngle ( double  set_angle)
inline

Definition at line 60 of file geom-nodesatellite.h.

References angle.

◆ setHasMirror()

void NodeSatellite::setHasMirror ( bool  set_has_mirror)
inline

◆ setHidden()

void NodeSatellite::setHidden ( bool  set_hidden)
inline

◆ setIsTime()

void NodeSatellite::setIsTime ( bool  set_is_time)
inline

◆ setNodeSatellitesType()

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().

◆ setPosition()

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().

◆ setSelected()

void NodeSatellite::setSelected ( bool  set_selected)
inline

Definition at line 44 of file geom-nodesatellite.h.

References selected.

◆ setSteps()

void NodeSatellite::setSteps ( size_t  set_steps)
inline

◆ time() [1/2]

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().

◆ time() [2/2]

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().

Member Data Documentation

◆ amount

◆ angle

double NodeSatellite::angle

Definition at line 91 of file geom-nodesatellite.h.

Referenced by lenToRad(), and setAngle().

◆ has_mirror

bool NodeSatellite::has_mirror

Definition at line 87 of file geom-nodesatellite.h.

Referenced by setHasMirror().

◆ hidden

◆ is_time

◆ nodesatellite_type

◆ selected

bool NodeSatellite::selected

Definition at line 86 of file geom-nodesatellite.h.

Referenced by setSelected().

◆ steps


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