PartGui Namespace Reference

Classes

class  ArcEngine
 
class  BooleanOperationItem
 
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  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  ResultEntry
 
class  ResultModel
 
class  ShapeBuilderWidget
 
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  TaskRevolution
 
class  TaskShapeBuilder
 
class  TaskSweep
 
class  TaskThickness
 
class  ThicknessWidget
 
class  VectorAdapter
 Convert to vector. More...
 
class  ViewProvider2DObject
 
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  ViewProviderPrism
 
class  ViewProviderRegularPolygon
 
class  ViewProviderRevolution
 
class  ViewProviderRuledSurface
 
class  ViewProviderShapeBuilder
 
class  ViewProviderSphereParametric
 
class  ViewProviderSpiralParametric
 
class  ViewProviderSpline
 
class  ViewProviderSweep
 
class  ViewProviderThickness
 
class  ViewProviderTorusParametric
 
class  ViewProviderWedge
 
class  Workbench
 

Typedefs

typedef boost::signals::connection Connection
 
typedef boost::tuple< TopAbs_ShapeEnum, BRepCheck_Status, ResultFunctionFunctionMapType
 
typedef boost::function< void(ResultEntry *entry)> ResultFunction
 
typedef Gui::ViewProviderPythonFeatureT< ViewProvider2DObjectViewProvider2DObjectPython
 
typedef Gui::ViewProviderPythonFeatureT< ViewProviderCustomViewProviderCustomPython
 
typedef Gui::ViewProviderPythonFeatureT< ViewProviderPartViewProviderPython
 

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)
 
bool getShapeFromStrings (TopoDS_Shape &shapeOut, const std::string &doc, const std::string &object, const std::string &sub)
 
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)
 
PyObjectinitModule ()
 
void toggle3d ()
 
void toggleDelta ()
 

Typedef Documentation

typedef boost::signals::connection PartGui::Connection
typedef boost::tuple<TopAbs_ShapeEnum, BRepCheck_Status, ResultFunction> PartGui::FunctionMapType
typedef boost::function<void (ResultEntry *entry)> PartGui::ResultFunction

Function Documentation

void PartGui::addLinearDimensions ( const BRepExtrema_DistShapeShape &  measure)

adds 3d and delta dimensions to the viewer

Parameters
measureobject containing the measure information.

References Gui::View3DInventorViewer::addDimension3d(), Gui::View3DInventorViewer::addDimensionDelta(), createLinearDimension(), and getViewer().

Referenced by goDimensionLinearNoTask().

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

References Gui::ActionGroup::actions(), Gui::ControlSingleton::activeDialog(), Gui::Application::activeDocument(), Gui::MainWindow::activeWindow(), Gui::ActionGroup::addAction(), Gui::CommandManager::addCommand(), Gui::BitmapFactory(), checkForSolids(), Gui::ViewProvider::Color, Gui::Application::commandManager(), Base::Console(), Gui::Control(), App::Document::countObjectsOfType(), Gui::SelectionSingleton::countObjectsOfType(), eraseAllDimensions(), Base::ConsoleSingleton::Error(), Gui::Application::exportTo(), Base::Type::fromName(), App::Application::getActiveDocument(), Gui::Document::getActiveView(), App::GetApplication(), ParameterGrp::GetBool(), Base::Persistence::getClassTypeId(), Base::BaseClass::getClassTypeId(), Gui::CommandManager::getCommandByName(), App::DocumentObject::getDocument(), ParameterGrp::GetGroup(), Gui::getMainWindow(), Gui::CommandBase::getMenuText(), App::Document::getName(), App::DocumentObject::getNameInDocument(), Gui::SelectionObject::getObject(), App::DocumentObjectT::getObjectPython(), Gui::SelectionSingleton::getObjectsOfType(), Gui::FileDialog::getOpenFileName(), Gui::FileDialog::getSaveFileName(), Draft::getSelection(), Part::TopoShape::getShape(), Gui::CommandBase::getStatusTip(), Part::TopoShape::getSubShape(), Gui::CommandBase::getToolTipText(), Base::Persistence::getTypeId(), App::Application::GetUserParameter(), Part::PropertyPartShape::getValue(), getViewer(), Gui::Application::getViewProvider(), goDimensionAngularRoot(), goDimensionLinearRoot(), Gui::Application::Instance, Base::BaseClass::isDerivedFrom(), Base::Type::isDerivedFrom(), Gui::View3DInventorViewer::isEditing(), Gui::SelectionFilter::match(), Base::ConsoleSingleton::Message(), Draft::offset(), Gui::SelectionFilter::Result, Gui::CommandManager::runCommandByName(), Draft::select(), Gui::Selection(), ParameterGrp::SetBool(), Gui::ActionGroup::setDropDownMenu(), Gui::ViewProvider::setEdit(), Gui::Action::setIcon(), Gui::CommandBase::setStatusTip(), Part::Feature::Shape, Gui::ControlSingleton::showDialog(), toggle3d(), toggleDelta(), and Base::Exception::what().

Referenced by checkForSolids().

gp_Vec PartGui::convert ( const TopoDS_Vertex &  vertex)
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 PartGui::DimensionLinear::dColor, Base::Quantity::getUserString(), Base::Unit::Length, PartGui::DimensionLinear::point1, PartGui::DimensionLinear::point2, and PartGui::DimensionLinear::text.

Referenced by addLinearDimensions().

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

void PartGui::ensure3dDimensionVisible ( )

make sure angle measure command isn't working with 3d off. Confusing the user

References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), and ParameterGrp::SetBool().

Referenced by goDimensionAngularRoot().

void PartGui::ensureSomeDimensionVisible ( )

make sure measure command isn't working with everthing invisible. Confusing the user

References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), and ParameterGrp::SetBool().

Referenced by goDimensionLinearRoot().

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

examine angular pre selection

Parameters
vector1Outfirt 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(), Draft::epsilon(), PartGui::VectorAdapter::getPickPoint(), Gui::SelectionSingleton::getSelection(), Part::PropertyPartShape::getShape(), Part::TopoShape::getSubShape(), Part::PropertyPartShape::getValue(), Base::ConsoleSingleton::Message(), Gui::Selection(), Part::Feature::Shape, and PartGui::VectorAdapter::VectorAdapter().

Referenced by goDimensionAngularRoot(), and PartGui::TaskMeasureAngular::needsFullSpace().

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

examine pre selection

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

References Gui::SelectionSingleton::getSelection(), Part::PropertyPartShape::getShape(), Part::TopoShape::getSubShape(), Part::PropertyPartShape::getValue(), Gui::Selection(), and Part::Feature::Shape.

Referenced by goDimensionLinearRoot().

const char* PartGui::gce_ErrorStatusText ( gce_ErrorType  et)
bool PartGui::getShapeFromStrings ( TopoDS_Shape &  shapeOut,
const std::string &  doc,
const std::string &  object,
const std::string &  sub 
)

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(), Part::PropertyPartShape::getShape(), Part::TopoShape::getSubShape(), Part::PropertyPartShape::getValue(), and Part::Feature::Shape.

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

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(), and getViewer().

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

void PartGui::goSetupResultInvalidSameParameterFlag ( ResultEntry entry)
void PartGui::goSetupResultUnorientableShapeFace ( ResultEntry entry)