PartGui Namespace Reference

Namespaces

namespace  Ui
 

Classes

class  ArcEngine
 
class  BooleanOperationItem
 
class  BOPProgressIndicator
 
class  BoxSelection
 
class  CircleFromThreePoints
 
class  CrossSections
 
class  DimensionAngular
 
class  DimensionControl
 
class  DimensionLinear
 
class  DimSelections
 
class  DlgBooleanOperation
 
class  DlgChamferEdges
 
class  DlgExtrusion
 
class  DlgFilletEdges
 
class  DlgImportExportIges
 
class  DlgImportExportStep
 
class  DlgPartBoxImp
 
class  DlgPartCylinderImp
 
class  DlgPartImportIgesImp
 
class  DlgPartImportStepImp
 
class  DlgPrimitives
 
class  DlgProjectionOnSurface
 
class  DlgRevolution
 
class  DlgSettings3DViewPart
 The DlgSettings3DViewPartImp class implements a preference page to change settings for the Inventor viewer. More...
 
class  DlgSettingsGeneral
 
class  DlgSettingsObjectColor
 The DlgSettingsObjectColor class implements a preference page to change color settings for data objects. More...
 
class  EdgeFaceSelection
 
class  FaceColors
 
class  FaceSelection
 
class  FilletEdgesDialog
 
class  FilletRadiusDelegate
 
class  FilletRadiusModel
 
class  Location
 
class  LoftWidget
 
class  Mirroring
 
class  Module
 
class  OffsetWidget
 
class  Picker
 
class  PropertyEnumAttacherItem
 Custom editor item for PropertyEnumeration to open Attacher task. More...
 
class  ReferenceHighlighter
 The ReferenceHighlighter class. More...
 
class  ResultEntry
 
class  ResultModel
 
class  SectionCut
 
class  ShapeBuilderWidget
 
class  ShapeFromMesh
 
class  ShapeSelection
 
class  SoBrepEdgeSet
 
class  SoBrepFaceSet
 First some words to the history and the reason why we have this class: In older FreeCAD versions we had an own Inventor node for each sub-element of a shape with its own highlight node. More...
 
class  SoBrepPointSet
 
class  SoFCControlPoints
 
class  SteppedSelection
 
class  SweepWidget
 
class  TaskAttacher
 
class  TaskBooleanOperation
 
class  TaskChamferEdges
 
class  TaskCheckGeometryDialog
 
class  TaskCheckGeometryResults
 
class  TaskCrossSections
 
class  TaskDlgAttacher
 simulation dialog for the TaskView More...
 
class  TaskExtrusion
 
class  TaskFaceColors
 
class  TaskFilletEdges
 
class  TaskLoft
 
class  TaskMeasureAngular
 
class  TaskMeasureLinear
 
class  TaskMirroring
 
class  TaskOffset
 
class  TaskPrimitives
 
class  TaskPrimitivesEdit
 
class  TaskProjectionOnSurface
 
class  TaskRevolution
 
class  TaskShapeBuilder
 
class  TaskSweep
 
class  TaskThickness
 
class  ThicknessWidget
 
class  Ui_CrossSections
 
class  Ui_DlgBooleanOperation
 
class  Ui_DlgExtrusion
 
class  Ui_DlgFilletEdges
 
class  Ui_DlgImportExportIges
 
class  Ui_DlgImportExportStep
 
class  Ui_DlgPartBox
 
class  Ui_DlgPartCylinder
 
class  Ui_DlgPartImportIges
 
class  Ui_DlgPartImportStep
 
class  Ui_DlgPrimitives
 
class  Ui_DlgProjectionOnSurface
 
class  Ui_DlgRevolution
 
class  Ui_DlgSettings3DViewPart
 
class  Ui_DlgSettingsGeneral
 
class  Ui_DlgSettingsObjectColor
 
class  Ui_Location
 
class  Ui_Mirroring
 
class  Ui_SectionCut
 
class  Ui_ShapeFromMesh
 
