JtReader.cpp File Reference

#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 SimpleMeshFacetiterGetNext (void)
 get the faces or 0 at end
unsigned int iterSize (void)
 size of the result
const SimpleMeshFacetiterStart (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< SimpleMeshFacetresult
vector< SimpleMeshFacet >
::const_iterator 
resultIt
bool want_details = false

Define Documentation

#define indent (  )     {for(int l=0; l < i; l++) InfoOut << " ";}

Function Documentation

void clearData ( void   ) 

clears the internal structure

Definition at line 718 of file JtReader.cpp.

References InfoOut, my_level, result, and resultIt.

Referenced by insert(), open(), and read().

void insertShapeFaces ( JtkShape *  partShape  ) 
const SimpleMeshFacet* iterGetNext ( void   ) 

get the faces or 0 at end

Definition at line 703 of file JtReader.cpp.

References result, and resultIt.

Referenced by insert(), open(), and read().

unsigned int iterSize ( void   ) 

size of the result

Definition at line 711 of file JtReader.cpp.

References result.

Referenced by insert(), open(), and read().

const SimpleMeshFacet* iterStart ( void   ) 

start the iterator on the result

Definition at line 694 of file JtReader.cpp.

References result, and resultIt.

Referenced by insert(), open(), and read().

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 *   
)
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().

Referenced by insert(), open(), and read().

void testLicence ( void   ) 

Definition at line 608 of file JtReader.cpp.

Referenced by readFile().


Variable Documentation

int iLod = 0

Definition at line 25 of file JtReader.cpp.

Referenced by myPreactionCB_CollectFacets(), and readFile().

strstream InfoOut
int my_level = 0

Definition at line 23 of file JtReader.cpp.

Referenced by clearData(), and myPreactionCB_PrintName().

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().


Generated on Wed Nov 23 19:01:17 2011 for FreeCAD by  doxygen 1.6.1