#include <ViewProviderExt.h>
Public Member Functions | |
virtual void | attach (App::DocumentObject *) override |
Attaches the document object to this view provider. More... | |
virtual std::vector< std::string > | getDisplayModes (void) const override |
returns a list of all possible modes More... | |
void | reload () |
Update the view representation. More... | |
virtual void | setDisplayMode (const char *ModeName) override |
set the display mode More... | |
virtual void | updateData (const App::Property *) override |
ViewProviderPartExt () | |
constructor More... | |
virtual | ~ViewProviderPartExt () |
destructor More... | |
Selection handling | |
This group of methods do the selection handling. Here you can define how the selection for your ViewProfider works. | |
virtual bool | useNewSelectionModel (void) const override |
indicates if the ViewProvider use the new Selection model More... | |
virtual std::string | getElement (const SoDetail *) const override |
return a hit element to the selection path or 0 More... | |
virtual SoDetail * | getDetail (const char *) const override |
return the coin node detail of the subelement More... | |
virtual std::vector< Base::Vector3d > | getModelPoints (const SoPickedPoint *) const override |
virtual std::vector< Base::Vector3d > | getSelectionShape (const char *Element) const override |
return the highlight lines for a given element or the whole shape More... | |
Highlight handling | |
This group of methods do the highlighting of elements. | |
void | setHighlightedFaces (const std::vector< App::Color > &colors) |
void | setHighlightedFaces (const std::vector< App::Material > &colors) |
void | unsetHighlightedFaces () |
void | setHighlightedEdges (const std::vector< App::Color > &colors) |
void | unsetHighlightedEdges () |
void | setHighlightedPoints (const std::vector< App::Color > &colors) |
void | unsetHighlightedPoints () |
Color management methods | |
virtual std::map< std::string, App::Color > | getElementColors (const char *element=0) const override |
virtual bool | isUpdateForced () const override |
virtual void | forceUpdate (bool enable=true) override |
virtual bool | allowOverride (const App::DocumentObject &) const override |
Allow this class to be used as an override for the original view provider of the given object. More... | |
Public Member Functions inherited from Gui::ViewProviderGeometryObject | |
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. More... | |
SoPickedPointList | getPickedPoints (const SbVec2s &pos, const View3DInventorViewer &viewer, bool pickAll=false) const |
Returns a list of picked points from the geometry under getRoot(). More... | |
bool | isSelectable (void) const |
ViewProviderGeometryObject () | |
constructor. More... | |
virtual | ~ViewProviderGeometryObject () |
destructor. More... | |
virtual void | showBoundingBox (bool) |
Public Member Functions inherited from Gui::ViewProviderDragger | |
ViewProviderDragger () | |
constructor. More... | |
virtual | ~ViewProviderDragger () |
destructor. More... | |
bool | doubleClicked (void) override |
is called by the tree if the user double click on the object More... | |
virtual ViewProvider * | startEditing (int ModNum=0) override |
Public Member Functions inherited from Gui::ViewProviderDocumentObject | |
virtual bool | canDelete (App::DocumentObject *obj) const override |
Asks the view provider if the given object can be deleted. More... | |
virtual bool | canDropObjectEx (App::DocumentObject *, App::DocumentObject *, const char *, const std::vector< std::string > &) const override |
Query object dropping with full quanlified name. More... | |
virtual bool | getDetailPath (const char *subname, SoFullPath *pPath, bool append, SoDetail *&det) const override |
return the coin node detail and path to the node of the subname More... | |
Gui::Document * | getDocument () const |
Get the GUI document to this ViewProvider object. More... | |
virtual bool | getElementPicked (const SoPickedPoint *, std::string &subname) const override |
return a hit element given the picked point which contains the full node path More... | |
App::DocumentObject * | getObject (void) const |
Get the object of this ViewProvider object. More... | |
PyObject * | getPyObject () override |
Get the python wrapper for that ViewProvider. More... | |
virtual void | getTaskViewContent (std::vector< Gui::TaskView::TaskContent * > &) const override |
Get a list of TaskBoxes associated with this object. More... | |
virtual void | hide (void) override |
Hide the object in the view. More... | |
virtual void | reattach (App::DocumentObject *) |
virtual int | replaceObject (App::DocumentObject *, App::DocumentObject *) override |
Replace an object to the view provider by drag and drop. More... | |
void | setActiveMode () |
Set the active mode, i.e. the first item of the 'Display' property. More... | |
virtual void | show (void) override |
Show the object in the view. More... | |
virtual bool | showInTree () const override |
Tell the tree view if this object should appear there. More... | |
virtual void | update (const App::Property *) override |
update the content of the ViewProvider this method have to implement the recalculation of the ViewProvider. More... | |
void | updateView () |
Run a redraw. More... | |
ViewProviderDocumentObject () | |
constructor. More... | |
virtual | ~ViewProviderDocumentObject () |
destructor. More... | |
virtual void | startRestoring () |
virtual void | finishRestoring () |
virtual bool | removeDynamicProperty (const char *prop) override |
virtual App::Property * | addDynamicProperty (const char *type, const char *name=0, const char *group=0, const char *doc=0, short attr=0, bool ro=false, bool hidden=false) override |
virtual ViewProviderDocumentObject * | getLinkedViewProvider (std::string *subname=0, bool recursive=false) const |
Return the linked view object. More... | |
virtual std::string | getFullName () const override |
Public Member Functions inherited from Gui::ViewProvider | |
virtual bool | canAddToSceneGraph () const |
Indicate whether to be added to scene graph or not. More... | |
virtual std::vector< App::DocumentObject * > | claimChildren3D (void) const |
deliver the children belonging to this object this method is used to deliver the objects to the 3DView which should be grouped under its scene graph. More... | |
SoSeparator * | getAnnotation (void) |
virtual SoSeparator * | getBackRoot (void) const |
virtual SoGroup * | getChildRoot (void) const |
virtual SoSeparator * | getFrontRoot (void) const |
SoSwitch * | getModeSwitch (void) const |
virtual SoSeparator * | getRoot (void) const |
SoTransform * | getTransformNode () const |
ViewProvider () | |
constructor. More... | |
virtual | ~ViewProvider () |
destructor. More... | |
int | partialRender (const std::vector< std::string > &subelements, bool clear) |
partial rendering setup More... | |
Base::BoundBox3d | getBoundingBox (const char *subname=0, bool transform=true, MDIView *view=0) const |
Return the bound box of this view object. More... | |
virtual bool | onDelete (const std::vector< std::string > &subNames) |
Get called if the object is about to get deleted. More... | |
virtual void | beforeDelete () |
Called before deletion. More... | |
virtual bool | canDragObjects () const |
Check whether children can be removed from the view provider by drag and drop. More... | |
virtual bool | canDragObject (App::DocumentObject *) const |
Check whether the object can be removed from the view provider by drag and drop. More... | |
virtual void | dragObject (App::DocumentObject *) |
Remove a child from the view provider by drag and drop. More... | |
virtual bool | canDropObjects () const |
Check whether objects can be added to the view provider by drag and drop or drop only. More... | |
virtual bool | canDropObject (App::DocumentObject *) const |
Check whether the object can be dropped to the view provider by drag and drop or drop only. More... | |
virtual bool | canDragAndDropObject (App::DocumentObject *) const |
Return false to force drop only operation for a given object. More... | |
virtual void | dropObject (App::DocumentObject *) |
Add an object to the view provider by drag and drop. More... | |
virtual std::string | getDropPrefix () const |
return a subname referencing the sub-object holding the dropped objects More... | |
virtual std::string | dropObjectEx (App::DocumentObject *obj, App::DocumentObject *owner, const char *subname, const std::vector< std::string > &elements) |
Add an object with full quanlified name to the view provider by drag and drop. More... | |
virtual bool | canRemoveChildrenFromRoot () const |
Tell the tree view to remove children items from the tree root. More... | |
std::string | getActiveDisplayMode (void) const |
virtual const char * | getDefaultDisplayMode () const |
get the default display mode More... | |
virtual bool | isShow (void) const |
checks whether the view provider is visible or not More... | |
void | setVisible (bool) |
bool | isVisible () const |
void | setLinkVisible (bool) |
bool | isLinkVisible () const |
virtual void | setOverrideMode (const std::string &mode) |
Overrides the display mode with mode. More... | |
const std::string | getOverrideMode () |
virtual bool | keyPressed (bool pressed, int key) |
is called when the provider is in edit and a key event occurs. Only ESC ends edit. More... | |
virtual bool | mouseMove (const SbVec2s &cursorPos, View3DInventorViewer *viewer) |
is called when the provider is in edit and the mouse is moved More... | |
virtual bool | mouseButtonPressed (int button, bool pressed, const SbVec2s &cursorPos, const View3DInventorViewer *viewer) |
is called when the Provider is in edit and the mouse is clicked More... | |
virtual QIcon | getIcon (void) const |
deliver the icon shown in the tree view More... | |
virtual std::vector< App::DocumentObject * > | claimChildren (void) const |
deliver the children belonging to this object this method is used to deliver the objects to the tree framework which should be grouped under its label. More... | |
bool | isUpdatesEnabled () const |
void | setUpdatesEnabled (bool enable) |
unsigned long | getStatus () const |
return the status bits More... | |
bool | testStatus (ViewStatus pos) const |
void | setStatus (ViewStatus pos, bool on) |
std::string | toString () const |
virtual void | setElementColors (const std::map< std::string, App::Color > &colors) |
bool | isEditing () const |
void | finishEditing () |
virtual void | setTransformation (const Base::Matrix4D &rcMatrix) |
set the viewing transformation of the provider More... | |
virtual void | setTransformation (const SbMatrix &rcMatrix) |
virtual MDIView * | getMDIView () const |
virtual void | Restore (Base::XMLReader &reader) |
This method is used to restore properties from an XML document. More... | |
bool | isRestoring () |
void | addDisplayMaskMode (SoNode *node, const char *type) |
Adds a new display mask mode. More... | |
void | setDisplayMaskMode (const char *type) |
Activates the display mask mode type. More... | |
SoNode * | getDisplayMaskMode (const char *type) const |
Get the node to the display mask mode type. More... | |
std::vector< std::string > | getDisplayMaskModes () const |
Returns a list of added display mask modes. More... | |
void | setDefaultMode (int) |
int | getDefaultMode () const |
virtual void | setRenderCacheMode (int) |
Public Member Functions inherited from App::TransactionalObject | |
TransactionalObject (void) | |
Constructor. More... | |
virtual | ~TransactionalObject () |
Public Member Functions inherited from App::ExtensionContainer | |
ExtensionIterator | extensionBegin () |
ExtensionContainer () | |
ExtensionIterator | extensionEnd () |
App::Extension * | getExtension (Base::Type, bool derived=true, bool no_except=false) const |
App::Extension * | getExtension (const std::string &name) const |
template<typename ExtensionT > | |
ExtensionT * | getExtensionByType (bool no_except=false, bool derived=true) const |
std::vector< Extension * > | getExtensionsDerivedFrom (Base::Type type) const |
template<typename ExtensionT > | |
std::vector< ExtensionT * > | getExtensionsDerivedFromType () const |
bool | hasExtension (Base::Type, bool derived=true) const |
bool | hasExtension (const std::string &name) const |
bool | hasExtensions () const |
void | registerExtension (Base::Type extension, App::Extension *ext) |
virtual | ~ExtensionContainer () |
virtual Property * | getPropertyByName (const char *name) const override |
find a property by its name More... | |
virtual const char * | getPropertyName (const Property *prop) const override |
get the name of a property More... | |
virtual void | getPropertyMap (std::map< std::string, Property * > &Map) const override |
get all properties of the class (including properties of the parent) More... | |
virtual void | getPropertyList (std::vector< Property * > &List) const override |
get all properties of the class (including properties of the parent) More... | |
virtual short | getPropertyType (const Property *prop) const override |
get the Type of a Property More... | |
virtual short | getPropertyType (const char *name) const override |
get the Type of a named Property More... | |
virtual const char * | getPropertyGroup (const Property *prop) const override |
get the Group of a Property More... | |
virtual const char * | getPropertyGroup (const char *name) const override |
get the Group of a named Property More... | |
virtual const char * | getPropertyDocumentation (const Property *prop) const override |
get the Group of a Property More... | |
virtual const char * | getPropertyDocumentation (const char *name) const override |
get the Group of a named Property More... | |
virtual void | Save (Base::Writer &writer) const override |
This method is used to save properties to an XML document. More... | |
void | saveExtensions (Base::Writer &writer) const |
void | restoreExtensions (Base::XMLReader &reader) |
Public Member Functions inherited from App::PropertyContainer | |
virtual App::Property * | getDynamicPropertyByName (const char *name) const |
DynamicProperty::PropData | getDynamicPropertyData (const Property *prop) const |
virtual std::vector< std::string > | getDynamicPropertyNames () const |
virtual unsigned int | getMemSize (void) const |
This method is used to get the size of objects It is not meant to have the exact size, it is more or less an estimation which runs fast! Is it two bytes or a GB? More... | |
const char * | getPropertyPrefix () const |
bool | isHidden (const char *name) const |
check if the named property is hidden More... | |
bool | isHidden (const Property *prop) const |
check if the property is hidden More... | |
bool | isReadOnly (const char *name) const |
check if the named property is read-only More... | |
bool | isReadOnly (const Property *prop) const |
check if the property is read-only More... | |
PropertyContainer () | |
A constructor. More... | |
void | setPropertyPrefix (const char *prefix) |
void | setPropertyStatus (unsigned char bit, bool value) |
set the Status bit of all properties at once More... | |
virtual | ~PropertyContainer () |
A destructor. More... | |
Public Member Functions inherited from Base::Persistence | |
void | dumpToStream (std::ostream &stream, int compression) |
virtual Base::Type | getTypeId (void) const |
virtual void | RestoreDocFile (Reader &) |
This method is used to restore large amounts of data from a file In this method you simply stream in your SaveDocFile() saved data. More... | |
void | restoreFromStream (std::istream &stream) |
virtual void | SaveDocFile (Writer &) const |
This method is used to save large amounts of data to a binary file. More... | |
Public Member Functions inherited from Base::BaseClass | |
BaseClass () | |
Construction. More... | |
bool | isDerivedFrom (const Type type) const |
virtual void | setPyObject (PyObject *) |
virtual | ~BaseClass () |
Destruction. More... | |
Edit methods | |
SoMaterialBinding * | pcFaceBind |
SoMaterialBinding * | pcLineBind |
SoMaterialBinding * | pcPointBind |
SoMaterial * | pcLineMaterial |
SoMaterial * | pcPointMaterial |
SoDrawStyle * | pcLineStyle |
SoDrawStyle * | pcPointStyle |
SoShapeHints * | pShapeHints |
SoCoordinate3 * | coords |
SoBrepFaceSet * | faceset |
SoNormal * | norm |
SoNormalBinding * | normb |
SoBrepEdgeSet * | lineset |
SoBrepPointSet * | nodeset |
bool | VisualTouched |
bool | NormalsFromUV |
void | setupContextMenu (QMenu *, QObject *, const char *) override |
set up the context-menu with the supported edit modes More... | |
bool | setEdit (int ModNum) override |
is called by the document when the provider goes in edit mode More... | |
void | unsetEdit (int ModNum) override |
is called when you lose the edit mode More... | |
virtual void | onChanged (const App::Property *prop) override |
get called by the container whenever a property has been changed More... | |
bool | loadParameter () |
void | updateVisual () |
void | getNormals (const TopoDS_Face &theFace, const Handle(Poly_Triangulation)&aPolyTri, TColgp_Array1OfDir &theNormals) |
Additional Inherited Members | |
Public Types inherited from Gui::ViewProvider | |
enum | EditMode { Default = 0, Transform, Cutting, Color } |
Public Types inherited from App::ExtensionContainer | |
typedef std::map< Base::Type, App::Extension * >::iterator | ExtensionIterator |
Static Public Member Functions inherited from Gui::ViewProviderDragger | |
static void | updateTransform (const Base::Placement &from, SoTransform *to) |
Static Public Member Functions inherited from Gui::ViewProvider | |
static const std::string & | hiddenMarker () |
static const char * | hasHiddenMarker (const char *subname) |
static SbMatrix | convert (const Base::Matrix4D &rcMatrix) |
static Base::Matrix4D | convert (const SbMatrix &sbMat) |
static void | eventCallback (void *ud, SoEventCallback *node) |
Static Public Member Functions inherited from Base::Persistence | |
static void * | create (void) |
static std::string | encodeAttribute (const std::string &) |
Encodes an attribute upon saving. More... | |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Static Public Member Functions inherited from Base::BaseClass | |
static void * | create (void) |
static Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions inherited from Gui::ViewProviderGeometryObject | |
void | setSelectable (bool Selectable=true) |
virtual unsigned long | getBoundColor () const |
Protected Member Functions inherited from Gui::ViewProviderDragger | |
void | setEditViewer (View3DInventorViewer *, int ModNum) override |
adjust viewer settings when editing a view provider More... | |
void | unsetEditViewer (View3DInventorViewer *) override |
restores viewer settings when leaving editing mode More... | |
Protected Member Functions inherited from Gui::ViewProviderDocumentObject | |
Gui::MDIView * | getActiveView () const |
Gui::MDIView * | getEditingView () const |
Gui::MDIView * | getInventorView () const |
Gui::MDIView * | getViewOfNode (SoNode *node) const |
virtual void | onBeforeChange (const App::Property *prop) override |
get called before the value is changed More... | |
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. More... | |
virtual bool | isAttachedToDocument () const override |
virtual const char * | detachFromDocument () override |
virtual void | onPropertyStatusChanged (const App::Property &prop, unsigned long oldStatus) override |
get called when a property status has changed More... | |
Protected Member Functions inherited from Gui::ViewProvider | |
virtual QIcon | mergeOverlayIcons (const QIcon &orig) const |
int | getEditingMode () const |
return the edit mode or -1 if nothing is being edited More... | |
bool | checkRecursion (SoNode *) |
Helper method to check that the node is valid, i.e. More... | |
SoPickedPoint * | getPointOnRay (const SbVec2s &pos, const View3DInventorViewer *viewer) const |
Helper method to get picked entities while editing. More... | |
SoPickedPoint * | getPointOnRay (const SbVec3f &pos, const SbVec3f &dir, const View3DInventorViewer *viewer) const |
Helper method to get picked entities while editing. More... | |
Protected Member Functions inherited from App::TransactionalObject | |
void | onBeforeChangeProperty (Document *doc, const Property *prop) |
Protected Member Functions inherited from App::PropertyContainer | |
virtual const PropertyData & | getPropertyData (void) const |
virtual void | handleChangedPropertyName (Base::XMLReader &reader, const char *TypeName, const char *PropName) |
PropertyContainer::handleChangedPropertyName is called during restore to possibly fix reading of older versions of this property container. More... | |
virtual void | handleChangedPropertyType (Base::XMLReader &reader, const char *TypeName, Property *prop) |
PropertyContainer::handleChangedPropertyType is called during restore to possibly fix reading of older versions of the property container. More... | |
Static Protected Member Functions inherited from App::PropertyContainer | |
static const PropertyData * | getPropertyDataPtr (void) |
Static Protected Member Functions inherited from Base::BaseClass | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
Protected Attributes inherited from Gui::ViewProviderGeometryObject | |
SoMaterial * | pcShapeMaterial |
SoFCBoundingBox * | pcBoundingBox |
SoSwitch * | pcBoundSwitch |
SoBaseColor * | pcBoundColor |
Protected Attributes inherited from Gui::ViewProviderDragger | |
SoFCCSysDragger * | csysDragger = nullptr |
Protected Attributes inherited from Gui::ViewProviderDocumentObject | |
App::DocumentObject * | pcObject |
Gui::Document * | pcDocument |
Protected Attributes inherited from Gui::ViewProvider | |
SoSeparator * | pcRoot |
The root Separator of the ViewProvider. More... | |
SoTransform * | pcTransform |
this is transformation for the provider More... | |
const char * | sPixmap |
SoSwitch * | pcModeSwitch |
this is the mode switch, all the different viewing modes are collected here More... | |
SoSeparator * | pcAnnotation |
The root separator for annotations. More... | |
ViewProviderPy * | pyViewObject |
std::string | overrideMode |
std::bitset< 32 > | StatusBits |
Protected Attributes inherited from App::PropertyContainer | |
DynamicProperty | dynamicProps |
Constructor & Destructor Documentation
◆ ViewProviderPartExt()
ViewProviderPartExt::ViewProviderPartExt | ( | ) |
constructor
References App::Material::ambientColor, AngularDeflection, Deviation, DiffuseColor, App::Material::diffuseColor, DrawStyle, App::Material::emissiveColor, faceset, App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetFloat(), App::Application::GetParameterGroupByPath(), App::PropertyFloat::getValue(), App::PropertyColor::getValue(), Gui::ViewParams::instance(), Lighting, LineColor, LineColorArray, LineMaterial, lineset, LineWidth, loadParameter(), App::PropertyFloatConstraint::Constraints::LowerBound, nodeset, norm, NormalsFromUV, normb, pcFaceBind, pcLineBind, pcLineMaterial, pcLineStyle, pcPointBind, pcPointMaterial, pcPointStyle, PointColor, PointColorArray, PointMaterial, PointSize, pShapeHints, App::Color::set(), App::PropertyQuantityConstraint::setConstraints(), App::PropertyFloatConstraint::setConstraints(), App::PropertyEnumeration::setEnums(), Gui::ViewProviderGeometryObject::ShapeColor, App::Material::shininess, App::Material::specularColor, Gui::ViewProvider::sPixmap, App::Property::touch(), App::Material::transparency, and VisualTouched.
◆ ~ViewProviderPartExt()
|
virtual |
destructor
References faceset, lineset, nodeset, norm, normb, pcFaceBind, pcLineBind, pcLineMaterial, pcLineStyle, pcPointBind, pcPointMaterial, pcPointStyle, and pShapeHints.
Member Function Documentation
◆ allowOverride()
|
overridevirtual |
Allow this class to be used as an override for the original view provider of the given object.
Reimplemented from Gui::ViewProviderDocumentObject.
References Base::Persistence::getClassTypeId(), and Base::Persistence::getTypeId().
◆ attach()
|
overridevirtual |
Attaches the document object to this view provider.
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in PartDesignGui::ViewProviderBoolean, PartDesignGui::ViewProviderBody, SketcherGui::ViewProviderSketch, PartDesignGui::ViewProviderPrimitive, PartDesignGui::ViewProviderAddSub, PartGui::ViewProvider2DObject, and PartGui::ViewProviderCurveNet.
References Gui::ViewProvider::addDisplayMaskMode(), faceset, lineset, nodeset, norm, normb, pcFaceBind, pcLineBind, pcLineMaterial, pcLineStyle, Gui::ViewProvider::pcModeSwitch, pcPointBind, pcPointMaterial, pcPointStyle, Gui::ViewProvider::pcRoot, Gui::ViewProviderGeometryObject::pcShapeMaterial, and pShapeHints.
Referenced by PartGui::ViewProvider2DObject::attach(), PartDesignGui::ViewProviderAddSub::attach(), PartDesignGui::ViewProviderBoolean::attach(), and PartGui::ViewProviderCustom::updateData().
◆ forceUpdate()
|
overridevirtual |
Reimplemented from Gui::ViewProviderDocumentObject.
References Gui::ViewProvider::isShow(), App::Property::touch(), and Gui::ViewProviderDocumentObject::Visibility.
◆ getDetail()
|
overridevirtual |
return the coin node detail of the subelement
Reimplemented from Gui::ViewProvider.
References nodeset.
◆ getDisplayModes()
|
overridevirtual |
returns a list of all possible modes
Reimplemented from Gui::ViewProvider.
Reimplemented in PartDesignGui::ViewProviderBody, PartGui::ViewProviderRuledSurface, PartGui::ViewProviderPrism, PartGui::ViewProviderRegularPolygon, PartGui::ViewProviderHelixParametric, PartGui::ViewProviderSphereParametric, PartGui::ViewProviderWedge, PartGui::ViewProviderEllipsoid, PartGui::ViewProviderSpiralParametric, PartGui::ViewProvider2DObject, PartGui::ViewProviderCurveNet, PartGui::ViewProviderBox, PartGui::ViewProviderCircleParametric, PartGui::ViewProviderConeParametric, PartGui::ViewProviderCylinderParametric, PartGui::ViewProviderEllipseParametric, PartGui::ViewProviderLineParametric, PartGui::ViewProviderPlaneParametric, PartGui::ViewProviderPointParametric, and PartGui::ViewProviderTorusParametric.
◆ getElement()
|
overridevirtual |
return a hit element to the selection path or 0
Reimplemented from Gui::ViewProvider.
References nodeset.
Referenced by getModelPoints().
◆ getElementColors()
|
overridevirtual |
Reimplemented from Gui::ViewProvider.
References App::Color::a, DiffuseColor, App::PropertyListsT< T, ListT, ParentT >::getSize(), App::PropertyInteger::getValue(), App::PropertyColor::getValue(), LineColor, LineColorArray, PointColor, PointColorArray, Gui::ViewProviderGeometryObject::ShapeColor, and Gui::ViewProviderGeometryObject::Transparency.
◆ getModelPoints()
|
overridevirtual |
Reimplemented from Gui::ViewProvider.
References getElement(), Gui::ViewProviderDocumentObject::getObject(), and Part::Feature::getTopoShape().
◆ getNormals()
|
protected |
Referenced by PartDesignGui::ViewProviderAddSub::updateAddSubShapeIndicator(), and updateVisual().
◆ getSelectionShape()
|
overridevirtual |
return the highlight lines for a given element or the whole shape
Reimplemented from Gui::ViewProvider.
◆ isUpdateForced()
|
overridevirtual |
Reimplemented from Gui::ViewProviderDocumentObject.
Referenced by onChanged(), and updateData().
◆ loadParameter()
|
protected |
References AngularDeflection, Deviation, App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetFloat(), App::Application::GetParameterGroupByPath(), App::PropertyQuantity::getValue(), App::PropertyFloat::getValue(), NormalsFromUV, App::PropertyQuantity::setValue(), and App::PropertyFloat::setValue().
Referenced by reload(), and ViewProviderPartExt().
◆ onChanged()
|
overrideprotectedvirtual |
get called by the container whenever a property has been changed
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in PartDesignGui::ViewProviderBoolean, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderBody, SketcherGui::ViewProviderSketch, PartGui::ViewProviderSpline, PartGui::ViewProviderCustom, SketcherGui::ViewProviderCustom, and PartGui::ViewProvider2DObject.
References App::Material::ambientColor, AngularDeflection, App::Color::b, Deviation, DiffuseColor, App::Material::diffuseColor, DrawStyle, App::Material::emissiveColor, App::Color::g, App::Property::getContainer(), App::PropertyInteger::getValue(), App::PropertyEnumeration::getValue(), App::PropertyFloat::getValue(), App::PropertyBool::getValue(), App::PropertyColor::getValue(), App::PropertyMaterial::getValue(), App::PropertyListsT< T, ListT, ParentT >::getValues(), isUpdateForced(), Lighting, LineColor, LineColorArray, LineMaterial, LineWidth, pcFaceBind, pcLineMaterial, pcLineStyle, pcPointMaterial, pcPointStyle, Gui::ViewProviderGeometryObject::pcShapeMaterial, PointColor, PointColorArray, PointMaterial, PointSize, pShapeHints, App::Color::r, App::Property::setContainer(), App::PropertyMaterial::setDiffuseColor(), setHighlightedEdges(), setHighlightedFaces(), setHighlightedPoints(), App::PropertyMaterial::setTransparency(), App::PropertyListsT< T, ListT, ParentT >::setValue(), App::PropertyColor::setValue(), Gui::ViewProviderGeometryObject::ShapeColor, Gui::ViewProviderGeometryObject::ShapeMaterial, App::Material::shininess, App::Material::specularColor, Gui::ViewProviderGeometryObject::Transparency, App::Material::transparency, updateVisual(), Gui::ViewProviderDocumentObject::Visibility, and VisualTouched.
Referenced by ArchSite.Compass::buildCoordinates(), ArchAxis.CommandArchGrid::IsActive(), PartDesignGui::ViewProviderBody::onChanged(), PartGui::ViewProvider2DObject::onChanged(), PartDesignGui::ViewProvider::onChanged(), SketcherGui::ViewProviderCustom::onChanged(), PartGui::ViewProviderCustom::onChanged(), and PartGui::ViewProviderSpline::onChanged().
◆ reload()
void ViewProviderPartExt::reload | ( | ) |
Update the view representation.
References loadParameter(), and updateVisual().
Referenced by PartGui::DlgSettings3DViewPart::saveSettings().
◆ setDisplayMode()
|
overridevirtual |
set the display mode
If you add new viewing modes in getDisplayModes() then you need to reimplement also seDisplaytMode() to handle these new modes by setting the appropriate display mode.
Reimplemented from Gui::ViewProvider.
Reimplemented in PartDesignGui::ViewProviderBody, and PartGui::ViewProviderCurveNet.
References Gui::ViewProvider::setDisplayMaskMode().
Referenced by PartDesignGui::ViewProviderBoolean::attach(), PartDesignGui::ViewProviderBoolean::onChanged(), PartDesignGui::ViewProviderBody::setDisplayMode(), PartGui::ViewProviderCustom::updateData(), and SketcherGui::ViewProviderCustom::updateData().
◆ setEdit()
|
overrideprotectedvirtual |
is called by the document when the provider goes in edit mode
Reimplemented from Gui::ViewProviderDragger.
Reimplemented in PartDesignGui::ViewProviderBoolean, PartDesignGui::ViewProvider, PartDesignGui::ViewProviderSubShapeBinder, PartDesignGui::ViewProviderShapeBinder, PartDesignGui::ViewProviderTransformed, SketcherGui::ViewProviderSketch, PartGui::ViewProviderThickness, PartGui::ViewProviderOffset, PartGui::ViewProviderChamfer, PartGui::ViewProviderFillet, PartDesignGui::ViewProviderPipe, PartDesignGui::ViewProviderLoft, PartDesignGui::ViewProviderPrimitive, PartDesignGui::ViewProviderHole, PartGui::ViewProviderMirror, PartDesignGui::ViewProviderBase, PartDesignGui::ViewProviderDressUp, SurfaceGui::ViewProviderFilling, PartGui::ViewProviderImport, and SurfaceGui::ViewProviderGeomFillSurface.
References Gui::ControlSingleton::activeDialog(), Gui::SelectionSingleton::clearSelection(), Gui::Control(), Gui::Selection(), Gui::ViewProviderDragger::setEdit(), and Gui::ControlSingleton::showDialog().
Referenced by PathScripts.PathSetupSheetGui.ViewProvider::doubleClicked(), PathScripts.PathToolBitGui.ViewProvider::doubleClicked(), Spreadsheet_legacy.ViewProviderSpreadsheet::doubleClicked(), ArchSchedule.CommandArchSchedule::IsActive(), ArchAxis.CommandArchGrid::IsActive(), PartGui::ViewProviderImport::setEdit(), PartDesignGui::ViewProviderBase::setEdit(), PartGui::ViewProviderMirror::setEdit(), PartDesignGui::ViewProviderHole::setEdit(), PartGui::ViewProviderFillet::setEdit(), PartDesignGui::ViewProvider::setEdit(), PartDesignGui::ViewProviderBoolean::setEdit(), PartGui::ViewProviderChamfer::setEdit(), PartGui::ViewProviderOffset::setEdit(), PartGui::ViewProviderThickness::setEdit(), PathScripts.PathIconViewProvider.ViewProvider::setupContextMenu(), PathScripts.PathToolControllerGui.ViewProvider::setupContextMenu(), PathScripts.PathOpGui.ViewProvider::setupContextMenu(), and PathScripts.PathJobGui.ViewProvider::setupContextMenu().
◆ setHighlightedEdges()
void ViewProviderPartExt::setHighlightedEdges | ( | const std::vector< App::Color > & | colors | ) |
References lineset, pcLineBind, and pcLineMaterial.
Referenced by SurfaceGui::ViewProviderGeomFillSurface::highlightReferences(), SurfaceGui::ViewProviderFilling::highlightReferences(), and onChanged().
◆ setHighlightedFaces() [1/2]
void ViewProviderPartExt::setHighlightedFaces | ( | const std::vector< App::Color > & | colors | ) |
References faceset, PartGui::SoBrepFaceSet::partIndex, pcFaceBind, and Gui::ViewProviderGeometryObject::pcShapeMaterial.
Referenced by SurfaceGui::ViewProviderFilling::highlightReferences(), and onChanged().
◆ setHighlightedFaces() [2/2]
void ViewProviderPartExt::setHighlightedFaces | ( | const std::vector< App::Material > & | colors | ) |
◆ setHighlightedPoints()
void ViewProviderPartExt::setHighlightedPoints | ( | const std::vector< App::Color > & | colors | ) |
References nodeset, pcPointBind, and pcPointMaterial.
Referenced by SurfaceGui::ViewProviderFilling::highlightReferences(), and onChanged().
◆ setupContextMenu()
set up the context-menu with the supported edit modes
Reimplemented from Gui::ViewProviderDragger.
Reimplemented in PartDesignGui::ViewProvider, PartDesignGui::ViewProviderSubShapeBinder, PartDesignGui::ViewProviderBody, SketcherGui::ViewProviderSketch, PartDesignGui::ViewProviderPrimitive, PartGui::ViewProviderSpline, PartDesignGui::ViewProviderHole, PartDesignGui::ViewProviderBase, PartDesignGui::ViewProviderBoolean, PartDesignGui::ViewProviderShapeBinder, PartDesignGui::ViewProviderTransformed, PartGui::ViewProviderThickness, PartGui::ViewProviderOffset, PartGui::ViewProviderChamfer, PartGui::ViewProviderFillet, PartDesignGui::ViewProviderLoft, PartDesignGui::ViewProviderPipe, PartDesignGui::ViewProviderGroove, PartDesignGui::ViewProviderPocket, PartDesignGui::ViewProviderRevolution, PartGui::ViewProviderMirror, PartDesignGui::ViewProviderPad, PartDesignGui::ViewProviderDressUp, SurfaceGui::ViewProviderFilling, and SurfaceGui::ViewProviderGeomFillSurface.
References Gui::ViewProviderDragger::setupContextMenu().
Referenced by PartGui::ViewProviderMirror::setupContextMenu(), PartDesignGui::ViewProviderHole::setupContextMenu(), PartGui::ViewProviderSpline::setupContextMenu(), PartGui::ViewProviderFillet::setupContextMenu(), PartGui::ViewProviderChamfer::setupContextMenu(), PartGui::ViewProviderOffset::setupContextMenu(), and PartGui::ViewProviderThickness::setupContextMenu().
◆ unsetEdit()
|
overrideprotectedvirtual |
is called when you lose the edit mode
Reimplemented from Gui::ViewProviderDragger.
Reimplemented in PartDesignGui::ViewProvider, PartDesignGui::ViewProviderShapeBinder, PartDesignGui::ViewProviderTransformed, SketcherGui::ViewProviderSketch, PartGui::ViewProviderThickness, PartGui::ViewProviderOffset, PartGui::ViewProviderChamfer, PartGui::ViewProviderFillet, PartDesignGui::ViewProviderPipe, PartDesignGui::ViewProviderLoft, PartDesignGui::ViewProviderPrimitive, PartGui::ViewProviderMirror, PartDesignGui::ViewProviderBase, SurfaceGui::ViewProviderFilling, PartGui::ViewProviderImport, and SurfaceGui::ViewProviderGeomFillSurface.
References Gui::ViewProviderDragger::unsetEdit().
Referenced by PathScripts.PathJobGui.ViewProvider::uneditObject(), SurfaceGui::ViewProviderGeomFillSurface::unsetEdit(), PartGui::ViewProviderImport::unsetEdit(), SurfaceGui::ViewProviderFilling::unsetEdit(), PartDesignGui::ViewProviderShapeBinder::unsetEdit(), PartDesignGui::ViewProviderBase::unsetEdit(), PartGui::ViewProviderMirror::unsetEdit(), PartGui::ViewProviderFillet::unsetEdit(), PartDesignGui::ViewProvider::unsetEdit(), PartGui::ViewProviderChamfer::unsetEdit(), PartGui::ViewProviderOffset::unsetEdit(), and PartGui::ViewProviderThickness::unsetEdit().
◆ unsetHighlightedEdges()
void ViewProviderPartExt::unsetHighlightedEdges | ( | ) |
References LineMaterial, pcLineBind, and App::Property::touch().
Referenced by SurfaceGui::ViewProviderGeomFillSurface::highlightReferences(), and SurfaceGui::ViewProviderFilling::highlightReferences().
◆ unsetHighlightedFaces()
void ViewProviderPartExt::unsetHighlightedFaces | ( | ) |
References DiffuseColor, App::Property::touch(), and Gui::ViewProviderGeometryObject::Transparency.
Referenced by SurfaceGui::ViewProviderFilling::highlightReferences().
◆ unsetHighlightedPoints()
void ViewProviderPartExt::unsetHighlightedPoints | ( | ) |
References PointColorArray, and App::Property::touch().
Referenced by SurfaceGui::ViewProviderFilling::highlightReferences().
◆ updateData()
|
overridevirtual |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in PartDesignGui::ViewProviderBody, PartGui::ViewProviderSpline, PartDesignGui::ViewProvider, SketcherGui::ViewProviderSketch, PartGui::ViewProviderChamfer, PartGui::ViewProviderMultiCommon, PartGui::ViewProviderCompound, PartGui::ViewProviderFillet, PartGui::ViewProviderRuledSurface, PathGui::ViewProviderAreaView, PartGui::ViewProviderBoolean, PartDesignGui::ViewProviderPrimitive, PartGui::ViewProviderMultiFuse, PartDesignGui::ViewProviderAddSub, PathGui::ViewProviderArea, PartGui::ViewProviderCustom, SketcherGui::ViewProviderCustom, PartGui::ViewProvider2DObject, and PartGui::ViewProviderCurveNet.
References faceset, App::Property::getName(), App::PropertyBool::getValue(), isUpdateForced(), PartGui::SoBrepFaceSet::partIndex, pcFaceBind, Gui::ViewProviderGeometryObject::updateData(), updateVisual(), Gui::ViewProviderDocumentObject::Visibility, and VisualTouched.
Referenced by PathScripts.PathJobDlg.JobCreate::exec_(), PathScripts.PathOpGui.TaskPanelPage::pageUpdateData(), PathScripts.PathSetupSheetGui.OpTaskPanel::setupUi(), PartGui::ViewProvider2DObject::updateData(), PartDesignGui::ViewProviderBody::updateData(), PartDesignGui::ViewProvider::updateData(), PartGui::ViewProviderMultiFuse::updateData(), PathGui::ViewProviderArea::updateData(), PartGui::ViewProviderBoolean::updateData(), PartGui::ViewProviderSpline::updateData(), PathGui::ViewProviderAreaView::updateData(), PartGui::ViewProviderRuledSurface::updateData(), PartGui::ViewProviderFillet::updateData(), PartGui::ViewProviderCompound::updateData(), PartGui::ViewProviderMultiCommon::updateData(), and PartGui::ViewProviderChamfer::updateData().
◆ updateVisual()
|
protected |
References AngularDeflection, Base::Console(), Deviation, Base::TimeInfo::diffTimeF(), faceset, App::DocumentObject::getFullName(), getNormals(), Gui::ViewProviderDocumentObject::getObject(), Part::Feature::getShape(), App::PropertyQuantity::getValue(), App::PropertyFloat::getValue(), lineset, Base::ConsoleSingleton::Log(), nodeset, norm, NormalsFromUV, PartGui::SoBrepFaceSet::partIndex, Gui::ViewProviderDocumentObject::pcObject, and VisualTouched.
Referenced by PartDesignGui::ViewProvider::makeTemporaryVisible(), onChanged(), reload(), and updateData().
◆ useNewSelectionModel()
|
overridevirtual |
indicates if the ViewProvider use the new Selection model
Reimplemented from Gui::ViewProvider.
Member Data Documentation
◆ AngularDeflection
App::PropertyAngle PartGui::ViewProviderPartExt::AngularDeflection |
◆ ControlPoints
App::PropertyBool PartGui::ViewProviderPartExt::ControlPoints |
◆ coords
|
protected |
◆ Deviation
App::PropertyFloatConstraint PartGui::ViewProviderPartExt::Deviation |
◆ DiffuseColor
App::PropertyColorList PartGui::ViewProviderPartExt::DiffuseColor |
Referenced by getElementColors(), PartDesignGui::ViewProviderDressUp::highlightReferences(), PartDesignGui::ViewProviderShapeBinder::highlightReferences(), onChanged(), PartGui::FaceColors::Private::Private(), PartDesignGui::ViewProviderBody::unifyVisualProperty(), unsetHighlightedFaces(), PartGui::ViewProviderMultiFuse::updateData(), PartGui::ViewProviderBoolean::updateData(), PartGui::ViewProviderCompound::updateData(), PartGui::ViewProviderFillet::updateData(), PartGui::ViewProviderMultiCommon::updateData(), PartGui::ViewProviderChamfer::updateData(), and ViewProviderPartExt().
◆ DrawStyle
App::PropertyEnumeration PartGui::ViewProviderPartExt::DrawStyle |
Referenced by onChanged(), and ViewProviderPartExt().
◆ faceset
|
protected |
Referenced by attach(), setHighlightedFaces(), updateData(), updateVisual(), ViewProviderPartExt(), and ~ViewProviderPartExt().
◆ Lighting
App::PropertyEnumeration PartGui::ViewProviderPartExt::Lighting |
Referenced by onChanged(), and ViewProviderPartExt().
◆ LineColor
App::PropertyColor PartGui::ViewProviderPartExt::LineColor |
Referenced by getElementColors(), SurfaceGui::ViewProviderGeomFillSurface::highlightReferences(), SurfaceGui::ViewProviderFilling::highlightReferences(), PartDesignGui::ViewProviderDressUp::highlightReferences(), PartDesignGui::ViewProviderShapeBinder::highlightReferences(), PartDesignGui::ViewProviderPipe::highlightReferences(), onChanged(), and ViewProviderPartExt().
◆ LineColorArray
App::PropertyColorList PartGui::ViewProviderPartExt::LineColorArray |
Referenced by getElementColors(), PartDesignGui::ViewProviderDressUp::highlightReferences(), PartDesignGui::ViewProviderShapeBinder::highlightReferences(), PartDesignGui::ViewProviderPipe::highlightReferences(), onChanged(), PartDesignGui::ViewProviderBody::unifyVisualProperty(), and ViewProviderPartExt().
◆ LineMaterial
App::PropertyMaterial PartGui::ViewProviderPartExt::LineMaterial |
Referenced by onChanged(), unsetHighlightedEdges(), and ViewProviderPartExt().
◆ lineset
|
protected |
◆ LineWidth
App::PropertyFloatConstraint PartGui::ViewProviderPartExt::LineWidth |
Referenced by onChanged(), and ViewProviderPartExt().
◆ nodeset
|
protected |
Referenced by attach(), getDetail(), getElement(), setHighlightedPoints(), updateVisual(), ViewProviderPartExt(), and ~ViewProviderPartExt().
◆ norm
|
protected |
◆ NormalsFromUV
|
protected |
Referenced by loadParameter(), updateVisual(), and ViewProviderPartExt().
◆ normb
|
protected |
Referenced by attach(), ViewProviderPartExt(), and ~ViewProviderPartExt().
◆ pcFaceBind
|
protected |
Referenced by attach(), onChanged(), setHighlightedFaces(), updateData(), ViewProviderPartExt(), and ~ViewProviderPartExt().
◆ pcLineBind
|
protected |
Referenced by attach(), setHighlightedEdges(), unsetHighlightedEdges(), ViewProviderPartExt(), and ~ViewProviderPartExt().
◆ pcLineMaterial
|
protected |
◆ pcLineStyle
|
protected |
◆ pcPointBind
|
protected |
Referenced by attach(), setHighlightedPoints(), ViewProviderPartExt(), and ~ViewProviderPartExt().
◆ pcPointMaterial
|
protected |
◆ pcPointStyle
|
protected |
◆ PointColor
App::PropertyColor PartGui::ViewProviderPartExt::PointColor |
◆ PointColorArray
App::PropertyColorList PartGui::ViewProviderPartExt::PointColorArray |
◆ PointMaterial
App::PropertyMaterial PartGui::ViewProviderPartExt::PointMaterial |
Referenced by onChanged(), and ViewProviderPartExt().
◆ PointSize
App::PropertyFloatConstraint PartGui::ViewProviderPartExt::PointSize |
Referenced by onChanged(), and ViewProviderPartExt().
◆ pShapeHints
|
protected |
Referenced by attach(), onChanged(), ViewProviderPartExt(), and ~ViewProviderPartExt().
◆ VisualTouched
|
protected |
The documentation for this class was generated from the following files:
- src/Mod/Part/Gui/ViewProviderExt.h
- src/Mod/Part/Gui/ViewProviderExt.cpp