+ rename method for points of selection

This commit is contained in:
wmayer 2015-05-26 12:51:39 +02:00
parent 7843225fad
commit b882109cb1
3 changed files with 6 additions and 6 deletions

View File

@ -61,7 +61,7 @@ public:
/// get the Type of the selected Object
inline const char* getTypeName(void) const { return TypeName.c_str(); }
/// get the selection points
inline const std::vector<Base::Vector3d> getSubPoints(void) const { return SelPoses; }
inline const std::vector<Base::Vector3d> getPickedPoints(void) const { return SelPoses; }
/// returns the selected DocumentObject or NULL if the object is already deleted
const App::DocumentObject *getObject(void) const;

View File

@ -72,11 +72,11 @@
</Documentation>
<Parameter Name="SubObjects" Type="Tuple" />
</Attribute>
<Attribute Name="SubPoints" ReadOnly="true">
<Attribute Name="PickedPoints" ReadOnly="true">
<Documentation>
<UserDocu>Selection points</UserDocu>
<UserDocu>Picked points for selection</UserDocu>
</Documentation>
<Parameter Name="SubPoints" Type="Tuple" />
<Parameter Name="PickedPoints" Type="Tuple" />
</Attribute>
<Attribute Name="HasSubObjects" ReadOnly="true">
<Documentation>

View File

@ -125,9 +125,9 @@ Py::Boolean SelectionObjectPy::getHasSubObjects(void) const
return Py::Boolean(getSelectionObjectPtr()->hasSubNames());
}
Py::Tuple SelectionObjectPy::getSubPoints(void) const
Py::Tuple SelectionObjectPy::getPickedPoints(void) const
{
const std::vector<Base::Vector3d>& points = getSelectionObjectPtr()->getSubPoints();
const std::vector<Base::Vector3d>& points = getSelectionObjectPtr()->getPickedPoints();
Py::Tuple temp(points.size());
Py::sequence_index_type index = 0;