Namespaces | |
namespace | Ui |
Typedefs | |
typedef boost::signals2::connection | Connection |
typedef std::tuple< TopAbs_ShapeEnum, BRepCheck_Status, ResultFunction > | FunctionMapType |
typedef std::function< void(ResultEntry *entry)> | ResultFunction |
typedef std::shared_ptr< Ui_DlgPartBox > | Ui_DlgPartBoxPtr |
typedef std::shared_ptr< Ui_DlgPartCylinder > | Ui_DlgPartCylinderPtr |
typedef Gui::ViewProviderPythonFeatureT< ViewProvider2DObject > | ViewProvider2DObjectPython |
typedef Gui::ViewProviderExtensionPythonT< PartGui::ViewProviderAttachExtension > | ViewProviderAttachExtensionPython |
typedef Gui::ViewProviderPythonFeatureT< ViewProviderCustom > | ViewProviderCustomPython |
typedef Gui::ViewProviderPythonFeatureT< ViewProviderPart > | ViewProviderPython |
typedef Gui::ViewProviderExtensionPythonT< PartGui::ViewProviderSplineExtension > | ViewProviderSplineExtensionPython |
typedef boost::signals2::connection PartGui::Connection |
typedef std::tuple<TopAbs_ShapeEnum, BRepCheck_Status, ResultFunction> PartGui::FunctionMapType |
typedef std::function<void (ResultEntry *entry)> PartGui::ResultFunction |
typedef std::shared_ptr<Ui_DlgPartBox> PartGui::Ui_DlgPartBoxPtr |
typedef std::shared_ptr<Ui_DlgPartCylinder> PartGui::Ui_DlgPartCylinderPtr |
typedef Gui::ViewProviderExtensionPythonT<PartGui::ViewProviderAttachExtension> PartGui::ViewProviderAttachExtensionPython |
typedef Gui::ViewProviderExtensionPythonT<PartGui::ViewProviderSplineExtension> PartGui::ViewProviderSplineExtensionPython |
void PartGui::addLinearDimensions | ( | const BRepExtrema_DistShapeShape & | measure | ) |
adds 3d and delta dimensions to the viewer
measure | object containing the measure information. |
References App::Color::asHexString(), App::Color::b, createLinearDimension(), App::Color::fromHexString(), App::Color::g, App::GetApplication(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), getViewer(), App::Color::r, and OfflineRenderingUtils::viewer().
Referenced by goDimensionLinearNoTask().
QString PartGui::buildSelectionName | ( | const ResultEntry * | entry, |
const TopoDS_Shape & | shape | ||
) |
References PartGui::ResultEntry::name, PartGui::ResultEntry::parent, and PartGui::ResultEntry::shape.
Referenced by goSetupResultTypedSelection().
bool PartGui::checkForSolids | ( | const TopoDS_Shape & | shape | ) |
gp_Vec PartGui::convert | ( | const TopoDS_Vertex & | vertex | ) |
Referenced by evaluateAngularPreSelection(), and PartGui::VectorAdapter::VectorAdapter().
SoNode * PartGui::createLinearDimension | ( | const gp_Pnt & | point1, |
const gp_Pnt & | point2, | ||
const SbColor & | color | ||
) |
creates one dimension from points with color
point1 | first point |
point2 | second point |
color | color of dimension |
References Base::Quantity::getUserString(), and Base::Unit::Length.
Referenced by addLinearDimensions().
void PartGui::dumpLinearResults | ( | const BRepExtrema_DistShapeShape & | measure | ) |
prints results of measuring to console.
measure | object containing the measure information |
References Base::Console(), Base::Quantity::getUserString(), Base::Unit::Length, and Base::ConsoleSingleton::Message().
Referenced by goDimensionLinearNoTask().
void PartGui::ensure3dDimensionVisible | ( | ) |
make sure angle measure command isn't working with 3d off. Confusing the user
References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
Referenced by goDimensionAngularRoot().
void PartGui::ensureSomeDimensionVisible | ( | ) |
make sure measure command isn't working with everything invisible. Confusing the user
References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
Referenced by goDimensionLinearRoot().
void PartGui::eraseAllDimensions | ( | ) |
erases all the dimensions in the viewer.
References Gui::Application::activeDocument(), Gui::Application::Instance, and OfflineRenderingUtils::viewer().
Referenced by PartGui::DimensionControl::clearAllSlot(), PartGui::TaskMeasureLinear::clearAllSlot(), PartGui::TaskMeasureAngular::clearAllSlot(), and refreshDimensions().
bool PartGui::evaluateAngularPreSelection | ( | VectorAdapter & | vector1Out, |
VectorAdapter & | vector2Out | ||
) |
examine angular pre selection
vector1Out | first shape in current selection |
vector2Out | second shape in current selection |
References Base::Console(), convert(), PartGui::DimSelections::Edge, draftutils.utils::epsilon(), PartGui::DimSelections::Face, App::Application::getActiveDocument(), App::GetApplication(), PartGui::VectorAdapter::getPickPoint(), Gui::SelectionSingleton::getSelection(), Part::Feature::getShape(), Base::Matrix4D::inverse(), Base::ConsoleSingleton::Message(), Gui::NoResolve, Gui::Selection(), and PartGui::DimSelections::Vertex.
Referenced by goDimensionAngularRoot().
bool PartGui::evaluateLinearPreSelection | ( | TopoDS_Shape & | shape1, |
TopoDS_Shape & | shape2 | ||
) |
examine pre selection
shape1 | first shape in current selection |
shape2 | second shape in current selection |
References App::Application::getActiveDocument(), App::GetApplication(), Gui::SelectionSingleton::getSelection(), Part::Feature::getShape(), Gui::NoResolve, Gui::Selection(), and PartGui::DimSelections::selections.
Referenced by goDimensionLinearRoot().
const char * PartGui::gce_ErrorStatusText | ( | gce_ErrorType | et | ) |
Referenced by PartGui::CircleFromThreePoints::command().
QString PartGui::getAutoGroupCommandStr | ( | QString | objectName | ) |
bool PartGui::getShapeFromStrings | ( | TopoDS_Shape & | shapeOut, |
const std::string & | doc, | ||
const std::string & | object, | ||
const std::string & | sub, | ||
Base::Matrix4D * | mat = nullptr |
||
) |
find shape from selection strings
shapeOut | search results. |
doc | document name to search. |
object | object name to search. |
sub | sub-object name to search. |
References App::GetApplication(), App::Application::getDocument(), App::Document::getObject(), and Part::Feature::getShape().
Referenced by PartGui::TaskMeasureLinear::buildDimension(), and PartGui::TaskMeasureAngular::onSelectionChanged().
std::vector< Part::TopoShape > PartGui::getShapesFromSelection | ( | ) |
Gui::View3DInventorViewer * PartGui::getViewer | ( | ) |
convenience function to get the viewer
References Gui::Application::activeDocument(), Gui::Application::Instance, and OfflineRenderingUtils::viewer().
Referenced by addLinearDimensions(), goDimensionAngularNoTask(), goDimensionLinearNoTask(), and PartGui::Location::~Location().
void PartGui::goDimensionAngularNoTask | ( | const VectorAdapter & | vector1Adapter, |
const VectorAdapter & | vector2Adapter | ||
) |
build angular dimension
References Base::Unit::Angle, DraftVecUtils::angle(), Base::Console(), App::GetApplication(), ParameterGrp::GetGroup(), PartGui::VectorAdapter::getPickPoint(), App::Application::GetUserParameter(), getViewer(), Base::ConsoleSingleton::Message(), and OfflineRenderingUtils::viewer().
Referenced by PartGui::TaskMeasureAngular::buildDimension(), and goDimensionAngularRoot().
void PartGui::goDimensionAngularRoot | ( | ) |
start of the measure angular command
References Gui::ControlSingleton::activeDialog(), Gui::SelectionSingleton::clearSelection(), Gui::Control(), ensure3dDimensionVisible(), evaluateAngularPreSelection(), goDimensionAngularNoTask(), Gui::Selection(), and Gui::ControlSingleton::showDialog().
void PartGui::goDimensionLinearNoTask | ( | const TopoDS_Shape & | shape1, |
const TopoDS_Shape & | shape2 | ||
) |
does the measure and create dimensions without a dialog
shape1 | first shape. |
shape2 | second shape. |
References addLinearDimensions(), dumpLinearResults(), getViewer(), and OfflineRenderingUtils::viewer().
Referenced by PartGui::TaskMeasureLinear::buildDimension(), and goDimensionLinearRoot().
void PartGui::goDimensionLinearRoot | ( | ) |
start of the measure linear command
References Gui::ControlSingleton::activeDialog(), Gui::SelectionSingleton::clearSelection(), Gui::Control(), ensureSomeDimensionVisible(), evaluateLinearPreSelection(), goDimensionLinearNoTask(), Gui::Selection(), and Gui::ControlSingleton::showDialog().
void PartGui::goSetupResultBoundingBox | ( | ResultEntry * | entry | ) |
References PartGui::ResultEntry::boxSep, PartGui::ResultEntry::boxSwitch, PartGui::ResultEntry::shape, and PartGui::ResultEntry::viewProviderRoot.
Referenced by PartGui::TaskCheckGeometryResults::goCheck(), goSetupResultIntersectingWires(), goSetupResultInvalidCurveSurface(), goSetupResultInvalidPointCurve(), goSetupResultInvalidSameParameterFlag(), goSetupResultShellNotClosed(), goSetupResultUnorientableShapeFace(), and goSetupResultWireNotClosed().
void PartGui::goSetupResultIntersectingWires | ( | ResultEntry * | entry | ) |
void PartGui::goSetupResultInvalidCurveSurface | ( | ResultEntry * | entry | ) |
void PartGui::goSetupResultInvalidPointCurve | ( | ResultEntry * | entry | ) |
void PartGui::goSetupResultInvalidSameParameterFlag | ( | ResultEntry * | entry | ) |
void PartGui::goSetupResultShellNotClosed | ( | ResultEntry * | entry | ) |
void PartGui::goSetupResultTypedSelection | ( | ResultEntry * | entry, |
const TopoDS_Shape & | shape, | ||
TopAbs_ShapeEnum | type | ||
) |
References buildSelectionName(), and PartGui::ResultEntry::selectionStrings.
Referenced by goSetupResultIntersectingWires(), goSetupResultInvalidCurveSurface(), goSetupResultInvalidPointCurve(), goSetupResultInvalidSameParameterFlag(), goSetupResultShellNotClosed(), goSetupResultUnorientableShapeFace(), and goSetupResultWireNotClosed().
void PartGui::goSetupResultUnorientableShapeFace | ( | ResultEntry * | entry | ) |
void PartGui::goSetupResultWireNotClosed | ( | ResultEntry * | entry | ) |
bool PartGui::hasShapesInSelection | ( | ) |
PyObject * PartGui::initModule | ( | ) |
References Base::InterpreterSingleton::addModule(), and Base::Interpreter().
void PartGui::refreshDimensions | ( | ) |
refresh all the dimensions in the viewer.
References eraseAllDimensions(), App::Application::getActiveDocument(), and App::GetApplication().
void PartGui::toggle3d | ( | ) |
toggles the display status of the 3d dimensions
References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
Referenced by PartGui::DimensionControl::toggle3dSlot(), PartGui::TaskMeasureLinear::toggle3dSlot(), and PartGui::TaskMeasureAngular::toggle3dSlot().
void PartGui::toggleDelta | ( | ) |
toggles the display status of the delta dimensions
References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
Referenced by PartGui::DimensionControl::toggleDeltaSlot(), PartGui::TaskMeasureLinear::toggleDeltaSlot(), and PartGui::TaskMeasureAngular::toggleDeltaSlot().