Added getPaths(...) to PropertyVector class.
This commit is contained in:
@@ -191,6 +191,15 @@ void PropertyVector::Paste(const Property &from)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
void PropertyVector::getPaths(std::vector<ObjectIdentifier> &paths) const
|
||||
{
|
||||
paths.push_back(ObjectIdentifier(getContainer()) << ObjectIdentifier::Component::SimpleComponent(getName())
|
||||
<< ObjectIdentifier::Component::SimpleComponent(ObjectIdentifier::String("x")));
|
||||
paths.push_back(ObjectIdentifier(getContainer()) << ObjectIdentifier::Component::SimpleComponent(getName())
|
||||
<< ObjectIdentifier::Component::SimpleComponent(ObjectIdentifier::String("y")));
|
||||
paths.push_back(ObjectIdentifier(getContainer()) << ObjectIdentifier::Component::SimpleComponent(getName())
|
||||
<< ObjectIdentifier::Component::SimpleComponent(ObjectIdentifier::String("z")));
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// PropertyVectorDistance
|
||||
|
||||
@@ -75,6 +75,9 @@ public:
|
||||
void setValue(const Base::Vector3d &vec);
|
||||
void setValue(double x, double y, double z);
|
||||
|
||||
/// Get valid paths for this property; used by auto completer
|
||||
void getPaths(std::vector<ObjectIdentifier> &paths) const;
|
||||
|
||||
/** This method returns a string representation of the property
|
||||
*/
|
||||
const Base::Vector3d &getValue(void) const;
|
||||
|
||||
Reference in New Issue
Block a user