returns existing geometry of 2D Vertex(idx)
| 902 | |
| 903 | //! returns existing geometry of 2D Vertex(idx) |
| 904 | TechDraw::VertexPtr DrawViewPart::getProjVertexByIndex(int idx) const |
| 905 | { |
| 906 | const std::vector<TechDraw::VertexPtr>& geoms = getVertexGeometry(); |
| 907 | if (geoms.empty()) { |
| 908 | return nullptr; |
| 909 | } |
| 910 | if ((unsigned)idx >= geoms.size()) { |
| 911 | return nullptr; |
| 912 | } |
| 913 | return geoms.at(idx); |
| 914 | } |
| 915 | |
| 916 | TechDraw::VertexPtr DrawViewPart::getProjVertexByCosTag(std::string cosTag) |
| 917 | { |
no test coverage detected