+ rename method for points of selection
This commit is contained in:
parent
7843225fad
commit
b882109cb1
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user