The base class for all view providers that display geometric data, like mesh, point cloudes and shapes. More...
#include <ViewProviderGeometryObject.h>
Public Member Functions | |
void | attach (App::DocumentObject *pcObject) |
Attaches the document object to this view provider. | |
SoFCSelection * | getHighlightNode () const |
SoPickedPoint * | getPickedPoint (const SbVec2s &pos, const View3DInventorViewer &viewer) const |
This method is provided for convenience and does basically the same as getPickedPoints() unless that only the closest point to the camera will be picked. | |
SoPickedPointList | getPickedPoints (const SbVec2s &pos, const View3DInventorViewer &viewer, bool pickAll=false) const |
Returns a list of picked points from the geometry under pcHighlight. | |
virtual Base::Type | getTypeId (void) const |
bool | isSelectable (void) const |
indicates if the ViewProvider can be selected | |
void | updateData (const App::Property *) |
Gets called if some of the property hade bin changed. | |
ViewProviderGeometryObject () | |
constructor. | |
virtual | ~ViewProviderGeometryObject () |
destructor. | |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Public Attributes | |
App::PropertyBool | BoundingBox |
App::PropertyBool | Selectable |
App::PropertyColor | ShapeColor |
App::PropertyMaterial | ShapeMaterial |
App::PropertyPercent | Transparency |
Protected Member Functions | |
SoFCSelection * | createFromSettings () const |
virtual const App::PropertyData & | getPropertyData (void) const |
void | onChanged (const App::Property *prop) |
get called by the container whenever a property has been changed | |
void | setSelectable (bool Selectable=true) |
void | showBoundingBox (bool) |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
Protected Attributes | |
SoFCBoundingBox * | pcBoundingBox |
SoSwitch * | pcBoundSwitch |
SoFCSelection * | pcHighlight |
SoMaterial * | pcShapeMaterial |
Edit methods | |
| |
bool | doubleClicked (void) |
is called by the tree if the user double click on the object | |
void | setupContextMenu (QMenu *, QObject *, const char *) |
set up the context-menu with the supported edit modes | |
bool | setEdit (int ModNum) |
is called by the document when the provider goes in edit mode | |
void | setEditViewer (View3DInventorViewer *, int ModNum) |
adjust viewer settings when editing a view provider | |
void | unsetEdit (int ModNum) |
is called when you loose the edit mode | |
void | unsetEditViewer (View3DInventorViewer *) |
restores viewer settings when leaving editing mode |
The base class for all view providers that display geometric data, like mesh, point cloudes and shapes.
Definition at line 46 of file ViewProviderGeometryObject.h.
ViewProviderGeometryObject::ViewProviderGeometryObject | ( | ) |
constructor.
Definition at line 71 of file ViewProviderGeometryObject.cpp.
References ADD_PROPERTY, BoundingBox, createFromSettings(), App::Material::DEFAULT, SketcherExample::f, intPercent, pcBoundingBox, pcHighlight, pcShapeMaterial, Gui::SoFCSelection::SEL_OFF, Selectable, Gui::SoFCSelection::selectionMode, App::PropertyIntegerConstraint::setConstraints(), App::PropertyBool::setValue(), ShapeColor, ShapeMaterial, Gui::ViewProvider::sPixmap, App::Property::touch(), and Transparency.
ViewProviderGeometryObject::~ViewProviderGeometryObject | ( | ) | [virtual] |
destructor.
Definition at line 96 of file ViewProviderGeometryObject.cpp.
References pcBoundingBox, pcHighlight, and pcShapeMaterial.
void ViewProviderGeometryObject::attach | ( | App::DocumentObject * | pcObject | ) | [virtual] |
Attaches the document object to this view provider.
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, 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 149 of file ViewProviderGeometryObject.cpp.
References Gui::SoFCSelection::documentName, App::DocumentObject::getDocument(), App::Document::getName(), App::DocumentObject::getNameInDocument(), Gui::SoFCSelection::objectName, pcHighlight, and Gui::SoFCSelection::subElementName.
void * Gui::ViewProviderGeometryObject::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, 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 67 of file ViewProviderGeometryObject.cpp.
SoFCSelection * ViewProviderGeometryObject::createFromSettings | ( | ) | const [protected] |
Definition at line 499 of file ViewProviderGeometryObject.cpp.
References Gui::SoFCSelection::colorHighlight, Gui::SoFCSelection::colorSelection, Gui::WindowParameter::getDefaultParameter(), App::PropertyBool::getValue(), Gui::SoFCSelection::highlightMode, Py::long, Gui::SoFCSelection::OFF, Gui::SoFCSelection::SEL_OFF, Selectable, and Gui::SoFCSelection::selectionMode.
Referenced by PartGui::ViewProviderPartBase::computeEdges(), PartGui::ViewProviderPartBase::computeFaces(), PartGui::ViewProviderPartBase::computeVertices(), and ViewProviderGeometryObject().
bool ViewProviderGeometryObject::doubleClicked | ( | void | ) | [virtual] |
is called by the tree if the user double click on the object
Reimplemented from Gui::ViewProvider.
Reimplemented in MeshGui::ViewProviderMesh, PartDesignGui::ViewProvider, RobotGui::ViewProviderEdge2TracObject, and SketcherGui::ViewProviderSketch.
Definition at line 198 of file ViewProviderGeometryObject.cpp.
References Gui::Application::activeDocument(), Gui::ViewProvider::Default, Gui::Application::Instance, and Gui::Document::setEdit().
Base::Type Gui::ViewProviderGeometryObject::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, 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 67 of file ViewProviderGeometryObject.cpp.
SoFCSelection* Gui::ViewProviderGeometryObject::getHighlightNode | ( | ) | const [inline] |
Definition at line 70 of file ViewProviderGeometryObject.h.
Referenced by MeshGui::ViewProviderMeshCurvature::updateData().
SoPickedPoint * ViewProviderGeometryObject::getPickedPoint | ( | const SbVec2s & | pos, | |
const View3DInventorViewer & | viewer | |||
) | const |
This method is provided for convenience and does basically the same as getPickedPoints() unless that only the closest point to the camera will be picked.
Definition at line 453 of file ViewProviderGeometryObject.cpp.
References pcHighlight.
SoPickedPointList ViewProviderGeometryObject::getPickedPoints | ( | const SbVec2s & | pos, | |
const View3DInventorViewer & | viewer, | |||
bool | pickAll = false | |||
) | const |
Returns a list of picked points from the geometry under pcHighlight.
If pickAll is false (the default) only the intersection point closest to the camera will be picked, otherwise all intersection points will be picked.
Definition at line 435 of file ViewProviderGeometryObject.cpp.
References pcHighlight.
const App::PropertyData & Gui::ViewProviderGeometryObject::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, 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 67 of file ViewProviderGeometryObject.cpp.
const App::PropertyData * Gui::ViewProviderGeometryObject::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, 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 67 of file ViewProviderGeometryObject.cpp.
Base::Type Gui::ViewProviderGeometryObject::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, 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 67 of file ViewProviderGeometryObject.cpp.
void Gui::ViewProviderGeometryObject::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, MeshGui::ViewProviderMesh, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, 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 67 of file ViewProviderGeometryObject.cpp.
Referenced by Gui::Application::initTypes().
bool Gui::ViewProviderGeometryObject::isSelectable | ( | void | ) | const [inline, virtual] |
indicates if the ViewProvider can be selected
Reimplemented from Gui::ViewProvider.
Reimplemented in SketcherGui::ViewProviderSketch.
Definition at line 71 of file ViewProviderGeometryObject.h.
void ViewProviderGeometryObject::onChanged | ( | const App::Property * | prop | ) | [protected, virtual] |
get called by the container whenever a property has been changed
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in FemGui::ViewProviderFemMesh, MeshGui::ViewProviderMesh, MeshGui::ViewProviderMeshNode, PartGui::ViewProviderPartBase, PartGui::ViewProvider2DObject, PartGui::ViewProviderPartExt, PartGui::ViewProviderCustom, PartGui::ViewProviderPartReference, PointsGui::ViewProviderPoints, RobotGui::ViewProviderRobotObject, SketcherGui::ViewProviderCustom, and SketcherGui::ViewProviderSketch.
Definition at line 103 of file ViewProviderGeometryObject.cpp.
References App::Material::ambientColor, App::Color::b, BoundingBox, App::Material::diffuseColor, App::Material::emissiveColor, App::Color::g, App::PropertyInteger::getValue(), App::PropertyMaterial::getValue(), App::PropertyColor::getValue(), App::PropertyBool::getValue(), Py::long, pcShapeMaterial, App::Color::r, Selectable, App::PropertyMaterial::setDiffuseColor(), setSelectable(), App::PropertyMaterial::setTransparency(), App::PropertyColor::setValue(), App::PropertyInteger::setValue(), ShapeColor, ShapeMaterial, App::Material::shininess, showBoundingBox(), App::Material::specularColor, App::Material::transparency, Transparency, and Py::value().
bool ViewProviderGeometryObject::setEdit | ( | int | ModNum | ) | [protected, virtual] |
is called by the document when the provider goes in edit mode
Reimplemented from Gui::ViewProvider.
Reimplemented in MeshGui::ViewProviderMesh, MeshGui::ViewProviderMeshNode, PartGui::ViewProvider2DObject, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, PointsGui::ViewProviderPoints, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, and SketcherGui::ViewProviderSketch.
Definition at line 210 of file ViewProviderGeometryObject.cpp.
References Base::Placement::getPosition(), Base::Placement::getRotation(), Gui::ViewProviderDocumentObject::pcObject, Gui::ViewProvider::pcRoot, Gui::ViewProvider::pcTransform, App::GeoFeature::Placement, RobotExample::pos, RotTransDragger::rotation, scale, RotTransDragger::translation, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
void ViewProviderGeometryObject::setEditViewer | ( | Gui::View3DInventorViewer * | , | |
int | ModNum | |||
) | [protected, virtual] |
adjust viewer settings when editing a view provider
Reimplemented from Gui::ViewProvider.
Reimplemented in SketcherGui::ViewProviderSketch.
Definition at line 305 of file ViewProviderGeometryObject.cpp.
References Gui::ViewProvider::Transform.
void ViewProviderGeometryObject::setSelectable | ( | bool | Selectable = true |
) | [protected] |
Definition at line 533 of file ViewProviderGeometryObject.cpp.
References Gui::SoFCSelection::AUTO, Gui::SoFCSelection::highlightMode, Gui::SoFCSelection::NOTSELECTED, Gui::SoFCSelection::OFF, Gui::ViewProvider::pcRoot, Gui::SoFCSelection::SEL_OFF, Gui::SoFCSelection::SEL_ON, Gui::SoFCSelection::selected, and Gui::SoFCSelection::selectionMode.
Referenced by onChanged().
void ViewProviderGeometryObject::setupContextMenu | ( | QMenu * | , | |
QObject * | , | |||
const char * | ||||
) | [virtual] |
set up the context-menu with the supported edit modes
Reimplemented from Gui::ViewProvider.
Reimplemented in PartGui::ViewProviderPartExt, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, and SketcherGui::ViewProviderSketch.
Definition at line 204 of file ViewProviderGeometryObject.cpp.
References Gui::ViewProvider::Transform.
void ViewProviderGeometryObject::showBoundingBox | ( | bool | show | ) | [protected] |
Definition at line 472 of file ViewProviderGeometryObject.cpp.
References Gui::SoFCBoundingBox::coordsOn, Gui::SoFCBoundingBox::dimensionsOn, SketcherExample::f, pcBoundingBox, pcBoundSwitch, and Gui::ViewProvider::pcRoot.
Referenced by onChanged().
void ViewProviderGeometryObject::unsetEdit | ( | int | ModNum | ) | [protected, virtual] |
is called when you loose the edit mode
Reimplemented from Gui::ViewProvider.
Reimplemented in MeshGui::ViewProviderMesh, PartGui::ViewProvider2DObject, PartGui::ViewProviderCurveNet, PartGui::ViewProviderPartExt, PartGui::ViewProviderImport, PartGui::ViewProviderMirror, PartGui::ViewProviderFillet, PartDesignGui::ViewProviderFillet, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, PointsGui::ViewProviderPoints, RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectoryDressUp, and SketcherGui::ViewProviderSketch.
Definition at line 272 of file ViewProviderGeometryObject.cpp.
References App::PropertyContainer::getClassTypeId(), App::PropertyContainer::getTypeId(), Base::Type::isDerivedFrom(), Gui::ViewProviderDocumentObject::pcObject, Gui::ViewProvider::pcRoot, Gui::ViewProvider::pcTransform, App::GeoFeature::Placement, and updateData().
void ViewProviderGeometryObject::unsetEditViewer | ( | Gui::View3DInventorViewer * | ) | [protected, virtual] |
restores viewer settings when leaving editing mode
Reimplemented from Gui::ViewProvider.
Reimplemented in SketcherGui::ViewProviderSketch.
Definition at line 313 of file ViewProviderGeometryObject.cpp.
References Gui::ViewProvider::getEditingMode(), and Gui::ViewProvider::Transform.
void ViewProviderGeometryObject::updateData | ( | const App::Property * | ) | [virtual] |
Gets called if some of the property hade bin changed.
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in FemGui::ViewProviderFemMesh, ImageGui::ViewProviderImagePlane, MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, 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 157 of file ViewProviderGeometryObject.cpp.
References SketcherExample::f, App::PropertyPlacement::getClassTypeId(), App::PropertyComplexGeoData::getClassTypeId(), Base::Placement::getPosition(), Base::Placement::getRotation(), Base::BaseClass::isDerivedFrom(), FemExample::m, Gui::SoFCBoundingBox::maxBounds, Base::BoundBox3< _Precision >::MaxX, Base::BoundBox3< _Precision >::MaxY, Base::BoundBox3< _Precision >::MaxZ, Gui::SoFCBoundingBox::minBounds, Base::BoundBox3< _Precision >::MinX, Base::BoundBox3< _Precision >::MinY, Base::BoundBox3< _Precision >::MinZ, draftTools::p, pcBoundingBox, pcBoundSwitch, Gui::ViewProvider::pcTransform, and px.
Referenced by unsetEdit().
Definition at line 61 of file ViewProviderGeometryObject.h.
Referenced by onChanged(), and ViewProviderGeometryObject().
Definition at line 112 of file ViewProviderGeometryObject.h.
Referenced by showBoundingBox(), updateData(), ViewProviderGeometryObject(), and ~ViewProviderGeometryObject().
SoSwitch* Gui::ViewProviderGeometryObject::pcBoundSwitch [protected] |
Definition at line 113 of file ViewProviderGeometryObject.h.
Referenced by showBoundingBox(), and updateData().
Definition at line 110 of file ViewProviderGeometryObject.h.
Referenced by MeshGui::ViewProviderMeshTransformDemolding::attach(), MeshGui::ViewProviderMeshTransform::attach(), MeshGui::ViewProviderMeshNode::attach(), MeshGui::ViewProviderMeshFaceSet::attach(), attach(), FemGui::ViewProviderFemMesh::attach(), PointsGui::ViewProviderPoints::attach(), MeshGui::ViewProviderMeshObject::attach(), MeshGui::ViewProviderIndexedFaceSet::attach(), MeshGui::ViewProviderMesh::attach(), getPickedPoint(), getPickedPoints(), MeshGui::ViewProviderMeshNode::showOpenEdges(), MeshGui::ViewProviderMeshNode::updateData(), MeshGui::ViewProviderMeshFaceSet::updateData(), ViewProviderGeometryObject(), and ~ViewProviderGeometryObject().
SoMaterial* Gui::ViewProviderGeometryObject::pcShapeMaterial [protected] |
Definition at line 111 of file ViewProviderGeometryObject.h.
Referenced by MeshGui::ViewProviderMeshTransform::attach(), MeshGui::ViewProviderMeshNode::attach(), FemGui::ViewProviderFemMesh::attach(), PartGui::ViewProviderPartExt::attach(), PointsGui::ViewProviderPoints::attach(), MeshGui::ViewProviderMesh::attach(), PartGui::ViewProviderPartBase::computeFaces(), MeshGui::ViewProviderMesh::deselectFacet(), MeshGui::ViewProviderMesh::highlightSelection(), onChanged(), PartGui::ViewProviderPartExt::onChanged(), MeshGui::ViewProviderMesh::selectFacet(), MeshGui::ViewProviderMesh::unhighlightSelection(), PartGui::ViewProviderPartExt::updateData(), ViewProviderGeometryObject(), and ~ViewProviderGeometryObject().
Definition at line 62 of file ViewProviderGeometryObject.h.
Referenced by createFromSettings(), onChanged(), and ViewProviderGeometryObject().
Definition at line 58 of file ViewProviderGeometryObject.h.
Referenced by MeshGui::ViewProviderFace::attach(), MeshGui::ViewProviderMesh::deselectFacet(), MeshGui::ViewProviderMesh::highlightSelection(), MeshGui::ViewProviderMeshNode::onChanged(), onChanged(), PartGui::ViewProviderPartExt::onChanged(), MeshGui::ViewProviderMesh::onChanged(), PartGui::FaceColors::Private::Private(), MeshGui::ViewProviderMesh::unhighlightSelection(), ViewProviderGeometryObject(), and PartGui::ViewProviderPartExt::ViewProviderPartExt().
Definition at line 60 of file ViewProviderGeometryObject.h.
Referenced by MeshGui::ViewProviderMeshNode::onChanged(), onChanged(), PartGui::ViewProviderPartExt::onChanged(), MeshGui::ViewProviderMesh::onChanged(), and ViewProviderGeometryObject().
Definition at line 59 of file ViewProviderGeometryObject.h.
Referenced by onChanged(), and ViewProviderGeometryObject().