#include <DrawViewDimension.h>
Public Types | |
enum | RefType { invalidRef , oneEdge , twoEdge , twoVertex , vertexEdge , threeVertex } |
Public Types inherited from App::DocumentObject | |
enum | GSReason { GS_DEFAULT , GS_SELECT } |
reason of calling getSubObjects() More... | |
enum | OutListOption { OutListNoExpression = 1 , OutListNoHidden = 2 , OutListNoXLinked = 4 } |
DAG handling This part of the interface deals with viewing the document as a DAG (directed acyclic graph). More... | |
Public Types inherited from App::ExtensionContainer | |
typedef std::map< Base::Type, App::Extension * >::iterator | ExtensionIterator |
Public Member Functions | |
DrawViewDimension () | |
Constructor. More... | |
virtual bool | has2DReferences (void) const |
virtual bool | has3DReferences (void) const |
bool | hasOverUnderTolerance (void) const |
short | mustExecute () const override |
mustExecute We call this method to check if the object was modified to be invoked. More... | |
virtual | ~DrawViewDimension () |
Public Member Functions inherited from TechDraw::DrawView | |
DrawView (void) | |
Constructor. More... | |
virtual | ~DrawView () |
bool | isInClip () |
DrawViewClip * | getClipGroup (void) |
virtual DrawPage * | findParentPage () const |
virtual std::vector< DrawPage * > | findAllParentPages () const |
virtual int | countParentPages () const |
DrawView::countParentPages Fixes a crash in TechDraw when user creates duplicate page without dependencies In fixOrphans() we check how many parent pages an object has before deleting in case it is also a child of another duplicate page. More... | |
virtual double | autoScale (void) const |
virtual double | autoScale (double w, double h) const |
virtual bool | checkFit (void) const |
virtual bool | checkFit (DrawPage *) const |
check if View is too big for page More... | |
virtual void | setPosition (double x, double y, bool force=false) |
virtual bool | keepUpdated (void) |
virtual double | getScale (void) const |
void | checkScale (void) |
void | requestPaint (void) |
virtual void | handleXYLock (void) |
virtual bool | isLocked (void) const |
virtual bool | showLock (void) const |
std::vector< TechDraw::DrawLeaderLine * > | getLeaders (void) const |
void | setScaleAttribute () |
Public Member Functions inherited from App::DocumentObject | |
virtual App::Property * | addDynamicProperty (const char *type, const char *name=nullptr, const char *group=nullptr, const char *doc=nullptr, short attr=0, bool ro=false, bool hidden=false) override |
virtual bool | adjustRelativeLinks (const std::set< App::DocumentObject * > &inList, std::set< App::DocumentObject * > *visited=nullptr) |
Called to adjust link properties to avoid cyclic links. More... | |
virtual bool | allowDuplicateLabel () const |
virtual bool | canLinkProperties () const |
virtual int | canLoadPartial () const |
allow partial loading of dependent objects More... | |
void | clearExpression (const ObjectIdentifier &path) |
void | clearOutListCache () const |
clear internal out list cache More... | |
virtual const char * | detachFromDocument () override |
DocumentObject (void) | |
Constructor. More... | |
void | enforceRecompute () |
Enforce this document object to be recomputed. More... | |
App::Document * | getDocument (void) const |
gets the document in which this Object is handled More... | |
std::string | getExportName (bool forced=false) const |
returns the name that is safe to be exported to other document More... | |
virtual const PropertyExpressionEngine::ExpressionInfo | getExpression (const ObjectIdentifier &path) const |
virtual std::string | getFullName () const override |
Return the object full name of the form DocName::ObjName. More... | |
DocumentObjectGroup * | getGroup () const |
get group if object is part of a group, otherwise 0 is returned More... | |
long | getID () const |
Return the object ID that is unique within its owner document. More... | |
const std::vector< App::DocumentObject * > & | getInList (void) const |
std::set< App::DocumentObject * > | getInListEx (bool recursive) const |
Return a set of all objects linking to this object, including possible external parent objects. More... | |
void | getInListEx (std::set< App::DocumentObject * > &inSet, bool recursive, std::vector< App::DocumentObject * > *inList=nullptr) const |
Get a set of all objects linking to this object, including possible external parent objects. More... | |
std::vector< App::DocumentObject * > | getInListRecursive (void) const |
get all objects link directly or indirectly to this object More... | |
virtual DocumentObject * | getLinkedObject (bool recurse=true, Base::Matrix4D *mat=nullptr, bool transform=false, int depth=0) const |
Return the linked object with optional transformation. More... | |
const char * | getNameInDocument (void) const |
returns the name which is set in the document for this object (not the name property!) More... | |
const std::string & | getOldLabel () const |
const std::vector< App::DocumentObject * > & | getOutList () const |
returns a list of objects this object is pointing to by Links More... | |
std::vector< App::DocumentObject * > | getOutList (int option) const |
void | getOutList (int option, std::vector< App::DocumentObject * > &res) const |
std::vector< App::DocumentObject * > | getOutListOfProperty (App::Property *) const |
returns a list of objects linked by the property More... | |
std::vector< App::DocumentObject * > | getOutListRecursive (void) const |
returns a list of objects this object is pointing to by Links and all further descended More... | |
std::vector< std::pair< App::DocumentObject *, std::string > > | getParents (int depth=0) const |
Obtain top parents and subnames of this object using its InList. More... | |
std::vector< std::list< App::DocumentObject * > > | getPathsByOutList (App::DocumentObject *to) const |
get all possible paths from this to another object following the OutList More... | |
virtual PyObject * | getPyObject (void) override |
This method returns the Python wrapper for a C++ object. More... | |
unsigned long | getStatus () const |
return the status bits More... | |
const char * | getStatusString (void) const |
get the status Message More... | |
virtual DocumentObject * | getSubObject (const char *subname, PyObject **pyObj=nullptr, Base::Matrix4D *mat=nullptr, bool transform=true, int depth=0) const |
Get the sub element/object by name. More... | |
std::vector< DocumentObject * > | getSubObjectList (const char *subname) const |
Return a list of objects referenced by a given subname including this object. More... | |
virtual std::vector< std::string > | getSubObjects (int reason=0) const |
Return name reference of all sub-objects. More... | |
virtual const char * | getViewProviderName (void) const |
returns the type name of the ViewProvider More... | |
virtual const char * | getViewProviderNameOverride () const |
This function is introduced to allow Python feature override its view provider. More... | |
const char * | getViewProviderNameStored () const |
virtual bool | hasChildElement () const |
return true to activate tree view group object handling and element visibility More... | |
virtual bool | isAttachedToDocument () const override |
virtual int | isElementVisible (const char *element) const |
Get sub-element visibility. More... | |
bool | isError (void) const |
set this feature to error More... | |
int | isExporting () const |
bool | isInInList (DocumentObject *objToTest) const |
test if this object is directly (non recursive) in the InList More... | |
bool | isInInListRecursive (DocumentObject *objToTest) const |
test if this object is in the InList and recursive further down More... | |
bool | isInOutList (DocumentObject *objToTest) const |
test if this object is directly (non recursive) in the OutList More... | |
bool | isInOutListRecursive (DocumentObject *objToTest) const |
test if the given object is in the OutList and recursive further down More... | |
bool | isRecomputing () const |
returns true if this objects is currently recomputing More... | |
bool | isRemoving () const |
returns true if this objects is currently removed from the document More... | |
bool | isRestoring () const |
returns true if this objects is currently restoring from file More... | |
bool | isTouched (void) const |
test if this document object is touched More... | |
bool | isValid (void) const |
virtual short | mustExecute (void) const |
mustExecute We call this method to check if the object was modified to be invoked. More... | |
bool | mustRecompute (void) const |
Test if this document object must be recomputed. More... | |
virtual void | onBeforeChangeLabel (std::string &newLabel) |
virtual void | onLostLinkToObject (DocumentObject *) |
Called in case of losing a link Get called by the document when a object got deleted a link property of this object ist pointing to. More... | |
virtual void | onUpdateElementReference (const Property *) |
void | purgeError (void) |
remove the error from the object More... | |
void | purgeTouched (void) |
reset this document object touched More... | |
bool | recomputeFeature (bool recursive=false) |
Recompute only this feature. More... | |
virtual bool | redirectSubName (std::ostringstream &ss, DocumentObject *topParent, DocumentObject *child) const |
Allow object to redirect a subname path. More... | |
virtual bool | removeDynamicProperty (const char *prop) override |
virtual void | renameObjectIdentifiers (const std::map< App::ObjectIdentifier, App::ObjectIdentifier > &paths) |
App::DocumentObject * | resolve (const char *subname, App::DocumentObject **parent=nullptr, std::string *childName=nullptr, const char **subElement=nullptr, PyObject **pyObj=nullptr, Base::Matrix4D *mat=nullptr, bool transform=true, int depth=0) const |
Resolve the last document object referenced in the subname. More... | |
App::DocumentObject * | resolveRelativeLink (std::string &subname, App::DocumentObject *&link, std::string &linkSub) const |
Resolve a link reference that is relative to this object reference. More... | |
virtual void | Save (Base::Writer &writer) const override |
This method is used to save properties to an XML document. More... | |
virtual int | setElementVisible (const char *element, bool visible) |
Child element handling. More... | |
virtual void | setExpression (const ObjectIdentifier &path, std::shared_ptr< App::Expression > expr) |
void | setStatus (ObjectStatus pos, bool on) |
bool | testIfLinkDAGCompatible (App::PropertyLinkSub &linkTo) const |
bool | testIfLinkDAGCompatible (App::PropertyLinkSubList &linksTo) const |
bool | testIfLinkDAGCompatible (const std::vector< DocumentObject * > &linksTo) const |
bool | testIfLinkDAGCompatible (DocumentObject *linkTo) const |
testIfLinkIsDAG tests a link that is about to be created for circular references. More... | |
bool | testStatus (ObjectStatus pos) const |
void | touch (bool noRecompute=false) |
Set the property touched -> changed, cause recomputation in Update() More... | |
virtual | ~DocumentObject () |
Public Member Functions inherited from App::TransactionalObject | |
virtual const char * | detachFromDocument () |
virtual bool | isAttachedToDocument () const |
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... | |
void | saveExtensions (Base::Writer &writer) const |
void | restoreExtensions (Base::XMLReader &reader) |
Public Member Functions inherited from App::PropertyContainer | |
virtual App::Property * | addDynamicProperty (const char *type, const char *name=nullptr, const char *group=nullptr, const char *doc=nullptr, short attr=0, bool ro=false, bool hidden=false) |
bool | changeDynamicProperty (const Property *prop, const char *group, const char *doc) |
virtual void | editProperty (const char *) |
virtual App::Property * | getDynamicPropertyByName (const char *name) const |
DynamicProperty::PropData | getDynamicPropertyData (const Property *prop) const |
virtual std::vector< std::string > | getDynamicPropertyNames () const |
virtual std::string | getFullName () 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... | |
virtual Property * | getPropertyByName (const char *name) const |
find a property by its name More... | |
virtual const char * | getPropertyDocumentation (const char *name) const |
get the Group of a named Property More... | |
virtual const char * | getPropertyDocumentation (const Property *prop) const |
get the Group of a Property More... | |
virtual const char * | getPropertyGroup (const char *name) const |
get the Group of a named Property More... | |
virtual const char * | getPropertyGroup (const Property *prop) const |
get the Group of a Property More... | |
virtual void | getPropertyList (std::vector< Property * > &List) const |
get all properties of the class (including properties of the parent) More... | |
virtual void | getPropertyMap (std::map< std::string, Property * > &Map) const |
get all properties of the class (including properties of the parent) More... | |
virtual const char * | getPropertyName (const Property *prop) const |
get the name of a property More... | |
virtual void | getPropertyNamedList (std::vector< std::pair< const char *, Property * > > &List) const |
get all properties with their names, may contain duplicates and aliases More... | |
const char * | getPropertyPrefix () const |
virtual short | getPropertyType (const char *name) const |
get the Type of a named Property More... | |
virtual short | getPropertyType (const Property *prop) const |
get the Type of a Property More... | |
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... | |
virtual void | onPropertyStatusChanged (const Property &prop, unsigned long oldStatus) |
PropertyContainer () | |
A constructor. More... | |
virtual bool | removeDynamicProperty (const char *name) |
virtual void | Restore (Base::XMLReader &reader) |
This method is used to restore properties from an XML document. More... | |
virtual void | Save (Base::Writer &writer) const |
This method is used to save properties to an XML document. 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 unsigned int | getMemSize () const =0 |
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... | |
virtual Base::Type | getTypeId (void) const |
virtual void | Restore (XMLReader &)=0 |
This method is used to restore properties from an XML document. More... | |
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 | Save (Writer &) const =0 |
This method is used to save properties to an XML document. More... | |
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... | |
BaseClass (const BaseClass &)=default | |
virtual PyObject * | getPyObject () |
This method returns the Python wrapper for a C++ object. More... | |
virtual Type | getTypeId () const |
bool | isDerivedFrom (const Type type) const |
BaseClass & | operator= (const BaseClass &)=default |
virtual void | setPyObject (PyObject *) |
virtual | ~BaseClass () |
Destruction. More... | |
methods override Feature | |
Measure::Measurement * | measurement |
pointPair | m_linearPoints |
pointPair | m_arrowPositions |
virtual App::DocumentObjectExecReturn * | execute (void) override |
recalculate the Feature More... | |
virtual const char * | getViewProviderName (void) const override |
returns the type name of the ViewProvider More... | |
virtual PyObject * | getPyObject (void) override |
This method returns the Python wrapper for a C++ object. More... | |
virtual std::string | getFormattedToleranceValue (int partial) |
virtual std::pair< std::string, std::string > | getFormattedToleranceValues (int partial=0) |
virtual std::string | getFormattedDimensionValue (int partial=0) |
virtual std::string | formatValue (qreal value, QString qFormatSpec, int partial=0, bool isDim=true) |
virtual bool | haveTolerance (void) |
virtual double | getDimValue () |
NOTE: this returns the Dimension value in internal units (ie mm)!!!! More... | |
QStringList | getPrefixSuffixSpec (QString fSpec) |
virtual DrawViewPart * | getViewPart () const |
virtual QRectF | getRect () const override |
virtual int | getRefType () const |
void | setAll3DMeasurement () |
add Dimension 3D references to measurement More... | |
void | clear3DMeasurements (void) |
virtual bool | checkReferences2D (void) const |
validate 2D references - only checks if the target exists More... | |
pointPair | getLinearPoints (void) |
arcPoints | getArcPoints (void) |
anglePoints | getAnglePoints (void) |
bool | leaderIntersectsArc (Base::Vector3d s, Base::Vector3d pointOnCircle) |
bool | isMultiValueSchema (void) const |
std::string | getBaseLengthUnit (Base::UnitSystem system) |
pointPair | getArrowPositions (void) |
void | saveArrowPositions (const Base::Vector2d positions[]) |
bool | showUnits () const |
bool | useDecimals () const |
static int | getRefTypeSubElements (const std::vector< std::string > &) |
virtual void | handleChangedPropertyType (Base::XMLReader &, const char *, App::Property *) override |
PropertyContainer::handleChangedPropertyType is called during restore to possibly fix reading of older versions of the property container. More... | |
virtual void | Restore (Base::XMLReader &reader) override |
This method is used to restore properties from an XML document. More... | |
virtual void | onChanged (const App::Property *prop) override |
get called by the container when a property was changed More... | |
virtual void | onDocumentRestored () override |
get called after a document has been fully restored More... | |
std::string | getPrefix () const |
std::string | getDefaultFormatSpec (bool isToleranceFormat=false) const |
virtual pointPair | getPointsOneEdge () |
virtual pointPair | getPointsTwoEdges () |
virtual pointPair | getPointsTwoVerts () |
virtual pointPair | getPointsEdgeVert () |
double | dist2Segs (Base::Vector3d s1, Base::Vector3d e1, Base::Vector3d s2, Base::Vector3d e2) const |
pointPair | closestPoints (TopoDS_Shape s1, TopoDS_Shape s2) const |
void | resetLinear (void) |
void | resetAngular (void) |
void | resetArc (void) |
Additional Inherited Members | |
Static Public Member Functions inherited from App::DocumentObject | |
static const char * | hasHiddenMarker (const char *subname) |
Check if the subname reference ends with hidden marker. More... | |
static const std::string & | hiddenMarker () |
Special marker to mark the object as hidden. More... | |
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 () |
static Type | getClassTypeId () |
static void | init () |
Static Public Attributes inherited from App::DocumentObject | |
static DocumentObjectExecReturn * | StdReturn |
Protected Member Functions inherited from TechDraw::DrawView | |
virtual void | validateScale () |
int | prefScaleType (void) |
double | prefScale (void) |
Protected Member Functions inherited from App::DocumentObject | |
virtual App::DocumentObjectExecReturn * | execute (void) |
get called by the document to recompute this feature Normally this method get called in the processing of Document::recompute(). More... | |
App::DocumentObjectExecReturn * | executeExtensions () |
Executes the extensions of a document object. More... | |
virtual void | onBeforeChange (const Property *prop) override |
get called before the value is changed More... | |
virtual void | onChanged (const Property *prop) override |
get called by the container when a property was changed More... | |
virtual void | onDocumentRestored () |
get called after a document has been fully restored More... | |
virtual void | onPropertyStatusChanged (const Property &prop, unsigned long oldStatus) override |
get called when a property status has changed More... | |
virtual void | onSettingDocument () |
get called after setting the document More... | |
virtual void | onUndoRedoFinished () |
get called after an undo/redo transaction is finished More... | |
virtual App::DocumentObjectExecReturn * | recompute (void) |
recompute only this object More... | |
void | resetError (void) |
void | setDocument (App::Document *doc) |
void | setError (void) |
virtual void | setupObject () |
get called after a brand new object was created More... | |
virtual void | unsetupObject () |
get called when object is going to be removed from the document 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... | |
virtual void | onBeforeChange (const Property *) |
get called before the value is changed More... | |
virtual void | onChanged (const Property *) |
get called by the container when a property has changed 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 TechDraw::DrawView | |
std::string | pageFeatName |
bool | autoPos |
bool | mouseMove |
Protected Attributes inherited from App::DocumentObject | |
std::string | oldLabel |
Old label; used for renaming expressions. More... | |
const std::string * | pcNameInDocument |
Py::SmartPtr | PythonObject |
python object of this class and all descendent More... | |
std::bitset< 32 > | StatusBits |
Status bits of the document object The first 8 bits are used for the base system the rest can be used in descendent classes to mark special statuses on the objects. More... | |
Protected Attributes inherited from App::PropertyContainer | |
DynamicProperty | dynamicProps |
DrawViewDimension::DrawViewDimension | ( | void | ) |
Constructor.
References AngleOverride, Arbitrary, ArbitraryTolerances, TechDraw::DrawView::Caption, EqualTolerance, ExtensionAngle, FormatSpec, FormatSpecOverTolerance, FormatSpecUnderTolerance, getDefaultFormatSpec(), App::Global, App::Property::Hidden, Inverted, Base::Unit::Length, LineAngle, TechDraw::DrawView::LockPosition, measurement, MeasureType, OverTolerance, App::Prop_None, App::Prop_Output, App::Property::ReadOnly, References2D, References3D, resetAngular(), resetArc(), resetLinear(), TechDraw::DrawView::Rotation, TechDraw::DrawView::Scale, TechDraw::DrawView::ScaleType, App::PropertyQuantityConstraint::setConstraints(), App::PropertyEnumeration::setEnums(), App::ScopedLink::setScope(), App::Property::setStatus(), App::PropertyQuantity::setUnit(), TheoreticalExact, Type, and UnderTolerance.
|
virtual |
References measurement.
|
virtual |
validate 2D references - only checks if the target exists
Reimplemented in TechDraw::LandmarkDimension, and TechDraw::DrawViewDimExtent.
References Base::Console(), TechDraw::DrawViewPart::getGeomByIndex(), TechDraw::DrawUtil::getGeomTypeFromName(), TechDraw::DrawUtil::getIndexFromName(), App::DocumentObject::getNameInDocument(), TechDraw::DrawViewPart::getProjVertexByIndex(), App::PropertyLinkSubList::getSubValues(), App::PropertyLinkSubList::getValues(), getViewPart(), Base::ConsoleSingleton::Log(), and References2D.
Referenced by execute(), and getDimValue().
void DrawViewDimension::clear3DMeasurements | ( | void | ) |
References Measure::Measurement::clear(), and measurement.
Referenced by onChanged(), and TechDrawGui::TaskLinkDim::updateDims().
|
protected |
Referenced by getPointsEdgeVert(), and getPointsTwoEdges().
|
protected |
References Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
|
overridevirtual |
recalculate the Feature
Reimplemented from TechDraw::DrawView.
Reimplemented in TechDraw::DrawViewDimExtent, and TechDraw::LandmarkDimension.
References TechDraw::arcPoints::arcCW, TechDraw::arcPoints::arcEnds, TechDraw::arcPoints::center, checkReferences2D(), Base::Console(), Base::Vector3< _Precision >::Cross(), Base::Vector3< _Precision >::Dot(), TechDraw::anglePoints::ends, Base::ConsoleSingleton::Error(), TechDraw::DrawView::execute(), TechDraw::DrawUtil::fpCompare(), App::DocumentObject::getDocument(), TechDraw::DrawViewPart::getGeomByIndex(), TechDraw::DrawUtil::getIndexFromName(), App::DocumentObject::getNameInDocument(), getPointsEdgeVert(), getPointsOneEdge(), getPointsTwoEdges(), getPointsTwoVerts(), TechDraw::DrawViewPart::getProjVertexByIndex(), getRefType(), App::PropertyLinkSubList::getSubValues(), getViewPart(), has2DReferences(), TechDraw::arcPoints::isArc, TechDraw::DrawUtil::isBetween(), Base::Vector3< _Precision >::IsEqual(), App::DocumentObject::isRestoring(), App::PropertyEnumeration::isValue(), TechDraw::DrawView::keepUpdated(), Base::Vector3< _Precision >::Length(), Base::ConsoleSingleton::Log(), m_linearPoints, TechDraw::arcPoints::midArc, TechDraw::arcPoints::onCurve, oneEdge, Base::Vector3< _Precision >::Perpendicular(), TechDraw::arcPoints::radius, References2D, resetAngular(), resetArc(), resetLinear(), App::DocumentObject::StdReturn, App::DocumentObject::testStatus(), threeVertex, twoEdge, twoVertex, Type, TechDraw::anglePoints::vertex, vertexEdge, and Base::ConsoleSingleton::Warning().
Referenced by draftobjects.facebinder.Facebinder::addSubobjects(), PathScripts.PathDressupDogbone.ObjectDressup::boneStateList(), ArchSite.Compass::buildCoordinates(), TechDraw::DrawViewDimExtent::execute(), TechDraw::LandmarkDimension::execute(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::generateTags(), ArchPanel.PanelCut::getWires(), ArchSchedule.CommandArchSchedule::IsActive(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt::onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder::onChanged(), Mod.PartDesign.Scripts.Spring.MySpring::onChanged(), FeaturePython.DistanceBolt::onChanged(), PathScripts.PathStock.StockFromBase::onChanged(), PathScripts.PathStock.StockCreateBox::onChanged(), PathScripts.PathStock.StockCreateCylinder::onChanged(), draftobjects.draftlink.DraftLink::onDocumentRestored(), draftobjects.patharray.PathArray::onDocumentRestored(), and draftobjects.pathtwistedarray.PathTwistedArray::onDocumentRestored().
|
virtual |
References Base::Unit::Angle, Base::Console(), getBaseLengthUnit(), Base::UnitsApi::getDecimals(), App::DocumentObject::getNameInDocument(), getPrefix(), getPrefixSuffixSpec(), Base::UnitsApi::getSchema(), Base::Quantity::getUserString(), Base::Quantity::getValue(), haveTolerance(), Base::ImperialCivil, isMultiValueSchema(), App::PropertyEnumeration::isValue(), Base::Unit::Length, Base::Quantity::parse(), Base::Quantity::setUnit(), Base::Quantity::setValue(), showUnits(), Base::Tools::toStdString(), Type, useDecimals(), and Base::ConsoleSingleton::Warning().
Referenced by getFormattedDimensionValue(), getFormattedToleranceValue(), and getFormattedToleranceValues().
anglePoints TechDraw::DrawViewDimension::getAnglePoints | ( | void | ) |
arcPoints TechDraw::DrawViewDimension::getArcPoints | ( | void | ) |
pointPair DrawViewDimension::getArrowPositions | ( | void | ) |
References m_arrowPositions.
std::string DrawViewDimension::getBaseLengthUnit | ( | Base::UnitSystem | system | ) |
References Base::Centimeters, Base::FemMilliMeterNewton, Base::Imperial1, Base::ImperialBuilding, Base::ImperialCivil, Base::ImperialDecimal, Base::MmMin, Base::SI1, and Base::SI2.
Referenced by formatValue().
|
protected |
|
virtual |
NOTE: this returns the Dimension value in internal units (ie mm)!!!!
References Measure::Measurement::angle(), checkReferences2D(), Base::Console(), TechDraw::anglePoints::ends, Base::Vector3< _Precision >::GetAngle(), App::DocumentObject::getDocument(), App::DocumentObject::getNameInDocument(), TechDraw::DrawView::getScale(), App::PropertyBool::getValue(), getViewPart(), has2DReferences(), Measure::Measurement::has3DReferences(), Inverted, App::DocumentObject::isRestoring(), App::PropertyEnumeration::isValue(), Base::Vector3< _Precision >::Length(), Measure::Measurement::length(), m_linearPoints, measurement, MeasureType, Measure::Measurement::radius(), TechDraw::arcPoints::radius, App::DocumentObject::testStatus(), Type, TechDraw::anglePoints::vertex, Base::ConsoleSingleton::Warning(), Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
Referenced by getFormattedDimensionValue().
|
virtual |
References Arbitrary, ArbitraryTolerances, EqualTolerance, FormatSpec, formatValue(), TechDraw::DrawUtil::fpCompare(), getDimValue(), getFormattedToleranceValue(), App::PropertyString::getStrValue(), App::PropertyBool::getValue(), App::PropertyQuantity::getValue(), OverTolerance, TheoreticalExact, and draftutils.utils::tolerance().
|
virtual |
|
virtual |
pointPair TechDraw::DrawViewDimension::getLinearPoints | ( | void | ) |
|
protectedvirtual |
References closestPoints(), Base::Console(), Base::ConsoleSingleton::Error(), TechDraw::DrawViewPart::getGeomByIndex(), TechDraw::DrawUtil::getGeomTypeFromName(), TechDraw::DrawUtil::getIndexFromName(), App::DocumentObject::getNameInDocument(), TechDraw::DrawViewPart::getProjVertexByIndex(), App::PropertyLinkSubList::getSubValues(), getViewPart(), and References2D.
Referenced by execute().
|
protectedvirtual |
|
protectedvirtual |
References closestPoints(), Base::Console(), Base::ConsoleSingleton::Error(), TechDraw::DrawViewPart::getGeomByIndex(), TechDraw::DrawUtil::getIndexFromName(), App::DocumentObject::getNameInDocument(), App::PropertyLinkSubList::getSubValues(), getViewPart(), and References2D.
Referenced by execute().
|
protectedvirtual |
Reimplemented in TechDraw::DrawViewDimExtent, and TechDraw::LandmarkDimension.
References Base::Console(), Base::ConsoleSingleton::Error(), TechDraw::DrawUtil::getIndexFromName(), App::DocumentObject::getNameInDocument(), TechDraw::DrawViewPart::getProjVertexByIndex(), App::PropertyLinkSubList::getSubValues(), getViewPart(), and References2D.
Referenced by execute().
|
protected |
References App::GetApplication(), ParameterGrp::GetASCII(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), App::PropertyEnumeration::isValue(), and Type.
Referenced by formatValue(), and getDefaultFormatSpec().
QStringList DrawViewDimension::getPrefixSuffixSpec | ( | QString | fSpec | ) |
References Base::Console(), App::DocumentObject::getNameInDocument(), and Base::ConsoleSingleton::Warning().
Referenced by formatValue().
|
overridevirtual |
This method returns the Python wrapper for a C++ object.
It's in the responsibility of the programmer to do the correct reference counting. Basically there are two ways how to implement that: Either always return a new Python object then reference counting is not a matter or return always the same Python object then the reference counter must be incremented by one. However, it's absolutely forbidden to return always the same Python object without incrementing the reference counter.
The default implementation returns 'None'.
Reimplemented from TechDraw::DrawView.
Reimplemented in TechDraw::DrawViewDimExtent.
References App::DocumentObject::PythonObject.
|
overridevirtual |
Reimplemented from TechDraw::DrawView.
|
virtual |
Reimplemented in TechDraw::LandmarkDimension.
References getRefTypeSubElements(), App::PropertyLinkSubList::getSubValues(), and References2D.
Referenced by execute(), and TechDrawGui::TaskLinkDim::loadAvailDims().
|
static |
References TechDraw::DrawUtil::getGeomTypeFromName(), invalidRef, oneEdge, threeVertex, twoEdge, twoVertex, and vertexEdge.
Referenced by getRefType(), and TechDrawGui::TaskLinkDim::loadAvailDims().
|
virtual |
Reimplemented in TechDraw::LandmarkDimension.
References App::PropertyLinkSubList::getValues(), and References2D.
Referenced by checkReferences2D(), TechDraw::DrawViewDimExtent::checkReferences2D(), TechDrawGui::QGIViewDimension::draw(), execute(), getDimValue(), getPointsEdgeVert(), getPointsOneEdge(), getPointsTwoEdges(), getPointsTwoVerts(), TechDraw::DrawViewDimExtent::getPointsTwoVerts(), leaderIntersectsArc(), saveArrowPositions(), and TechDraw::DrawViewDimExtent::unsetupObject().
|
overridevirtual |
returns the type name of the ViewProvider
Reimplemented from TechDraw::DrawView.
Reimplemented in TechDraw::LandmarkDimension.
|
overrideprotectedvirtual |
PropertyContainer::handleChangedPropertyType is called during restore to possibly fix reading of older versions of the property container.
This method is typically called if the property on file has changed its type in more recent versions.
The default implementation does nothing.
reader | The XML stream to read from. |
TypeName | Name of property type on file. |
prop | Pointer to property to restore. Its type differs from TypeName. |
Reimplemented from TechDraw::DrawView.
References App::PropertyQuantity::getValue(), TechDraw::DrawView::handleChangedPropertyType(), OverTolerance, App::PropertyFloat::Restore(), App::PropertyQuantity::setValue(), and UnderTolerance.
|
virtual |
Reimplemented in TechDraw::LandmarkDimension.
References App::PropertyLinkSubList::getSubValues(), App::PropertyLinkSubList::getValues(), and References2D.
Referenced by TechDrawGui::QGIViewDimension::draw(), execute(), and getDimValue().
|
virtual |
References App::PropertyLinkSubList::getSize(), and References3D.
Referenced by TechDrawGui::TaskLinkDim::dimReferencesSelection(), TechDrawGui::TaskLinkDim::loadAvailDims(), and onDocumentRestored().
bool DrawViewDimension::hasOverUnderTolerance | ( | void | ) | const |
|
virtual |
References ArbitraryTolerances, TechDraw::DrawUtil::fpCompare(), App::PropertyBool::getValue(), App::PropertyQuantity::getValue(), OverTolerance, and UnderTolerance.
Referenced by formatValue().
bool DrawViewDimension::isMultiValueSchema | ( | void | ) | const |
References Base::UnitsApi::getSchema(), Base::ImperialBuilding, Base::ImperialCivil, App::PropertyEnumeration::isValue(), and Type.
Referenced by formatValue().
bool DrawViewDimension::leaderIntersectsArc | ( | Base::Vector3d | s, |
Base::Vector3d | pointOnCircle | ||
) |
|
overridevirtual |
mustExecute We call this method to check if the object was modified to be invoked.
If the object label or an argument is modified. If we must recompute the object - to call the method execute(). 0: no recomputation is needed 1: recomputation needed
Reimplemented from TechDraw::DrawView.
Reimplemented in TechDraw::DrawViewDimExtent, and TechDraw::LandmarkDimension.
References Arbitrary, ArbitraryTolerances, EqualTolerance, FormatSpec, FormatSpecOverTolerance, FormatSpecUnderTolerance, Inverted, App::DocumentObject::isRestoring(), App::Property::isTouched(), MeasureType, TechDraw::DrawView::mustExecute(), OverTolerance, References2D, TheoreticalExact, Type, and UnderTolerance.
Referenced by TechDraw::DrawViewDimExtent::mustExecute(), and TechDraw::LandmarkDimension::mustExecute().
|
overrideprotectedvirtual |
get called by the container when a property was changed
Reimplemented from TechDraw::DrawView.
Reimplemented in TechDraw::DrawViewDimExtent, and TechDraw::LandmarkDimension.
References Base::Unit::Angle, Arbitrary, ArbitraryTolerances, clear3DMeasurements(), Base::Console(), EqualTolerance, FormatSpec, FormatSpecOverTolerance, FormatSpecUnderTolerance, getDefaultFormatSpec(), App::DocumentObject::getNameInDocument(), App::PropertyQuantity::getUnit(), App::PropertyEnumeration::getValue(), App::PropertyString::getValue(), App::PropertyBool::getValue(), App::PropertyQuantity::getValue(), App::PropertyLinkSubList::getValues(), Measure::Measurement::has3DReferences(), Inverted, App::DocumentObject::isRestoring(), App::PropertyEnumeration::isValue(), Base::Unit::Length, measurement, MeasureType, TechDraw::DrawView::onChanged(), OverTolerance, References3D, TechDraw::DrawView::requestPaint(), setAll3DMeasurement(), App::PropertyQuantityConstraint::setConstraints(), App::Property::setReadOnly(), App::PropertyQuantity::setUnit(), App::PropertyBool::setValue(), App::PropertyString::setValue(), App::PropertyEnumeration::setValue(), App::PropertyQuantity::setValue(), TheoreticalExact, App::Property::touch(), Type, UnderTolerance, and Base::ConsoleSingleton::Warning().
Referenced by ArchStructure.CommandStructuralSystem::Activated(), draftviewproviders.view_base.ViewProviderDraft::attach(), ArchSite.Compass::buildCoordinates(), draftobjects.wire.Wire::execute(), TechDraw::DrawViewDimExtent::onChanged(), TechDraw::LandmarkDimension::onChanged(), ArchBuildingPart.ViewProviderBuildingPart::updateData(), ArchPanel.ViewProviderPanelCut::updateData(), ArchPanel.ViewProviderPanelSheet::updateData(), draftviewproviders.view_label.ViewProviderLabel::updateData(), draftviewproviders.view_layer.ViewProviderLayer::updateData(), and draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy::updateData().
|
overrideprotectedvirtual |
get called after a document has been fully restored
Reimplemented from TechDraw::DrawView.
Reimplemented in TechDraw::LandmarkDimension.
References Base::Unit::Angle, App::PropertyEnumeration::getValue(), has3DReferences(), OverTolerance, setAll3DMeasurement(), App::PropertyQuantity::setUnit(), Type, and UnderTolerance.
Referenced by TechDraw::LandmarkDimension::onDocumentRestored().
|
protected |
References TechDraw::anglePoints::ends, and TechDraw::anglePoints::vertex.
Referenced by DrawViewDimension(), and execute().
|
protected |
References TechDraw::arcPoints::arcCW, TechDraw::arcPoints::arcEnds, TechDraw::arcPoints::center, TechDraw::arcPoints::isArc, TechDraw::arcPoints::midArc, and TechDraw::arcPoints::onCurve.
Referenced by DrawViewDimension(), and execute().
|
protected |
References m_linearPoints.
Referenced by DrawViewDimension(), and execute().
|
overrideprotectedvirtual |
This method is used to restore properties from an XML document.
It uses the XMLReader class, which bases on SAX, to read the in Save() written information. Again the Vector as an example:
Reimplemented from App::ExtensionContainer.
References EqualTolerance, App::ExtensionContainer::Restore(), and App::PropertyBool::setValue().
void DrawViewDimension::saveArrowPositions | ( | const Base::Vector2d | positions[] | ) |
References TechDraw::DrawView::getScale(), getViewPart(), m_arrowPositions, and draftfunctions.scale::scale().
void DrawViewDimension::setAll3DMeasurement | ( | ) |
add Dimension 3D references to measurement
References Measure::Measurement::addReference3D(), Measure::Measurement::clear(), App::PropertyLinkSubList::getSubValues(), App::PropertyLinkSubList::getValues(), measurement, and References3D.
Referenced by onChanged(), and onDocumentRestored().
bool DrawViewDimension::showUnits | ( | ) | const |
References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
Referenced by formatValue().
bool DrawViewDimension::useDecimals | ( | ) | const |
References TechDraw::Preferences::useGlobalDecimals().
Referenced by formatValue(), and getDefaultFormatSpec().
App::PropertyBool TechDraw::DrawViewDimension::AngleOverride |
Referenced by DrawViewDimension(), and TechDrawGui::TaskDimension::TaskDimension().
App::PropertyBool TechDraw::DrawViewDimension::Arbitrary |
App::PropertyBool TechDraw::DrawViewDimension::ArbitraryTolerances |
App::PropertyBool TechDraw::DrawViewDimension::EqualTolerance |
App::PropertyAngle TechDraw::DrawViewDimension::ExtensionAngle |
Referenced by DrawViewDimension(), and TechDrawGui::TaskDimension::TaskDimension().
App::PropertyString TechDraw::DrawViewDimension::FormatSpec |
App::PropertyString TechDraw::DrawViewDimension::FormatSpecOverTolerance |
App::PropertyString TechDraw::DrawViewDimension::FormatSpecUnderTolerance |
App::PropertyBool TechDraw::DrawViewDimension::Inverted |
Referenced by DrawViewDimension(), getDimValue(), mustExecute(), and onChanged().
App::PropertyAngle TechDraw::DrawViewDimension::LineAngle |
Referenced by DrawViewDimension(), and TechDrawGui::TaskDimension::TaskDimension().
|
protected |
Referenced by getArrowPositions(), and saveArrowPositions().
|
protected |
|
protected |
Referenced by clear3DMeasurements(), DrawViewDimension(), getDimValue(), onChanged(), setAll3DMeasurement(), and ~DrawViewDimension().
App::PropertyEnumeration TechDraw::DrawViewDimension::MeasureType |
Referenced by DrawViewDimension(), getDimValue(), mustExecute(), and onChanged().
App::PropertyQuantityConstraint TechDraw::DrawViewDimension::OverTolerance |
App::PropertyLinkSubList TechDraw::DrawViewDimension::References2D |
Referenced by checkReferences2D(), DrawViewDimension(), execute(), TechDraw::LandmarkDimension::execute(), TechDrawGui::QGSPage::findParent(), getPointsEdgeVert(), getPointsOneEdge(), getPointsTwoEdges(), getPointsTwoVerts(), getRefType(), getViewPart(), TechDraw::LandmarkDimension::getViewPart(), has2DReferences(), TechDraw::LandmarkDimension::has2DReferences(), leaderIntersectsArc(), TechDraw::DrawDimHelper::makeDistDim(), TechDraw::DrawDimHelper::makeExtentDim(), and mustExecute().
App::PropertyLinkSubList TechDraw::DrawViewDimension::References3D |
Referenced by TechDrawGui::TaskLinkDim::dimReferencesSelection(), DrawViewDimension(), TechDraw::LandmarkDimension::execute(), TechDraw::LandmarkDimension::get2DPoints(), has3DReferences(), onChanged(), TechDraw::LandmarkDimension::onChanged(), TechDraw::LandmarkDimension::onDocumentRestored(), setAll3DMeasurement(), and TechDrawGui::TaskLinkDim::updateDims().
App::PropertyBool TechDraw::DrawViewDimension::TheoreticalExact |
App::PropertyEnumeration TechDraw::DrawViewDimension::Type |
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchStructure.CommandStructuralSystem::Activated(), draftobjects.draft_annotation.DraftAnnotation::add_missing_properties_0v19(), ArchStructure.StructSelectionObserver::addSelection(), ArchSite.Compass::buildCoordinates(), TechDrawGui::QGIViewDimension::draw(), DrawViewDimension(), ArchComponent.Component::execute(), draftobjects.layer.LayerContainer::execute(), execute(), formatValue(), getDimValue(), getPrefix(), ArchSchedule.CommandArchSchedule::IsActive(), isMultiValueSchema(), mustExecute(), onChanged(), onDocumentRestored(), draftobjects.layer.Layer::set_properties(), ArchReference.ArchReference::setProperties(), and TechDrawGui::TaskDimension::TaskDimension().
App::PropertyQuantityConstraint TechDraw::DrawViewDimension::UnderTolerance |