#include <ViewProviderDocumentObject.h>
Public Member Functions | |
virtual void | attach (App::DocumentObject *pcObject) |
virtual const char * | getDefaultDisplayMode () const |
Get the default display mode. | |
virtual std::vector< std::string > | getDisplayModes (void) const |
Return a list of all possible modes. | |
App::DocumentObject * | getObject (void) const |
Get the object of this ViewProvider object. | |
PyObject * | getPyObject () |
Get the python wrapper for that ViewProvider. | |
virtual void | getTaskViewContent (std::vector< Gui::TaskView::TaskContent * > &) const |
Get a list of TaskBoxes associated with this object. | |
virtual Base::Type | getTypeId (void) const |
virtual void | hide (void) |
Hide the object in the view. | |
void | setActiveMode () |
Set the active mode, i.e. the first item of the 'Display' property. | |
virtual void | show (void) |
Show the object in the view. | |
virtual void | updateData (const App::Property *) |
Gets called if some of the property hade bin changed. | |
void | updateView () |
Run a redraw. | |
ViewProviderDocumentObject () | |
constructor. | |
virtual | ~ViewProviderDocumentObject () |
destructor. | |
Restoring view provider from document load | |
virtual void | finishRestoring () |
virtual void | startRestoring () |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Public Attributes | |
App::PropertyEnumeration | DisplayMode |
App::PropertyBool | Visibility |
Protected Member Functions | |
SoNode * | findFrontRootOfType (const SoType &type) const |
Searches in all view providers that are attached to an object that is part of the same document as the object this view provider is attached to for an front root of type. | |
Gui::MDIView * | getActiveView () const |
Get the active mdi view of a view provider. | |
virtual const App::PropertyData & | getPropertyData (void) const |
virtual void | onChanged (const App::Property *prop) |
Gets called by the container whenever a property has been changed. | |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
Protected Attributes | |
App::DocumentObject * | pcObject |
Definition at line 47 of file ViewProviderDocumentObject.h.
ViewProviderDocumentObject::ViewProviderDocumentObject | ( | ) |
ViewProviderDocumentObject::~ViewProviderDocumentObject | ( | ) | [virtual] |
destructor.
Definition at line 62 of file ViewProviderDocumentObject.cpp.
References DisplayMode, and App::PropertyEnumeration::setEnums().
void ViewProviderDocumentObject::attach | ( | App::DocumentObject * | pcObject | ) | [virtual] |
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, InspectionGui::ViewProviderInspection, MeshGui::ViewProviderFace, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, PartGui::ViewProviderPartBase, PartGui::ViewProvider2DObject, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderPartReference, PointsGui::ViewProviderPoints, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, and SketcherGui::ViewProviderSketch.
Definition at line 134 of file ViewProviderDocumentObject.cpp.
References DisplayMode, getDefaultDisplayMode(), getDisplayModes(), pcObject, App::PropertyEnumeration::setEnums(), and App::PropertyEnumeration::setValue().
Referenced by MeshGui::ViewProviderMeshCurvature::attach().
void * Gui::ViewProviderDocumentObject::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProvider.
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, PointsGui::ViewProviderPoints, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.
Definition at line 50 of file ViewProviderDocumentObject.cpp.
SoNode * ViewProviderDocumentObject::findFrontRootOfType | ( | const SoType & | type | ) | const [protected] |
Searches in all view providers that are attached to an object that is part of the same document as the object this view provider is attached to for an front root of type.
Before calling this function this view provider has to be attached to an object. The method returns after the first front root node matches. If no front root node matches, 0 is returned.
Definition at line 166 of file ViewProviderDocumentObject.cpp.
References Gui::Application::getDocument(), App::DocumentObject::getDocument(), Gui::ViewProvider::getFrontRoot(), App::Document::getObjects(), Gui::Document::getViewProvider(), Gui::Application::Instance, and pcObject.
Referenced by InspectionGui::ViewProviderInspection::attach(), and MeshGui::ViewProviderMeshCurvature::attach().
void ViewProviderDocumentObject::finishRestoring | ( | ) | [virtual] |
Definition at line 77 of file ViewProviderDocumentObject.cpp.
Gui::MDIView * ViewProviderDocumentObject::getActiveView | ( | void | ) | const [protected] |
Get the active mdi view of a view provider.
Definition at line 159 of file ViewProviderDocumentObject.cpp.
References Gui::Document::getActiveView(), Gui::Application::getDocument(), App::DocumentObject::getDocument(), Gui::Application::Instance, and pcObject.
Base::Type Gui::ViewProviderDocumentObject::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProvider.
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, PointsGui::ViewProviderPoints, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.
Definition at line 50 of file ViewProviderDocumentObject.cpp.
Referenced by Gui::SoFCUnifiedSelection::doAction(), Gui::FreeCADGui_subgraphFromObject(), Gui::View3DInventorPy::getObjectInfo(), Gui::View3DInventorPy::getObjectsInfo(), Gui::ViewProviderDocumentObjectGroup::getViewProviders(), Gui::SoFCUnifiedSelection::handleEvent(), Gui::PropertyEditor::PropertyItem::pythonIdentifier(), Gui::Document::resetEdit(), Gui::View3DInventorViewer::selectAll(), Gui::Document::setEdit(), Gui::Document::setHide(), Gui::Document::setShow(), Gui::Document::slotActivatedObject(), Gui::ViewProviderPythonFeatureObserver::slotAppendObject(), Gui::Document::slotChangedObject(), Gui::Document::slotDeletedObject(), Gui::ViewProviderPythonFeatureObserver::slotDeleteObject(), Gui::Document::slotNewObject(), Gui::Document::slotRenamedObject(), SketcherGui::ViewProviderCustom::updateData(), and PartGui::ViewProviderCustom::updateData().
const char * ViewProviderDocumentObject::getDefaultDisplayMode | ( | ) | const [virtual] |
Get the default display mode.
Implements Gui::ViewProvider.
Reimplemented in MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, and PartGui::ViewProvider2DObject.
Definition at line 210 of file ViewProviderDocumentObject.cpp.
Referenced by attach().
std::vector< std::string > ViewProviderDocumentObject::getDisplayModes | ( | void | ) | const [virtual] |
Return a list of all possible modes.
Implements Gui::ViewProvider.
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderInventorObject, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, InspectionGui::ViewProviderInspection, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, PartGui::ViewProviderPartBase, PartGui::ViewProvider2DObject, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderPartReference, PointsGui::ViewProviderPoints, RobotGui::ViewProviderRobotObject, and RobotGui::ViewProviderTrajectory.
Definition at line 216 of file ViewProviderDocumentObject.cpp.
Referenced by attach(), and MeshGui::ViewProviderMeshCurvature::getDisplayModes().
App::DocumentObject* Gui::ViewProviderDocumentObject::getObject | ( | void | ) | const [inline] |
Get the object of this ViewProvider object.
Definition at line 82 of file ViewProviderDocumentObject.h.
Referenced by PartDesignGui::TaskDlgRevolutionParameters::accept(), PartDesignGui::TaskDlgPocketParameters::accept(), PartDesignGui::TaskDlgPadParameters::accept(), PartDesignGui::TaskDlgFilletParameters::accept(), PartGui::FaceColors::accept(), DrawSketchHandlerTrimming::activated(), DrawSketchHandlerFillet::activated(), CmdSketcherViewSketch::activated(), RobotGui::ViewProviderTrajectoryDressUp::claimChildren(), RobotGui::ViewProviderTrajectoryCompound::claimChildren(), PartDesignGui::ViewProviderRevolution::claimChildren(), PartDesignGui::ViewProviderPocket::claimChildren(), PartDesignGui::ViewProviderPad::claimChildren(), PartGui::ViewProviderFillet::claimChildren(), PartDesignGui::ViewProviderMainPart::claimChildren(), PartDesignGui::ViewProviderHole::claimChildren(), PartGui::ViewProviderExtrusion::claimChildren(), Gui::ViewProviderDocumentObjectGroup::claimChildren(), PartGui::ViewProviderMultiCommon::claimChildren(), PartGui::ViewProviderMultiFuse::claimChildren(), PartGui::ViewProviderBoolean::claimChildren(), Gui::TreeWidget::contextMenuEvent(), SketcherGui::DrawSketchHandler::createAutoConstraints(), Gui::ViewProviderIndex::data(), Gui::DocumentObjectItem::displayStatusInfo(), Gui::SoFCUnifiedSelection::doAction(), SketcherGui::EditDatumDialog::exec(), PartGui::FaceColors::FaceColors(), MeshGui::ViewProviderMesh::faceInfo(), MeshGui::ViewProviderMesh::fillHole(), PartGui::ViewProviderBoolean::getIcon(), Gui::ViewProviderDocumentObjectPy::getObject(), SketcherGui::DrawSketchHandler::getObject(), Gui::View3DInventorPy::getObjectInfo(), Gui::View3DInventorPy::getObjectsInfo(), Gui::ViewProviderDocumentObjectGroup::getViewProviders(), Gui::SoFCUnifiedSelection::handleEvent(), Gui::ViewProviderDocumentObjectGroup::hide(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), Gui::ViewProviderAnnotationLabel::onChanged(), Gui::TreeWidget::onCreateGroup(), SketcherGui::ViewProviderSketch::onDelete(), PartDesignGui::ViewProviderRevolution::onDelete(), PartDesignGui::ViewProviderPocket::onDelete(), PartDesignGui::ViewProviderPad::onDelete(), PartDesignGui::ViewProviderFillet::onDelete(), Gui::ViewProviderDocumentObjectGroup::onDelete(), Gui::TreeWidget::onFinishEditing(), Gui::TreeWidget::onStartEditing(), Gui::ObjectItem_Equal::operator()(), Gui::ObjectItem_Less::operator()(), PartGui::FaceColors::Private::Private(), PartDesignGui::TaskDlgRevolutionParameters::reject(), PartDesignGui::TaskDlgPocketParameters::reject(), PartDesignGui::TaskDlgPadParameters::reject(), PartDesignGui::TaskDlgFilletParameters::reject(), PartGui::FaceColors::reject(), DrawSketchHandlerTrimming::releaseButton(), DrawSketchHandlerFillet::releaseButton(), DrawSketchHandlerCircle::releaseButton(), DrawSketchHandlerArc::releaseButton(), DrawSketchHandlerLineSet::releaseButton(), DrawSketchHandlerBox::releaseButton(), DrawSketchHandlerLine::releaseButton(), Gui::View3DInventorViewer::selectAll(), Gui::DocumentObjectItem::setData(), PartGui::ViewProviderFillet::setEdit(), PartGui::ViewProviderMirror::setEdit(), RobotGui::ViewProviderEdge2TracObject::setEdit(), Gui::ViewProviderDocumentObjectGroup::show(), Gui::DocumentItem::slotActiveObject(), Gui::ViewProviderPythonFeatureObserver::slotAppendObject(), Gui::DocumentItem::slotChangeObject(), Gui::ViewProviderPythonFeatureObserver::slotDeleteObject(), Gui::DocumentItem::slotDeleteObject(), Gui::DocumentItem::slotInEdit(), Gui::DocumentItem::slotNewObject(), Gui::DocumentItem::slotRenameObject(), Gui::DocumentItem::slotResetEdit(), MeshGui::MeshFaceAddition::startEditing(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), PartDesignGui::TaskPadParameters::TaskPadParameters(), PartDesignGui::TaskPocketParameters::TaskPocketParameters(), PartDesignGui::TaskRevolutionParameters::TaskRevolutionParameters(), Gui::DocumentObjectItem::testStatus(), PartGui::ViewProviderMirror::unsetEdit(), Gui::ViewProviderPythonFeatureImp::updateData(), SketcherGui::ViewProviderCustom::updateData(), PartGui::ViewProviderCustom::updateData(), Gui::ViewProviderDocumentObjectGroup::updateData(), and PartGui::ViewProviderEllipsoid::updateData().
const App::PropertyData & Gui::ViewProviderDocumentObject::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProvider.
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, PointsGui::ViewProviderPoints, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.
Definition at line 50 of file ViewProviderDocumentObject.cpp.
const App::PropertyData * Gui::ViewProviderDocumentObject::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProvider.
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, PointsGui::ViewProviderPoints, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.
Definition at line 50 of file ViewProviderDocumentObject.cpp.
PyObject * ViewProviderDocumentObject::getPyObject | ( | void | ) | [virtual] |
Get the python wrapper for that ViewProvider.
Reimplemented from Gui::ViewProvider.
Definition at line 222 of file ViewProviderDocumentObject.cpp.
References Base::PyObjectBase::IncRef(), and Gui::ViewProvider::pyViewObject.
Referenced by Gui::ViewProviderPythonFeatureImp::attach(), Gui::ViewProviderPythonFeatureImp::getDisplayModes(), Gui::ViewProviderPythonFeatureImp::onChanged(), Gui::ViewProviderPythonFeatureImp::setEdit(), and Gui::ViewProviderPythonFeatureImp::unsetEdit().
void ViewProviderDocumentObject::getTaskViewContent | ( | std::vector< Gui::TaskView::TaskContent * > & | vec | ) | const [virtual] |
Get a list of TaskBoxes associated with this object.
Reimplemented from Gui::ViewProvider.
Definition at line 68 of file ViewProviderDocumentObject.cpp.
Base::Type Gui::ViewProviderDocumentObject::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProvider.
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, PointsGui::ViewProviderPoints, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.
Definition at line 50 of file ViewProviderDocumentObject.cpp.
void ViewProviderDocumentObject::hide | ( | void | ) | [virtual] |
Hide the object in the view.
Reimplemented from Gui::ViewProvider.
Reimplemented in Gui::ViewProviderDocumentObjectGroup, InspectionGui::ViewProviderInspection, and MeshGui::ViewProviderMeshCurvature.
Definition at line 98 of file ViewProviderDocumentObject.cpp.
References App::PropertyBool::setValue(), App::Property::StatusBits, and Visibility.
Referenced by Gui::ViewProviderAnnotationLabel::drawImage(), MeshGui::ViewProviderMeshCurvature::hide(), onChanged(), SketcherGui::ViewProviderSketch::setEdit(), and updateView().
void Gui::ViewProviderDocumentObject::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProvider.
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderFeature, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderPointMarker, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, InspectionGui::ViewProviderInspection, InspectionGui::ViewProviderInspectionGroup, MeshGui::ViewProviderFace, MeshGui::ViewProviderExport, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshOrientation, MeshGui::ViewProviderMeshNonManifolds, MeshGui::ViewProviderMeshDuplicatedFaces, MeshGui::ViewProviderMeshDegenerations, MeshGui::ViewProviderMeshDuplicatedPoints, MeshGui::ViewProviderMeshIndices, MeshGui::ViewProviderMeshSelfIntersections, MeshGui::ViewProviderMeshFolds, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, MeshGui::ViewProviderMeshTransformDemolding, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPart, PartGui::ViewProvider2DObject, PartGui::ViewProviderBoolean, PartGui::ViewProviderMultiFuse, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderBox, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderExtrusion, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartGui::ViewProviderChamfer, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PartDesignGui::ViewProviderChamfer, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderMainPart, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPatternRectangular, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, PointsGui::ViewProviderPoints, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.
Definition at line 50 of file ViewProviderDocumentObject.cpp.
Referenced by Gui::Application::initTypes().
void ViewProviderDocumentObject::onChanged | ( | const App::Property * | prop | ) | [protected, virtual] |
Gets called by the container whenever a property has been changed.
Reimplemented from Gui::ViewProvider.
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderGeometryObject, Gui::ViewProviderMeasureDistance, FemGui::ViewProviderFemMesh, InspectionGui::ViewProviderInspection, MeshGui::ViewProviderMesh, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshDefects, MeshGui::ViewProviderMeshNode, PartGui::ViewProviderPartBase, PartGui::ViewProvider2DObject, PartGui::ViewProviderPartExt, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PointsGui::ViewProviderPoints, RobotGui::ViewProviderRobotObject, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.
Definition at line 81 of file ViewProviderDocumentObject.cpp.
References DisplayMode, App::PropertyBool::getValue(), hide(), setActiveMode(), show(), App::Property::StatusBits, and Visibility.
void ViewProviderDocumentObject::setActiveMode | ( | ) |
Set the active mode, i.e. the first item of the 'Display' property.
Definition at line 199 of file ViewProviderDocumentObject.cpp.
References DisplayMode, App::PropertyEnumeration::getEnums(), App::PropertyBool::getValue(), App::PropertyEnumeration::getValueAsString(), Gui::ViewProvider::hide(), Gui::ViewProvider::setDisplayMode(), and Visibility.
Referenced by InspectionGui::ViewProviderInspection::OnChange(), MeshGui::ViewProviderMeshCurvature::OnChange(), onChanged(), MeshGui::ViewProviderMeshCurvature::updateData(), and PointsGui::ViewProviderPoints::updateData().
void ViewProviderDocumentObject::show | ( | void | ) | [virtual] |
Show the object in the view.
Reimplemented from Gui::ViewProvider.
Reimplemented in Gui::ViewProviderDocumentObjectGroup, InspectionGui::ViewProviderInspection, and MeshGui::ViewProviderMeshCurvature.
Definition at line 109 of file ViewProviderDocumentObject.cpp.
References App::PropertyBool::setValue(), App::Property::StatusBits, and Visibility.
Referenced by onChanged(), MeshGui::ViewProviderMeshCurvature::show(), SketcherGui::ViewProviderSketch::unsetEdit(), and updateView().
void ViewProviderDocumentObject::startRestoring | ( | ) | [virtual] |
Definition at line 73 of file ViewProviderDocumentObject.cpp.
virtual void Gui::ViewProviderDocumentObject::updateData | ( | const App::Property * | ) | [inline, virtual] |
Gets called if some of the property hade bin changed.
Implements Gui::ViewProvider.
Reimplemented in Gui::ViewProviderAnnotation, Gui::ViewProviderAnnotationLabel, Gui::ViewProviderDocumentObjectGroup, Gui::ViewProviderGeometryObject, Gui::ViewProviderInventorObject, Gui::ViewProviderMeasureDistance, Gui::ViewProviderVRMLObject, DrawingGui::ViewProviderDrawingPage, DrawingGui::ViewProviderDrawingView, FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, InspectionGui::ViewProviderInspection, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshCurvature, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshNode, MeshGui::ViewProviderMeshTransform, PartGui::ViewProviderPartBase, PartGui::ViewProviderEllipsoid, PartGui::ViewProvider2DObject, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PointsGui::ViewProviderPoints, RobotGui::ViewProviderRobotObject, RobotGui::ViewProviderTrajectory, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.
Definition at line 80 of file ViewProviderDocumentObject.h.
Referenced by updateView().
void ViewProviderDocumentObject::updateView | ( | ) |
Run a redraw.
Definition at line 120 of file ViewProviderDocumentObject.cpp.
References App::PropertyContainer::getPropertyMap(), hide(), Gui::ViewProvider::isShow(), pcObject, show(), and updateData().
Referenced by Gui::ViewProviderDocumentObjectPy::update().
Definition at line 59 of file ViewProviderDocumentObject.h.
Referenced by attach(), onChanged(), setActiveMode(), and ~ViewProviderDocumentObject().
Definition at line 107 of file ViewProviderDocumentObject.h.
Referenced by MeshGui::ViewProviderMesh::addSelection(), MeshGui::ViewProviderMeshTransformDemolding::attach(), attach(), Gui::ViewProviderAnnotation::attach(), MeshGui::ViewProviderMeshTransformDemolding::calcNormalVector(), MeshGui::ViewProviderMesh::clearSelection(), PartGui::ViewProviderPartBase::computeEdges(), PartGui::ViewProviderPartBase::computeFaces(), PartGui::ViewProviderPartBase::computeVertices(), MeshGui::ViewProviderMeshCurvature::curvatureInfo(), PointsGui::ViewProviderPoints::cut(), MeshGui::ViewProviderMesh::cutMesh(), MeshGui::ViewProviderMesh::deleteSelection(), MeshGui::ViewProviderMesh::deselectComponent(), MeshGui::ViewProviderMesh::deselectFacet(), PartDesignGui::ViewProvider::doubleClicked(), RobotGui::ViewProviderRobotObject::DraggerMotionCallback(), findFrontRootOfType(), getActiveView(), PointsGui::ViewProviderPoints::getDisplayModes(), MeshGui::ViewProviderMesh::getFacetsFromPolygon(), InspectionGui::ViewProviderInspection::getIcon(), DrawingGui::ViewProviderDrawingPage::getPageObject(), SketcherGui::ViewProviderSketch::getSketchObject(), MeshGui::ViewProviderMesh::getVisibleFacets(), MeshGui::ViewProviderMeshNode::handleEvent(), MeshGui::ViewProviderMesh::highlightSelection(), InspectionGui::ViewProviderInspection::inspectDistance(), PartGui::ViewProviderPartExt::onChanged(), PartGui::ViewProviderPartBase::onChanged(), PartGui::ViewProviderPartExt::reload(), PartGui::ViewProviderPartBase::reload(), MeshGui::ViewProviderMesh::removeSelection(), MeshGui::ViewProviderMesh::segmentMesh(), MeshGui::ViewProviderMesh::selectArea(), MeshGui::ViewProviderMesh::selectComponent(), MeshGui::ViewProviderMesh::selectFacet(), RobotGui::ViewProviderRobotObject::setAxisTo(), PointsGui::ViewProviderPoints::setDisplayMode(), InspectionGui::ViewProviderInspection::setDistances(), RobotGui::ViewProviderRobotObject::setDragger(), Gui::ViewProviderGeometryObject::setEdit(), MeshGui::ViewProviderMesh::setSelection(), MeshGui::ViewProviderMeshCurvature::setVertexCurvatureMode(), MeshGui::ViewProviderMeshFolds::showDefects(), MeshGui::ViewProviderMeshSelfIntersections::showDefects(), MeshGui::ViewProviderMeshIndices::showDefects(), MeshGui::ViewProviderMeshDegenerations::showDefects(), MeshGui::ViewProviderMeshDuplicatedPoints::showDefects(), MeshGui::ViewProviderMeshDuplicatedFaces::showDefects(), MeshGui::ViewProviderMeshNonManifolds::showDefects(), MeshGui::ViewProviderMeshOrientation::showDefects(), MeshGui::ViewProviderMeshNode::showOpenEdges(), MeshGui::ViewProviderMeshFaceSet::showOpenEdges(), MeshGui::ViewProviderIndexedFaceSet::showOpenEdges(), MeshGui::ViewProviderMesh::splitMesh(), Gui::ViewProviderGeometryObject::unsetEdit(), Gui::ViewProviderVRMLObject::updateData(), RobotGui::ViewProviderTrajectory::updateData(), RobotGui::ViewProviderRobotObject::updateData(), Gui::ViewProviderInventorObject::updateData(), InspectionGui::ViewProviderInspection::updateData(), ImageGui::ViewProviderImagePlane::updateData(), MeshGui::ViewProviderMeshCurvature::updateData(), PartGui::ViewProviderPartBase::updateData(), updateView(), and PartGui::ViewProviderPartExt::updateVisual().
Definition at line 60 of file ViewProviderDocumentObject.h.
Referenced by Gui::ViewProviderDocumentObjectGroup::hide(), hide(), Gui::ViewProviderDocumentObjectGroup::isShow(), PartGui::ViewProviderPartExt::onChanged(), onChanged(), Gui::ViewProviderDocumentObjectGroup::Restore(), setActiveMode(), Gui::ViewProviderDocumentObjectGroup::show(), show(), and PartGui::ViewProviderPartExt::updateData().