#include <sys/types.h>
#include <string.h>
#include <strstream>
#include <vector>
#include <JtTk/JtkCADImporter.h>
#include <JtTk/JtkCADExporter.h>
#include <JtTk/JtkTraverser.h>
#include <JtTk/JtkEntityFactory.h>
#include <JtTk/JtkAttrib.h>
#include <JtTk/JtkStandard.h>
#include "JtReader.h"
Go to the source code of this file.
Defines | |
#define | indent(i) {for(int l=0; l < i; l++) InfoOut << " ";} |
Functions | |
void | clearData (void) |
clears the internal structure | |
void | insertShapeFaces (JtkShape *partShape) |
const SimpleMeshFacet * | iterGetNext (void) |
get the faces or 0 at end | |
unsigned int | iterSize (void) |
size of the result | |
const SimpleMeshFacet * | iterStart (void) |
start the iterator on the result | |
int | myPreactionCB_CollectFacets (JtkHierarchy *CurrNode, int level, JtkClientData *) |
int | myPreactionCB_PrintName (JtkHierarchy *CurrNode, int level, JtkClientData *) |
void | printBrep (JtkBrep *partBrep, int level) |
void | printMaterial (JtkMaterial *partMaterial, int level) |
void | printShape (JtkShape *partShape, int level) |
void | printWrep (JtkWrep *partWrep, int level) |
void | printXform (JtkTransform *partXform, int level) |
void | readFile (const char *FileName, int iLods) |
Reads a JT File an build up the internal data structure imports all the meshes of all Parts, recursing the Assamblies. | |
void | testLicence (void) |
Variables | |
int | iLod = 0 |
strstream | InfoOut |
int | my_level = 0 |
vector< SimpleMeshFacet > | result |
vector< SimpleMeshFacet > ::const_iterator | resultIt |
bool | want_details = false |
#define indent | ( | i | ) | {for(int l=0; l < i; l++) InfoOut << " ";} |
Definition at line 32 of file JtReader.cpp.
Referenced by Base::InventorBuilder::addCylinder(), Base::InventorBuilder::addDrawStyle(), Base::InventorBuilder::addMaterial(), Base::InventorBuilder::addMaterialBinding(), Base::InventorBuilder::addPoint(), Base::InventorBuilder::addSingleArrow(), Base::InventorBuilder::addText(), Base::InventorBuilder::addTransformation(), Base::InventorBuilder::beginPoints(), Base::InventorBuilder::beginSeparator(), Base::InventorBuilder::endPoints(), Base::InventorBuilder::endSeparator(), Gui::TextEditor::keyPressEvent(), myPreactionCB_CollectFacets(), myPreactionCB_PrintName(), printBrep(), printMaterial(), printShape(), printWrep(), and printXform().
void clearData | ( | void | ) |
void insertShapeFaces | ( | JtkShape * | partShape | ) |
Definition at line 455 of file JtReader.cpp.
References SimpleMeshFacet::n, SimpleMeshFacet::p1, SimpleMeshFacet::p2, SimpleMeshFacet::p3, result, and texture().
Referenced by myPreactionCB_CollectFacets().
const SimpleMeshFacet* iterGetNext | ( | void | ) |
unsigned int iterSize | ( | void | ) |
const SimpleMeshFacet* iterStart | ( | void | ) |
int myPreactionCB_CollectFacets | ( | JtkHierarchy * | CurrNode, | |
int | level, | |||
JtkClientData * | ||||
) |
Definition at line 524 of file JtReader.cpp.
References iLod, indent, InfoOut, insertShapeFaces(), and printXform().
Referenced by readFile().
int myPreactionCB_PrintName | ( | JtkHierarchy * | CurrNode, | |
int | level, | |||
JtkClientData * | ||||
) |
Definition at line 247 of file JtReader.cpp.
References indent, InfoOut, my_level, printBrep(), printMaterial(), printShape(), printWrep(), printXform(), and want_details.
void printBrep | ( | JtkBrep * | partBrep, | |
int | level | |||
) |
Definition at line 135 of file JtReader.cpp.
References indent, and InfoOut.
Referenced by myPreactionCB_PrintName().
void printMaterial | ( | JtkMaterial * | partMaterial, | |
int | level | |||
) |
Definition at line 64 of file JtReader.cpp.
References indent, and InfoOut.
Referenced by myPreactionCB_PrintName().
void printShape | ( | JtkShape * | partShape, | |
int | level | |||
) |
Definition at line 147 of file JtReader.cpp.
References indent, InfoOut, and texture().
Referenced by myPreactionCB_PrintName().
void printWrep | ( | JtkWrep * | partWrep, | |
int | level | |||
) |
Definition at line 141 of file JtReader.cpp.
References indent, and InfoOut.
Referenced by myPreactionCB_PrintName().
void printXform | ( | JtkTransform * | partXform, | |
int | level | |||
) |
Definition at line 34 of file JtReader.cpp.
References indent, and InfoOut.
Referenced by myPreactionCB_CollectFacets(), and myPreactionCB_PrintName().
void readFile | ( | const char * | FileName, | |
int | iLods | |||
) |
Reads a JT File an build up the internal data structure imports all the meshes of all Parts, recursing the Assamblies.
Definition at line 641 of file JtReader.cpp.
References iLod, importer(), myPreactionCB_CollectFacets(), and testLicence().
void testLicence | ( | void | ) |
Definition at line 608 of file JtReader.cpp.
Referenced by readFile().
int iLod = 0 |
Definition at line 25 of file JtReader.cpp.
Referenced by myPreactionCB_CollectFacets(), and readFile().
strstream InfoOut |
Definition at line 26 of file JtReader.cpp.
Referenced by clearData(), myPreactionCB_CollectFacets(), myPreactionCB_PrintName(), printBrep(), printMaterial(), printShape(), printWrep(), and printXform().
int my_level = 0 |
Definition at line 23 of file JtReader.cpp.
Referenced by clearData(), and myPreactionCB_PrintName().
vector<SimpleMeshFacet> result |
Definition at line 28 of file JtReader.cpp.
Referenced by Gui::StdCmdPythonHelp::activated(), CmdPartRuledSurface::activated(), Gui::Application::activateWorkbench(), Base::InventorBuilder::addBoundingBox(), Base::InventorBuilder::addCylinder(), Base::InventorBuilder::addDrawStyle(), Base::InventorBuilder::addIndexedFaceSet(), Base::InventorBuilder::addLineSet(), Base::InventorBuilder::addMaterial(), Base::InventorBuilder::addMaterialBinding(), Base::InventorBuilder::addNurbsSurface(), Base::InventorBuilder::addPoint(), Base::Builder3D::addPoint(), Base::InventorBuilder::addSingleArrow(), Base::Builder3D::addSingleArrow(), Base::InventorBuilder::addSingleLine(), Base::Builder3D::addSingleLine(), Base::InventorBuilder::addSinglePlane(), Base::Builder3D::addSinglePoint(), Base::InventorBuilder::addSingleTriangle(), Base::Builder3D::addSingleTriangle(), Base::InventorBuilder::addText(), Base::Builder3D::addText(), Base::InventorBuilder::addTransformation(), Base::Builder3D::addTransformation(), Part::TopoShape::analyze(), Base::InventorBuilder::beginPoints(), Base::InventorBuilder::beginSeparator(), Base::Builder3D::Builder3D(), MeshGui::ViewProviderMeshTransformDemolding::calcMaterialIndex(), Base::Builder3D::clear(), clearData(), Gui::PyResource::connect(), Base::InterpreterSingleton::convertSWIGPointerObj(), Base::InterpreterSingleton::createSWIGPointerObj(), Base::InventorBuilder::endPoints(), Base::Builder3D::endPoints(), Base::InventorBuilder::endSeparator(), Robot::TrajectoryDressUpObject::execute(), Robot::TrajectoryCompound::execute(), Raytracing::RayFeature::execute(), PartDesign::Revolution::execute(), PartDesign::Pad::execute(), Part::FeatureGeometrySet::execute(), Drawing::DXFOutput::exportEdges(), Drawing::SVGOutput::exportEdges(), boost::numeric::bindings::lapack::detail::geev(), Drawing::ProjectionAlgos::getDXF(), App::PropertyEnumeration::getEnumVector(), App::Document::getInList(), CamGui::Cutting::getProcessOutput(), Drawing::ProjectionAlgos::getSVG(), App::Document::getTouched(), boost::numeric::bindings::lapack::detail::hseqr(), initCompleteGui(), Mesh::MeshObject::inner(), insertShapeFaces(), Mesh::MeshObject::intersect(), Base::InventorBuilder::InventorBuilder(), iterGetNext(), iterSize(), iterStart(), Gui::PythonOnlineHelp::loadResource(), Gui::MainWindow::MainWindow(), Gui::UrlLabel::mouseReleaseEvent(), Gui::SignalConnect::onExecute(), Gui::OpenURLInBrowser(), boost::numeric::bindings::lapack::detail::Hseqr< 2 >::operator()(), boost::numeric::bindings::lapack::detail::Hseqr< 1 >::operator()(), KDL::RotationalInertia::operator*(), KDL::operator*(), KDL::operator+(), Mesh::MeshObject::outer(), PP_Run_Codestr(), PP_Set_Global(), PP_Set_Member(), projectToDXF(), projectToSVG(), Mesh::Segment::removeIndices(), Sketcher::ConstraintPy::representation(), Base::Builder3D::saveToFile(), Base::Builder3D::saveToLog(), Base::FileInfo::setFile(), Robot::Robot6Axis::setTo(), Base::UnitsApi::sGetWithPrefs(), Base::Builder3D::startPoints(), Base::InterpreterSingleton::strToPython(), Mesh::MeshObject::subtract(), Gui::TaskView::TaskDialogPython::TaskDialogPython(), Gui::TaskView::TaskWatcherPython::TaskWatcherPython(), Robot::RobotAlgos::Test(), Sketcher::Sketch::toShape(), Py::trace(), MeshCore::EarClippingTriangulator::Triangulate(), Py::type(), Mesh::MeshObject::unite(), Py::value(), RobotGui::TaskRobot6Axis::viewTcp(), RobotGui::TaskTrajectory::viewTool(), RobotGui::TaskRobot6Axis::viewTool(), Part::TopoShapePy::writeInventor(), Points::PointsPy::writeInventor(), and Mesh::MeshPy::writeInventor().
vector<SimpleMeshFacet>::const_iterator resultIt |
Definition at line 29 of file JtReader.cpp.
Referenced by clearData(), iterGetNext(), and iterStart().
bool want_details = false |
Definition at line 24 of file JtReader.cpp.
Referenced by myPreactionCB_PrintName().