PIRect complete
This commit is contained in:
@@ -619,6 +619,16 @@ PIRectd PIVariant::toRect() const {
|
||||
}
|
||||
|
||||
|
||||
/** @brief Returns variant content as rect
|
||||
* \details In case of PILined type returns line value. \n
|
||||
* In case of other types returns empty PILined. */
|
||||
PILined PIVariant::toLine() const {
|
||||
PIByteArray ba(_content);
|
||||
if (_type == PIVariant::pivLine) {PILined r; ba >> r; return r;}
|
||||
return PILined();
|
||||
}
|
||||
|
||||
|
||||
/** @brief Returns variant content as math vector
|
||||
* \details In case of PIMathVectord type returns rect value. \n
|
||||
* In case of other types returns empty PIMathVectord. */
|
||||
|
||||
Reference in New Issue
Block a user