class  Ui_TaskAttacher
 
class  Ui_TaskFaceColors
 
class  Ui_TaskLoft
 
class  Ui_TaskOffset
 
class  Ui_TaskShapeBuilder
 
class  Ui_TaskSweep
 
class  VectorAdapter
 Convert to vector. More...
 
class  ViewProvider2DObject
 
class  ViewProvider2DObjectGrid
 
class  ViewProviderAttachExtension
 
class  ViewProviderBoolean
 
class  ViewProviderBox
 
class  ViewProviderChamfer
 
class  ViewProviderCircleParametric
 
class  ViewProviderCompound
 
class  ViewProviderConeParametric
 
class  ViewProviderCrossSections
 
class  ViewProviderCurveNet
 
class  ViewProviderCustom
 
class  ViewProviderCylinderParametric
 
class  ViewProviderEllipseParametric
 
class  ViewProviderEllipsoid
 
class  ViewProviderExtrusion
 
class  ViewProviderFace
 
class  ViewProviderFillet
 
class  ViewProviderHelixParametric
 
class  ViewProviderImport
 
class  ViewProviderLineParametric
 
class  ViewProviderLoft
 
class  ViewProviderMirror
 
class  ViewProviderMultiCommon
 ViewProvider for the MultiFuse feature. More...
 
class  ViewProviderMultiFuse
 ViewProvider for the MultiFuse feature. More...
 
class  ViewProviderOffset
 
class  ViewProviderOffset2D
 
class  ViewProviderPart
 
class  ViewProviderPartExt
 
class  ViewProviderPartReference
 
class  ViewProviderPlaneParametric
 
class  ViewProviderPointParametric
 
class  ViewProviderPrimitive
 
class  ViewProviderPrism
 
class  ViewProviderRefine
 
class  ViewProviderRegularPolygon
 
class  ViewProviderReverse
 
class  ViewProviderRevolution
 
class  ViewProviderRuledSurface
 
class  ViewProviderShapeBuilder
 
class  ViewProviderSphereParametric
 
class  ViewProviderSpiralParametric
 
class  ViewProviderSpline
 
class  ViewProviderSplineExtension
 
class  ViewProviderSweep
 
class  ViewProviderThickness
 
class  ViewProviderTorusParametric
 
class  ViewProviderWedge
 
class  Workbench
 

Typedefs

typedef boost::signals2::connection Connection
 
typedef std::tuple< TopAbs_ShapeEnum, BRepCheck_Status, ResultFunctionFunctionMapType
 
typedef std::function< void(ResultEntry *entry)> ResultFunction
 
typedef std::shared_ptr< Ui_DlgPartBoxUi_DlgPartBoxPtr
 
typedef std::shared_ptr< Ui_DlgPartCylinderUi_DlgPartCylinderPtr
 
typedef Gui::ViewProviderPythonFeatureT< ViewProvider2DObjectViewProvider2DObjectPython
 
typedef Gui::ViewProviderExtensionPythonT< PartGui::ViewProviderAttachExtensionViewProviderAttachExtensionPython
 
typedef Gui::ViewProviderPythonFeatureT< ViewProviderCustomViewProviderCustomPython
 
typedef Gui::ViewProviderPythonFeatureT< ViewProviderPartViewProviderPython
 
typedef Gui::ViewProviderExtensionPythonT< PartGui::ViewProviderSplineExtensionViewProviderSplineExtensionPython
 

Functions

void addLinearDimensions (const BRepExtrema_DistShapeShape &measure)
 
QString buildSelectionName (const ResultEntry *entry, const TopoDS_Shape &shape)
 
bool checkForSolids (const TopoDS_Shape &shape)
 
gp_Vec convert (const TopoDS_Vertex &vertex)
 
SoNodecreateLinearDimension (const gp_Pnt &point1, const gp_Pnt &point2, const SbColor &color)
 
void dumpLinearResults (const BRepExtrema_DistShapeShape &measure)
 
