SketcherGui::ViewProviderCustom Class Reference

#include <ViewProviderPython.h>

Public Member Functions

virtual void updateData (const App::Property *)
 
 ViewProviderCustom ()
 constructor More...
 
virtual ~ViewProviderCustom ()
 destructor More...
 
- Public Member Functions inherited from SketcherGui::ViewProviderSketch
void draw (bool temp=false, bool rebuildinformationlayer=true)
 draw the sketch in the inventor nodes temp => use temporary solver solution in SketchObject recreateinformationscenography => forces a rebuild of the information layer scenography More...
 
void drawConstraintIcons ()
 Draw all constraint icons. More...
 
void drawEdit (const std::vector< Base::Vector2d > &EditCurve)
 draw the edit curve More...
 
bool isSelectable (void) const
 Is the view provider selectable. More...
 
virtual void onSelectionChanged (const Gui::SelectionChanges &msg)
 Observer message from the Selection. More...
 
void showRestoreInformationLayer ()
 Show/Hide nodes from information layer. More...
 
 ViewProviderSketch ()
 constructor More...
 
virtual ~ViewProviderSketch ()
 destructor More...
 
void activateHandler (DrawSketchHandler *newHandler)
 sets an DrawSketchHandler in control More...
 
void purgeHandler (void)
 removes the active handler More...
 
void setAxisPickStyle (bool on)
 set the pick style of the sketch coordinate axes More...
 
void getCoordsOnSketchPlane (double &u, double &v, const SbVec3f &point, const SbVec3f &normal)
 give the coordinates of a line on the sketch plane in sketcher (2D) coordinates More...
 
void getProjectingLine (const SbVec2s &, const Gui::View3DInventorViewer *viewer, SbLine &) const
 give projecting line of position More...
 
bool detectPreselection (const SoPickedPoint *Point, const Gui::View3DInventorViewer *viewer, const SbVec2s &cursorPos)
 helper to detect preselection More...
 
std::set< int > detectPreselectionConstr (const SoPickedPoint *Point, const Gui::View3DInventorViewer *viewer, const SbVec2s &cursorPos)
 Helper for detectPreselection(), for constraints only. More...
 
void centerSelection ()
 
void doBoxSelection (const SbVec2s &startPos, const SbVec2s &endPos, const Gui::View3DInventorViewer *viewer)
 box selection method More...
 
void updateColor (void)
 helper change the color of the sketch according to selection and solver status More...
 
Sketcher::SketchObjectgetSketchObject (void) const
 get the pointer to the sketch document object More...
 
void snapToGrid (double &x, double &y)
 snap points x,y (mouse coordinates) onto grid if enabled More...
 
void moveConstraint (int constNum, const Base::Vector2d &toPos)
 moves a selected constraint More...
 
Base::Vector3d seekConstraintPosition (const Base::Vector3d &origPos, const Base::Vector3d &norm, const Base::Vector3d &dir, float step, const SoNode *constraint)
 finds a free position for placing a constraint icon More...
 
float getScaleFactor ()
 
int getPreselectPoint (void) const
 
int getPreselectCurve (void) const
 
int getPreselectCross (void) const
 
void setSketchMode (SketchMode mode)
 is called by GuiCommands to set the drawing mode More...
 
SketchMode getSketchMode (void) const
 get the sketch mode More...
 
virtual void attach (App::DocumentObject *)
 Attaches the document object to this view provider. More...
 
virtual void setupContextMenu (QMenu *menu, QObject *receiver, const char *member)
 set up the context-menu with the supported edit modes More...
 
virtual bool onDelete (const std::vector< std::string > &)
 is called when the Provider is in edit and a deletion request occurs More...
 
virtual bool doubleClicked (void)
 is called by the tree if the user double click on the object More...
 
virtual bool mouseMove (const SbVec2s &pos, Gui::View3DInventorViewer *viewer)
 is called when the Provider is in edit and the mouse is moved More...
 
virtual bool keyPressed (bool pressed, int key)
 is called when the Provider is in edit and a key event ocours. Only ESC ends edit. More...
 
virtual bool mouseButtonPressed (int Button, bool pressed, const SbVec2s &cursorPos, const Gui::View3DInventorViewer *viewer)
 is called when the Provider is in edit and the mouse is clicked More...
 
void deleteSelected ()
 
