|
OpenLexocad
27.1
|
#include <Geometry2d.h>
Public Member Functions | |
| Geom2dBSplineCurve () | |
| Geom2dBSplineCurve (const Handle(Geom2d_BSplineCurve)&) | |
| virtual | ~Geom2dBSplineCurve () |
| virtual Geometry2d * | clone (void) const |
| returns a cloned object More... | |
| void | interpolate (const std::vector< gp_Pnt2d > &, const std::vector< gp_Vec2d > &) |
| void | getCardinalSplineTangents (const std::vector< gp_Pnt2d > &, const std::vector< double > &, std::vector< gp_Vec2d > &) const |
| void | getCardinalSplineTangents (const std::vector< gp_Pnt2d > &, double, std::vector< gp_Vec2d > &) const |
| int | countPoles () const |
| void | setPole (int index, const Base::Vector2d &, double weight=-1) |
| std::vector< Base::Vector2d > | getPoles () const |
| bool | join (const Handle(Geom2d_BSplineCurve)&) |
| void | makeC1Continuous (double) |
| std::list< Geometry2d * > | toBiArcs (double tolerance) const |
| virtual void | save (Base::AbstractWriter &, Base::PersistenceVersion &) override |
| This method is used to save properties or very small amounts of data to an XML document. More... | |
| virtual void | restore (Base::AbstractXMLReader &, Base::PersistenceVersion &) override |
| This method is used to restore properties from an XML document. More... | |
| void | setHandle (const Handle(Geom2d_BSplineCurve)&) |
| const | Handle (Geom2d_Geometry) &handle() const |
Public Member Functions inherited from Geom::Geom2dCurve | |
| Geom2dCurve () | |
| virtual | ~Geom2dCurve () |
| virtual TopoDS_Shape | toShape () const |
| bool | tangent (double u, gp_Dir2d &) const |
| Base::Vector2d | pointAtParameter (double u) const |
| Base::Vector2d | firstDerivativeAtParameter (double u) const |
| Base::Vector2d | secondDerivativeAtParameter (double u) const |
| bool | normal (double u, gp_Dir2d &dir) const |
| bool | closestParameter (const Base::Vector2d &point, double &u) const |
| bool | closestParameterToBasicCurve (const Base::Vector2d &point, double &u) const |
Public Member Functions inherited from Geom::Geometry2d | |
| virtual | ~Geometry2d () |
Public Member Functions inherited from Base::Persistence | |
| virtual void | saveDocFile (Base::AbstractWriter &, const Base::String &, const Base::String &) |
| This method is used to save large amounts of data to a binary file. More... | |
| virtual void | restoreDocFile (Base::Reader &, const Base::String &) |
| This method is used to restore large amounts of data from a binary file. More... | |
| virtual bool | mustbeSaved () const |
| Return 'true' if this object must always be saved in the file. More... | |
| virtual bool | createSQL (Base::AbstractWriter &, Base::PersistenceVersion &, bool) |
| This method is used to save properties or very small amounts of data to an XML document. More... | |
Public Member Functions inherited from Base::BaseClass | |
| virtual Type | getTypeId (void) const |
| template<typename T > | |
| bool | isDerivedFrom () const |
| bool | isDerivedFrom (const Type type) const |
| BaseClass () | |
| Construction. More... | |
| virtual | ~BaseClass () |
| Destruction. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Base::Persistence | |
| static std::string | encodeAttribute (const std::string &) |
Static Public Member Functions inherited from Base::BaseClass | |
| static Type | getClassTypeId (void) |
| static void | init (void) |
| static void * | create (void) |
| static void | setIfcNameAndID (const std::string &n, int id) |
Public Attributes inherited from Base::BaseClass | |
| long | ____deadVal = 0xBADEAFFE |
Protected Member Functions inherited from Geom::Geometry2d | |
| Geometry2d () | |
Static Protected Member Functions inherited from Base::BaseClass | |
| static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=0) |
| static void | initIfcTypes (const std::string &s, Base::Type classTypeId, int id) |
| Geom::Geom2dBSplineCurve::Geom2dBSplineCurve | ( | ) |
| Geom::Geom2dBSplineCurve::Geom2dBSplineCurve | ( | const Handle(Geom2d_BSplineCurve)& | ) |
|
virtual |
|
virtual |
returns a cloned object
Implements Geom::Geometry2d.
| int Geom::Geom2dBSplineCurve::countPoles | ( | ) | const |
| void Geom::Geom2dBSplineCurve::getCardinalSplineTangents | ( | const std::vector< gp_Pnt2d > & | , |
| const std::vector< double > & | , | ||
| std::vector< gp_Vec2d > & | |||
| ) | const |
Compute the tangents for a Cardinal spline using the the cubic Hermite spline. It uses the method for Cardinal splines.
| void Geom::Geom2dBSplineCurve::getCardinalSplineTangents | ( | const std::vector< gp_Pnt2d > & | , |
| double | , | ||
| std::vector< gp_Vec2d > & | |||
| ) | const |
Compute the tangents for a Cardinal spline using the the cubic Hermite spline. It uses the method for Cardinal splines. It uses the same parameter for each tangent.
| std::vector<Base::Vector2d> Geom::Geom2dBSplineCurve::getPoles | ( | ) | const |
|
virtual |
Implements Geom::Geometry2d.
| void Geom::Geom2dBSplineCurve::interpolate | ( | const std::vector< gp_Pnt2d > & | , |
| const std::vector< gp_Vec2d > & | |||
| ) |
Set the poles and tangents for the cubic Hermite spline
| bool Geom::Geom2dBSplineCurve::join | ( | const Handle(Geom2d_BSplineCurve)& | ) |
| void Geom::Geom2dBSplineCurve::makeC1Continuous | ( | double | ) |
|
overridevirtual |
This method is used to restore properties from an XML document.
Reimplemented from Geom::Geometry2d.
|
overridevirtual |
This method is used to save properties or very small amounts of data to an XML document.
Reimplemented from Geom::Geometry2d.
| void Geom::Geom2dBSplineCurve::setHandle | ( | const Handle(Geom2d_BSplineCurve)& | ) |
| void Geom::Geom2dBSplineCurve::setPole | ( | int | index, |
| const Base::Vector2d & | , | ||
| double | weight = -1 |
||
| ) |
| std::list<Geometry2d*> Geom::Geom2dBSplineCurve::toBiArcs | ( | double | tolerance | ) | const |