void ensure3dDimensionVisible ()
 
void ensureSomeDimensionVisible ()
 
void eraseAllDimensions ()
 
bool evaluateAngularPreSelection (VectorAdapter &vector1Out, VectorAdapter &vector2Out)
 
bool evaluateLinearPreSelection (TopoDS_Shape &shape1, TopoDS_Shape &shape2)
 
const char * gce_ErrorStatusText (gce_ErrorType et)
 
QString getAutoGroupCommandStr (QString objectName)
 
bool getShapeFromStrings (TopoDS_Shape &shapeOut, const std::string &doc, const std::string &object, const std::string &sub, Base::Matrix4D *mat=nullptr)
 
std::vector< Part::TopoShapegetShapesFromSelection ()
 
Gui::View3DInventorViewergetViewer ()
 
void goDimensionAngularNoTask (const VectorAdapter &vector1Adapter, const VectorAdapter &vector2Adapter)
 
void goDimensionAngularRoot ()
 
void goDimensionLinearNoTask (const TopoDS_Shape &shape1, const TopoDS_Shape &shape2)
 
void goDimensionLinearRoot ()
 
void goSetupResultBoundingBox (ResultEntry *entry)
 
void goSetupResultIntersectingWires (ResultEntry *entry)
 
void goSetupResultInvalidCurveSurface (ResultEntry *entry)
 
void goSetupResultInvalidPointCurve (ResultEntry *entry)
 
void goSetupResultInvalidSameParameterFlag (ResultEntry *entry)
 
void goSetupResultShellNotClosed (ResultEntry *entry)
 
void goSetupResultTypedSelection (ResultEntry *entry, const TopoDS_Shape &shape, TopAbs_ShapeEnum type)
 
void goSetupResultUnorientableShapeFace (ResultEntry *entry)
 
void goSetupResultWireNotClosed (ResultEntry *entry)
 
bool hasShapesInSelection ()
 
PyObjectinitModule ()
 
void refreshDimensions ()
 
void toggle3d ()
 
void toggleDelta ()
 

Typedef Documentation

◆ Connection

typedef boost::signals2::connection PartGui::Connection

◆ FunctionMapType

typedef std::tuple<TopAbs_ShapeEnum, BRepCheck_Status, ResultFunction> PartGui::FunctionMapType

◆ ResultFunction

typedef std::function<void (ResultEntry *entry)> PartGui::ResultFunction

◆ Ui_DlgPartBoxPtr

typedef std::shared_ptr<Ui_DlgPartBox> PartGui::Ui_DlgPartBoxPtr

◆ Ui_DlgPartCylinderPtr

◆ ViewProvider2DObjectPython

◆ ViewProviderAttachExtensionPython

◆ ViewProviderCustomPython

◆ ViewProviderPython

◆ ViewProviderSplineExtensionPython

Function Documentation

◆ addLinearDimensions()

void PartGui::addLinearDimensions ( const BRepExtrema_DistShapeShape &  measure)

◆ buildSelectionName()

QString PartGui::buildSelectionName ( const ResultEntry entry,
const TopoDS_Shape &  shape 
)

◆ checkForSolids()

bool PartGui::checkForSolids ( const TopoDS_Shape &  shape)

◆ convert()

gp_Vec PartGui::convert ( const TopoDS_Vertex &  vertex)

◆ createLinearDimension()

SoNode * PartGui::createLinearDimension ( const gp_Pnt &  point1,
const gp_Pnt &  point2,
const SbColor &  color 
)

creates one dimension from points with color

Parameters
point1first point
point2second point
colorcolor of dimension
Returns
an inventor node to add to a scenegraph

References Base::Quantity::getUserString(), and Base::Unit::Length.

Referenced by addLinearDimensions().

◆ dumpLinearResults()

void PartGui::dumpLinearResults ( const BRepExtrema_DistShapeShape &  measure)

prints results of measuring to console.

Parameters
measureobject containing the measure information