void updateVirtualSpace (void)
 updates the visibility of the virtual space More...
 
void setIsShownVirtualSpace (bool isshownvirtualspace)
 
bool getIsShownVirtualSpace (void) const
 
- Public Member Functions inherited from PartGui::ViewProvider2DObject
SoSeparatorcreateGrid (void)
 creates the grid More...
 
virtual const char * getDefaultDisplayMode () const
 get the default display mode More...
 
virtual std::vector< std::string > getDisplayModes (void) const
 returns a list of all possible modes More...
 
 ViewProvider2DObject ()
 constructor More...
 
virtual ~ViewProvider2DObject ()
 destructor More...
 
- Public Member Functions inherited from PartGui::ViewProviderPart
 ViewProviderPart ()
 constructor More...
 
virtual ~ViewProviderPart ()
 destructor More...
 
- Public Member Functions inherited from PartGui::ViewProviderPartExt
void reload ()
 Update the view representation. More...
 
virtual void setDisplayMode (const char *ModeName) override
 set the display mode More...
 
 ViewProviderPartExt ()
 constructor More...
 
virtual ~ViewProviderPartExt ()
 destructor More...
 
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::Vector3dgetModelPoints (const SoPickedPoint *) const override
 
virtual std::vector< Base::Vector3dgetSelectionShape (const char *Element) const override
 return the highlight lines for a given element or the whole shape More...
 
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 ()
 
