Gui: refactor SoDatumLabel::GLRender()

This commit is contained in:
wmayer
2024-04-24 16:48:11 +02:00
committed by Chris Hennes
parent a2003d4a08
commit 1a01ca17dd
2 changed files with 633 additions and 578 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();