References Base::Console(), Base::Quantity::getUserString(), Base::Unit::Length, and Base::ConsoleSingleton::Message().

Referenced by goDimensionLinearNoTask().

◆ ensure3dDimensionVisible()

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

◆ ensureSomeDimensionVisible()

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

◆ eraseAllDimensions()

◆ evaluateAngularPreSelection()

bool PartGui::evaluateAngularPreSelection ( VectorAdapter vector1Out,
VectorAdapter vector2Out 
)

examine angular pre selection

Parameters
vector1Outfirst shape in current selection
vector2Outsecond shape in current selection
Returns
signal if preselection is valid. false means vector1Out and vector2Out are invalid.

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

◆ evaluateLinearPreSelection()

bool PartGui::evaluateLinearPreSelection ( TopoDS_Shape &  shape1,
TopoDS_Shape &  shape2 
)

examine pre selection

Parameters
shape1first shape in current selection
shape2second shape in current selection
Returns
signal if preselection is valid. false means shape1 and shape2 are invalid.

References App::Application::getActiveDocument(), App::GetApplication(), Gui::SelectionSingleton::getSelection(), Part::Feature::getShape(), Gui::NoResolve, Gui::Selection(), and PartGui::DimSelections::selections.

Referenced by goDimensionLinearRoot().

◆ gce_ErrorStatusText()

const char * PartGui::gce_ErrorStatusText ( gce_ErrorType  et)

◆ getAutoGroupCommandStr()

◆ getShapeFromStrings()

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

Parameters
shapeOutsearch results.
docdocument name to search.
objectobject name to search.
subsub-object name to search.
Returns
signal if the search was successful.

References App::GetApplication(), App::Application::getDocument(), App::Document::getObject(), and Part::Feature::getShape().

Referenced by PartGui::TaskMeasureLinear::buildDimension(), and PartGui::TaskMeasureAngular::onSelectionChanged().

◆ getShapesFromSelection()

◆ getViewer()

◆ goDimensionAngularNoTask()

◆ goDimensionAngularRoot()

◆ goDimensionLinearNoTask()

void PartGui::goDimensionLinearNoTask ( const TopoDS_Shape &  shape1,
const TopoDS_Shape &  shape2 
)

does the measure and create dimensions without a dialog

Parameters
shape1first shape.
shape2second shape.

References addLinearDimensions(), dumpLinearResults(), getViewer(), and OfflineRenderingUtils::viewer().

Referenced by PartGui::TaskMeasureLinear::buildDimension(), and goDimensionLinearRoot().

◆ goDimensionLinearRoot()

◆ goSetupResultBoundingBox()

◆ goSetupResultIntersectingWires()

void PartGui::goSetupResultIntersectingWires ( ResultEntry entry)

◆ goSetupResultInvalidCurveSurface()

void PartGui::goSetupResultInvalidCurveSurface ( ResultEntry entry)

◆ goSetupResultInvalidPointCurve()

void PartGui::goSetupResultInvalidPointCurve ( ResultEntry entry)

◆ goSetupResultInvalidSameParameterFlag()

void PartGui::goSetupResultInvalidSameParameterFlag ( ResultEntry entry)

◆ goSetupResultShellNotClosed()

void PartGui::goSetupResultShellNotClosed ( ResultEntry entry)

◆ goSetupResultTypedSelection()

◆ goSetupResultUnorientableShapeFace()

void PartGui::goSetupResultUnorientableShapeFace ( ResultEntry entry)

◆ goSetupResultWireNotClosed()

void PartGui::goSetupResultWireNotClosed ( ResultEntry entry)

◆ hasShapesInSelection()

◆ initModule()

PyObject * PartGui::initModule ( )

◆ refreshDimensions()

void PartGui::refreshDimensions ( )

refresh all the dimensions in the viewer.

References eraseAllDimensions(), App::Application::getActiveDocument(), and App::GetApplication().

◆ toggle3d()

◆ toggleDelta()