#include <Geometry2d.h>
◆ Geom2dLine() [1/3]
Geom2dLine::Geom2dLine |
( |
| ) |
|
◆ Geom2dLine() [2/3]
Geom2dLine::Geom2dLine |
( |
const Handle(Geom2d_Line)& |
l | ) |
|
◆ Geom2dLine() [3/3]
◆ ~Geom2dLine()
Geom2dLine::~Geom2dLine |
( |
| ) |
|
|
virtual |
◆ clone()
virtual Geometry2d* Part::Geom2dLine::clone |
( |
void |
| ) |
const |
|
virtual |
◆ getDir()
◆ getMemSize()
virtual unsigned int Part::Geom2dLine::getMemSize |
( |
void |
| ) |
const |
|
virtual |
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?
Reimplemented from Part::Geometry2d.
◆ getPos()
◆ getPyObject()
PyObject * Geom2dLine::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.
◆ Handle()
const Part::Geom2dLine::Handle |
( |
Geom2d_Geometry |
| ) |
const & |
|
virtual |
◆ Restore()
This method is used to restore properties from an XML document.
It uses the XMLReader class, which bases on SAX, to read the in Save() written information. Again the Vector as an example:
Reimplemented from Part::Geometry2d.
◆ Save()
virtual void Part::Geom2dLine::Save |
( |
Base::Writer & |
| ) |
const |
|
virtual |
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.
◆ setLine()
The documentation for this class was generated from the following files:
- src/Mod/Part/App/Geometry2d.h
- src/Mod/Part/App/Geometry2d.cpp
double getAttributeAsFloat(const char *AttrName) const
return the named attribute as a double floating point (does type checking)
Definition: Reader.cpp:159
void readElement(const char *ElementName=0)
read until a start element is found (<name>) or start-end element (<name/>) (with special name if giv...
Definition: Reader.cpp:241