#include <ExportOCAF.h>
|
void | createNode (App::Part *part, int &root_it, std::vector< TDF_Label > &hierarchical_label, std::vector< TopLoc_Location > &hierarchical_loc, std::vector< App::DocumentObject * > &hierarchical_part) |
|
int | exportObject (App::DocumentObject *obj, std::vector< TDF_Label > &hierarchical_label, std::vector< TopLoc_Location > &hierarchical_loc, std::vector< App::DocumentObject * > &hierarchical_part) |
|
| ExportOCAF (Handle(TDocStd_Document) h, bool explicitPlacement) |
|
void | getFreeLabels (std::vector< TDF_Label > &hierarchical_label, std::vector< TDF_Label > &labels, std::vector< int > &label_part_id) |
|
void | getPartColors (std::vector< App::DocumentObject * > hierarchical_part, std::vector< TDF_Label > FreeLabels, std::vector< int > part_id, std::vector< std::vector< App::Color > > &Colors) const |
|
void | pushNode (int root, int node, std::vector< TDF_Label > &hierarchical_label, std::vector< TopLoc_Location > &hierarchical_loc) |
|
void | reallocateFreeShape (std::vector< App::DocumentObject * > hierarchical_part, std::vector< TDF_Label > FreeLabels, std::vector< int > part_id, std::vector< std::vector< App::Color > > &Colors) |
|
int | saveShape (Part::Feature *part, const std::vector< App::Color > &, std::vector< TDF_Label > &hierarchical_label, std::vector< TopLoc_Location > &hierarchical_loc, std::vector< App::DocumentObject * > &hierarchical_part) |
|
virtual | ~ExportOCAF () |
|
◆ ExportOCAF()
ExportOCAF::ExportOCAF |
( |
Handle(TDocStd_Document) |
h, |
|
|
bool |
explicitPlacement |
|
) |
| |
◆ ~ExportOCAF()
ExportOCAF::~ExportOCAF |
( |
| ) |
|
|
virtual |
◆ createNode()
void ExportOCAF::createNode |
( |
App::Part * |
part, |
|
|
int & |
root_it, |
|
|
std::vector< TDF_Label > & |
hierarchical_label, |
|
|
std::vector< TopLoc_Location > & |
hierarchical_loc, |
|
|
std::vector< App::DocumentObject * > & |
hierarchical_part |
|
) |
| |
References DraftVecUtils::angle(), Base::Placement::getPosition(), Base::Placement::getRotation(), Base::Rotation::getValue(), App::PropertyPlacement::getValue(), App::PropertyString::getValue(), App::DocumentObject::Label, App::GeoFeature::Placement, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by exportObject().
◆ exportObject()
int ExportOCAF::exportObject |
( |
App::DocumentObject * |
obj, |
|
|
std::vector< TDF_Label > & |
hierarchical_label, |
|
|
std::vector< TopLoc_Location > & |
hierarchical_loc, |
|
|
std::vector< App::DocumentObject * > & |
hierarchical_part |
|
) |
| |
◆ getFreeLabels()
void ExportOCAF::getFreeLabels |
( |
std::vector< TDF_Label > & |
hierarchical_label, |
|
|
std::vector< TDF_Label > & |
labels, |
|
|
std::vector< int > & |
label_part_id |
|
) |
| |
◆ getPartColors()
void ExportOCAF::getPartColors |
( |
std::vector< App::DocumentObject * > |
hierarchical_part, |
|
|
std::vector< TDF_Label > |
FreeLabels, |
|
|
std::vector< int > |
part_id, |
|
|
std::vector< std::vector< App::Color > > & |
Colors |
|
) |
| const |
◆ pushNode()
void ExportOCAF::pushNode |
( |
int |
root, |
|
|
int |
node, |
|
|
std::vector< TDF_Label > & |
hierarchical_label, |
|
|
std::vector< TopLoc_Location > & |
hierarchical_loc |
|
) |
| |
◆ reallocateFreeShape()
void ExportOCAF::reallocateFreeShape |
( |
std::vector< App::DocumentObject * > |
hierarchical_part, |
|
|
std::vector< TDF_Label > |
FreeLabels, |
|
|
std::vector< int > |
part_id, |
|
|
std::vector< std::vector< App::Color > > & |
Colors |
|
) |
| |
◆ saveShape()
int ExportOCAF::saveShape |
( |
Part::Feature * |
part, |
|
|
const std::vector< App::Color > & |
colors, |
|
|
std::vector< TDF_Label > & |
hierarchical_label, |
|
|
std::vector< TopLoc_Location > & |
hierarchical_loc, |
|
|
std::vector< App::DocumentObject * > & |
hierarchical_part |
|
) |
| |
References DraftVecUtils::angle(), Base::Placement::getPosition(), Base::Placement::getRotation(), Base::Rotation::getValue(), App::PropertyPlacement::getValue(), App::PropertyString::getValue(), Part::PropertyPartShape::getValue(), App::DocumentObject::Label, App::GeoFeature::Placement, Part::Feature::Shape, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by exportObject().
The documentation for this class was generated from the following files:
- FreeCAD/src/Mod/Import/App/ExportOCAF.h
- FreeCAD/src/Mod/Import/App/ExportOCAF.cpp