virtual std::map< std::string, App::ColorgetElementColors (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...
 
 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...
 
virtual ViewProviderstartEditing (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::DocumentgetDocument () 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::DocumentObjectgetObject (void) const
 Get the object of this ViewProvider object. More...
 
PyObjectgetPyObject () 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::PropertyaddDynamicProperty (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 ViewProviderDocumentObjectgetLinkedViewProvider (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...
 
SoSeparatorgetAnnotation (void)
 
virtual SoSeparatorgetBackRoot (void) const
 
virtual SoGroupgetChildRoot (void) const
 
virtual SoSeparatorgetFrontRoot (void) const
 
SoSwitch * getModeSwitch (void) const
 
virtual SoSeparatorgetRoot (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 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 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 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 MDIViewgetMDIView () const
 
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...
 
SoNodegetDisplayMaskMode (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::ExtensiongetExtension (Base::Type, bool derived=true, bool no_except=false) const
 
App::ExtensiongetExtension (const std::string &name) const
 
template<typename ExtensionT >
ExtensionTgetExtensionByType (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 PropertygetPropertyByName (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::PropertygetDynamicPropertyByName (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...
 
- Public Member Functions inherited from Gui::SelectionObserver
void attachSelection ()
 Attaches to the selection. More...
 
bool blockConnection (bool block)
 
void detachSelection ()
 Detaches from the selection. More...
 
bool isConnectionAttached () const
 
bool isConnectionBlocked () const
 
 SelectionObserver (bool attach=true, int resolve=1)
 Constructor. More...
 
 SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, int resolve=1)
 Constructor. More...
 
virtual ~SelectionObserver ()
 

Protected Member Functions

virtual void onChanged (const App::Property *prop)
 get called by the container whenever a property has been changed More...
 
- Protected Member Functions inherited from SketcherGui::ViewProviderSketch
QString iconTypeFromConstraint (Sketcher::Constraint *constraint)
 
QColor constrColor (int constraintId)
 Returns a QColor object appropriate for constraint with given id. More...
 
int constrColorPriority (int constraintId)
 Used by drawMergedConstraintIcons to decide what color to make icons. More...
 
void combineConstraintIcons (IconQueue iconQueue)
 
void drawTypicalConstraintIcon (const constrIconQueueItem &i)
 Renders an icon for a single constraint and sends it to Coin. More...
 
void drawMergedConstraintIcons (IconQueue iconQueue)
 Combines multiple constraint icons and sends them to Coin. More...
 
QImage renderConstrIcon (const QString &type, const QColor &iconColor, const QStringList &labels, const QList< QColor > &labelColors, double iconRotation, std::vector< QRect > *boundingBoxes=NULL, int *vPad=NULL)
 Helper for drawMergedConstraintIcons and drawTypicalConstraintIcon. More...
 
void sendConstraintIconToCoin (const QImage &icon, SoImage *soImagePtr)
 Copies a QImage constraint icon into a SoImage*. More...
 
void clearCoinImage (SoImage *soImagePtr)
 Essentially a version of sendConstraintIconToCoin, with a blank icon. More...
 
SbVec3s getDisplayedSize (const SoImage *) const
 Returns the size that Coin should display the indicated image at. More...
 
void setPositionText (const Base::Vector2d &Pos, const SbString &txt)
 
void setPositionText (const Base::Vector2d &Pos)
 
void resetPositionText (void)
 
void setPreselectPoint (int PreselectPoint)
 
void resetPreselectPoint (void)
 
void addSelectPoint (int SelectPoint)
 
void removeSelectPoint (int SelectPoint)
 
void clearSelectPoints (void)
 
Base::Placement getEditingPlacement () const
 
virtual bool setEdit (int ModNum)
 is called by the document when the provider goes in edit mode More...
 
virtual void unsetEdit (int ModNum)
 is called when you lose the edit mode More...
 
virtual void setEditViewer (Gui::View3DInventorViewer *, int ModNum)
 adjust viewer settings when editing a view provider More...
 
virtual void unsetEditViewer (Gui::View3DInventorViewer *)
 restores viewer settings when leaving editing mode More...
 
void deactivateHandler ()
 
void UpdateSolverInformation (void)
 update solver information based on last solving at SketchObject More...
 
bool isPointOnSketch (const SoPickedPoint *pp) const
 helper to detect whether the picked point lies on the sketch More...
 
void editDoubleClicked (void)
 get called if a subelement is double clicked while editing More...
 
void createEditInventorNodes (void)
 set up the edition data structure EditData More...
 
void rebuildConstraintsVisual (void)
 build up the visual of the constraints More...
 
void slotUndoDocument (const Gui::Document &)
 
void slotRedoDocument (const Gui::Document &)
 
QString getPresentationString (const Sketcher::Constraint *constraint)
 Return display string for constraint including hiding units if. More...
 
- Protected Member Functions inherited from PartGui::ViewProvider2DObject
virtual void handleChangedPropertyType (Base::XMLReader &reader, const char *TypeName, App::Property *prop)
 PropertyContainer::handleChangedPropertyType is called during restore to possibly fix reading of older versions of the property container. More...
 
virtual void Restore (Base::XMLReader &reader)
 This method is used to restore properties from an XML document. More...
 
void updateGridExtent (float minx, float maxx, float miny, float maxy)
 
- Protected Member Functions inherited from PartGui::ViewProviderPart
void applyColor (const Part::ShapeHistory &hist, const std::vector< App::Color > &colBase, std::vector< App::Color > &colBool)
 
void applyTransparency (const float &transparency, std::vector< App::Color > &colors)
 
- Protected Member Functions inherited from PartGui::ViewProviderPartExt
bool loadParameter ()
 
void updateVisual ()
 
void getNormals (const TopoDS_Face &theFace, const Handle(Poly_Triangulation)&aPolyTri, TColgp_Array1OfDir &theNormals)
 
- Protected Member Functions inherited from Gui::ViewProviderGeometryObject
void setSelectable (bool Selectable=true)
 
virtual unsigned long getBoundColor () const
 
- Protected Member Functions inherited from Gui::ViewProviderDragger
- Protected Member Functions inherited from Gui::ViewProviderDocumentObject
Gui::MDIViewgetActiveView () const
 
Gui::MDIViewgetEditingView () const
 
Gui::MDIViewgetInventorView () const
 
Gui::MDIViewgetViewOfNode (SoNode *node) const
 
virtual void onBeforeChange (const App::Property *prop) override
 get called before the value is changed More...
 
SoNodefindFrontRootOfType (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 PropertyDatagetPropertyData (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...
 

Protected Attributes

std::map< const App::Property *, Gui::ViewProvider * > propView
 
- Protected Attributes inherited from SketcherGui::ViewProviderSketch
SketchMode Mode
 
float zCross
 
float zLowPoints
 
float zHighPoints
 
float zConstr
 
float zHighlight
 
float zText
 
float zEdit
 
float zHighLine
 
float zInfo
 
float zLowLines
 
float zMidLines
 
float zHighLines
 
double xInit
 
double yInit
 
bool relative
 
Gui::Rubberbandrubberband
 
bool visibleInformationChanged
 
double combrepscalehyst
 
std::string editDocName
 
std::string editObjName
 
std::string editSubName
 
bool isShownVirtualSpace
 
ShortcutListenerlistener
 
EditDataedit
 pointer to the edit data structure if the ViewProvider is in edit. More...
 
boost::signals2::connection connectUndoDocument
 
boost::signals2::connection connectRedoDocument
 
- Protected Attributes inherited from PartGui::ViewProvider2DObject
SoSeparatorGridRoot
 
- Protected Attributes inherited from PartGui::ViewProviderPartExt
SoMaterialBinding * pcFaceBind
 
SoMaterialBinding * pcLineBind
 
SoMaterialBinding * pcPointBind
 
SoMaterial * pcLineMaterial
 
SoMaterial * pcPointMaterial
 
SoDrawStyle * pcLineStyle
 
SoDrawStyle * pcPointStyle
 
SoShapeHints * pShapeHints
 
SoCoordinate3 * coords
 
SoBrepFaceSetfaceset
 
SoNormal * norm
 
SoNormalBinding * normb
 
SoBrepEdgeSetlineset
 
SoBrepPointSetnodeset
 
bool VisualTouched
 
bool NormalsFromUV
 
- Protected Attributes inherited from Gui::ViewProviderGeometryObject
SoMaterial * pcShapeMaterial
 
SoFCBoundingBoxpcBoundingBox
 
SoSwitch * pcBoundSwitch
 
SoBaseColor * pcBoundColor
 
- Protected Attributes inherited from Gui::ViewProviderDragger
SoFCCSysDraggercsysDragger = nullptr
 
- Protected Attributes inherited from Gui::ViewProviderDocumentObject
App::DocumentObjectpcObject
 
Gui::DocumentpcDocument
 
- Protected Attributes inherited from Gui::ViewProvider
SoSeparatorpcRoot
 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...
 
SoSeparatorpcAnnotation
 The root separator for annotations. More...
 
ViewProviderPypyViewObject
 
std::string overrideMode
 
std::bitset< 32 > StatusBits
 
- Protected Attributes inherited from App::PropertyContainer
DynamicProperty dynamicProps
 

Additional Inherited Members

- Public Types inherited from SketcherGui::ViewProviderSketch
enum  SketchMode {
  STATUS_NONE, STATUS_SELECT_Point, STATUS_SELECT_Edge, STATUS_SELECT_Constraint,
  STATUS_SELECT_Cross, STATUS_SKETCH_DragPoint, STATUS_SKETCH_DragCurve, STATUS_SKETCH_DragConstraint,
  STATUS_SKETCH_UseHandler, STATUS_SKETCH_StartRubberBand, STATUS_SKETCH_UseRubberBand
}
 mode table More...
 
- 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)
 
- Public Attributes inherited from SketcherGui::ViewProviderSketch
App::PropertyBool Autoconstraints
 
App::PropertyBool AvoidRedundant
 
App::PropertyString EditingWorkbench
 
App::PropertyBool HideDependent
 
App::PropertyBool RestoreCamera
 
App::PropertyBool ShowLinks
 
App::PropertyBool ShowSupport
 
App::PropertyPythonObject TempoVis
 
boost::signals2::signal< void()> signalConstraintsChanged
 signals if the constraints list has changed More...
 
boost::signals2::signal< void(QString msg)> signalSetUp
 signals if the sketch has been set up More...
 
boost::signals2::signal< void(QString msg)> signalSolved
 signals if the sketch has been solved More...
 
boost::signals2::signal< void()> signalElementsChanged
 signals if the elements list has changed More...
 
- Public Attributes inherited from PartGui::ViewProvider2DObject
App::PropertyLength GridSize
 
App::PropertyBool GridSnap
 
App::PropertyEnumeration GridStyle
 
App::PropertyInteger maxNumberOfLines
 
App::PropertyBool ShowGrid
 Property to switch the grid on and off. More...
 
App::PropertyBool ShowOnlyInEditMode
 
App::PropertyBool TightGrid
 
- Public Attributes inherited from PartGui::ViewProviderPartExt
App::PropertyAngle AngularDeflection
 
App::PropertyBool ControlPoints
 
App::PropertyFloatConstraint Deviation
 
App::PropertyColorList DiffuseColor
 
App::PropertyEnumeration DrawStyle
 
App::PropertyEnumeration Lighting
 
App::PropertyColor LineColor
 
App::PropertyColorList LineColorArray
 
App::PropertyMaterial LineMaterial
 
App::PropertyFloatConstraint LineWidth
 
App::PropertyColor PointColor
 
App::PropertyColorList PointColorArray
 
App::PropertyMaterial PointMaterial
 
App::PropertyFloatConstraint PointSize
 
- Public Attributes inherited from Gui::ViewProviderGeometryObject
App::PropertyBool BoundingBox
 
App::PropertyBool Selectable
 
App::PropertyColor ShapeColor
 
App::PropertyMaterial ShapeMaterial
 
App::PropertyPercent Transparency
 
- Public Attributes inherited from Gui::ViewProviderDocumentObject
App::PropertyEnumeration DisplayMode
 
App::PropertyEnumeration OnTopWhenSelected
 
App::PropertyEnumeration SelectionStyle
 
App::PropertyBool ShowInTree
 
App::PropertyBool Visibility
 
- Public Attributes inherited from Gui::ViewProvider
boost::signals2::signal< void()> signalChangeIcon
 signal on icon change More...
 
boost::signals2::signal< void(const QString &)> signalChangeToolTip
 signal on tooltip change More...
 
boost::signals2::signal< void(const QString &)> signalChangeStatusTip
 signal on status tip change More...
 
- Protected Types inherited from SketcherGui::ViewProviderSketch
typedef std::vector< constrIconQueueItemIconQueue
 Internal type used for drawing constraint icons. More...
 
typedef std::pair< QRect, std::set< int > > ConstrIconBB
 For constraint icon bounding boxes. More...
 
typedef std::vector< ConstrIconBBConstrIconBBVec
 For constraint icon bounding boxes. More...
 
- Static Protected Member Functions inherited from App::PropertyContainer
static const PropertyDatagetPropertyDataPtr (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)
 
- Static Protected Attributes inherited from SketcherGui::ViewProviderSketch
static SbColor VertexColor
 
static SbColor CurveColor
 
static SbColor CreateCurveColor
 
static SbColor CurveDraftColor
 
static SbColor CurveExternalColor
 
static SbColor CrossColorV
 
static SbColor CrossColorH
 
static SbColor FullyConstrainedColor
 
static SbColor ConstrDimColor
 
static SbColor ConstrIcoColor
 
static SbColor NonDrivingConstrDimColor
 
static SbColor ExprBasedConstrDimColor
 
static SbColor PreselectColor
 
static SbColor SelectColor
 
static SbColor PreselectSelectedColor
 
static SbColor InformationColor
 
static SbColor DeactivatedConstrDimColor
 
static SbTime prvClickTime
 
static SbVec2s prvClickPos
 
static SbVec2s prvCursorPos
 
static SbVec2s newCursorPos
 
- Static Protected Attributes inherited from PartGui::ViewProvider2DObject
static App::PropertyQuantityConstraint::Constraints GridSizeRange = {0.001,DBL_MAX,1.0}
 
static const char * GridStyleEnums [] = {"Dashed","Light",NULL}
 

Constructor & Destructor Documentation

◆ ViewProviderCustom()

ViewProviderCustom::ViewProviderCustom ( )

constructor

◆ ~ViewProviderCustom()

ViewProviderCustom::~ViewProviderCustom ( )
virtual

destructor

Member Function Documentation

◆ onChanged()

void ViewProviderCustom::onChanged ( const App::Property prop)
protectedvirtual

get called by the container whenever a property has been changed

Reimplemented from SketcherGui::ViewProviderSketch.

References App::Property::Copy(), App::Property::getName(), PartGui::ViewProviderPartExt::onChanged(), and propView.

Referenced by ArchSite.Compass::buildCoordinates(), and ArchAxis.CommandArchGrid::IsActive().

◆ updateData()

Member Data Documentation

◆ propView

std::map<const App::Property*, Gui::ViewProvider*> SketcherGui::ViewProviderCustom::propView
protected

Referenced by onChanged(), and updateData().


The documentation for this class was generated from the following files:
  • src/Mod/Sketcher/Gui/ViewProviderPython.h
  • src/Mod/Sketcher/Gui/ViewProviderPython.cpp