Merge pull request #13627 from wwmayer/fix_datum_label

Gui: Fix datum label
This commit is contained in:
Chris Hennes
2024-05-20 11:03:38 -05:00
committed by GitHub
2 changed files with 735 additions and 656 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -105,6 +105,15 @@ private:
SbVec3f getLabelTextCenterDiameter(const SbVec3f&, const SbVec3f&);
SbVec3f getLabelTextCenterAngle(const SbVec3f&);
SbVec3f getLabelTextCenterArcLength(const SbVec3f&, const SbVec3f&, const SbVec3f&);
bool hasDatumText() const;
void getDimension(float scale, int& srcw, int& srch);
void drawDistance(const SbVec3f* points, float scale, int srch, float& angle, SbVec3f& textOffset);
void drawDistance(const SbVec3f* points);
void drawRadiusOrDiameter(const SbVec3f* points, float& angle, SbVec3f& textOffset);
void drawAngle(const SbVec3f* points, float& angle, SbVec3f& textOffset);
void drawSymmetric(const SbVec3f* points);
void drawArcLength(const SbVec3f* points, float& angle, SbVec3f& textOffset);
void drawText(SoState *state, int srcw, int srch, float angle, const SbVec3f& textOffset);
private:
void drawImage();