|
virtual Geometry2d * | clone (void) const |
| returns a cloned object More...
|
|
int | countPoles () const |
|
| Geom2dBSplineCurve () |
|
| Geom2dBSplineCurve (const Handle(Geom2d_BSplineCurve)&) |
|
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 |
|
virtual unsigned int | getMemSize (void) const |
| This method is used to get the size of objects It is not meant to have the exact size, it is more or less an estimation which runs fast! Is it two bytes or a GB? More...
|
|
std::vector< Base::Vector2d > | getPoles () const |
|
virtual PyObject * | getPyObject (void) |
| This method returns the Python wrapper for a C++ object. More...
|
|
const | Handle (Geom2d_Geometry) &handle() const |
|
void | interpolate (const std::vector< gp_Pnt2d > &, const std::vector< gp_Vec2d > &) |
|
bool | join (const Handle(Geom2d_BSplineCurve)&) |
|
void | makeC1Continuous (double) |
|
virtual void | Restore (Base::XMLReader &) |
| This method is used to restore properties from an XML document. More...
|
|
virtual void | Save (Base::Writer &) const |
| This method is used to save properties to an XML document. More...
|
|
void | setHandle (const Handle(Geom2d_BSplineCurve)&) |
|
void | setPole (int index, const Base::Vector2d &, double weight=-1) |
|
std::list< Geometry2d * > | toBiArcs (double tolerance) const |
|
virtual | ~Geom2dBSplineCurve () |
|
bool | closestParameter (const Base::Vector2d &point, double &u) const |
|
bool | closestParameterToBasicCurve (const Base::Vector2d &point, double &u) const |
|
Base::Vector2d | firstDerivativeAtParameter (double u) const |
|
| Geom2dCurve () |
|
bool | normal (double u, gp_Dir2d &dir) const |
|
Base::Vector2d | pointAtParameter (double u) const |
|
Base::Vector2d | secondDerivativeAtParameter (double u) const |
|
bool | tangent (double u, gp_Dir2d &) const |
|
virtual TopoDS_Shape | toShape () const |
|
virtual | ~Geom2dCurve () |
|
virtual | ~Geometry2d () |
|
void | dumpToStream (std::ostream &stream, int compression) |
|
virtual Base::Type | getTypeId (void) const |
|
virtual void | RestoreDocFile (Reader &) |
| This method is used to restore large amounts of data from a file In this method you simply stream in your SaveDocFile() saved data. More...
|
|
void | restoreFromStream (std::istream &stream) |
|
virtual void | SaveDocFile (Writer &) const |
| This method is used to save large amounts of data to a binary file. More...
|
|
| BaseClass () |
| Construction. More...
|
|
bool | isDerivedFrom (const Type type) const |
|
virtual void | setPyObject (PyObject *) |
|
virtual | ~BaseClass () |
| Destruction. More...
|
|
PyObject * Geom2dBSplineCurve::getPyObject |
( |
void |
| ) |
|
|
virtual |
This method returns the Python wrapper for a C++ object.
It's in the responsibility of the programmer to do the correct reference counting. Basically there are two ways how to implement that: Either always return a new Python object then reference counting is not a matter or return always the same Python object then the reference counter must be incremented by one. However, it's absolutely forbidden to return always the same Python object without incrementing the reference counter.
The default implementation returns 'None'.
Reimplemented from Base::BaseClass.
This method is used to save properties to an XML document.
A good example you'll find in PropertyStandard.cpp, e.g. the vector:
void PropertyVector::Save (Writer &writer) const
{
writer << writer.ind() << "<PropertyVector valueX=\"" << _cVec.x <<
"\" valueY=\"" << _cVec.y <<
"\" valueZ=\"" << _cVec.z <<"\"/>" << endl;
}
The writer.ind() expression writes the indentation, just for pretty printing of the XML. As you see, the writing of the XML document is not done with a DOM implementation because of performance reasons. Therefore the programmer has to take care that a valid XML document is written. This means closing tags and writing UTF-8.
- See also
- Base::Writer
Reimplemented from Part::Geometry2d.