Optionally show polygon geometry info as text label

This commit is contained in:
Magne Sjaastad authored and GitHub committed 2025-05-30 08:20:43 +02:00
1 parent 118ecf941a
commit e492685070
13 files changed
+241 -120

No files matched your search

@@ -21,11 +21,15 @@
#include "cvfObject.h"
#include <cvfVector3.h>
#include <QString>
#include <vector>
namespace cvf
{
class DrawableGeo;
class DrawableText;
class Camera;
} // namespace cvf
//==================================================================================================
@@ -42,4 +46,7 @@ public:
static cvf::ref<cvf::DrawableGeo> createPointsFromPolylineDrawable( const std::vector<std::vector<cvf::Vec3d>>& polyLines );
static cvf::ref<cvf::DrawableGeo> createSetOfLines( const std::vector<std::vector<cvf::Vec3d>>& lines );
static cvf::ref<cvf::DrawableText>
createOrientedLabel( bool negativeXDirection, const cvf::Camera* camera, const cvf::Vec3d& labelPosition, const QString& labelText );
};