mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3757 New feature to add a text annotation in the 3D view
This commit is contained in:
@@ -64,6 +64,15 @@ cvf::Vec3d RimTextAnnotation::anchorPoint() const
|
||||
return pos;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimTextAnnotation::setAnchorPoint(const Vec3d & pointXyz)
|
||||
{
|
||||
m_anchorPointXyd = pointXyz;
|
||||
m_anchorPointXyd.v().z() *= -1;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -74,6 +83,15 @@ cvf::Vec3d RimTextAnnotation::labelPoint() const
|
||||
return pos;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimTextAnnotation::setLabelPoint(const Vec3d & pointXyz)
|
||||
{
|
||||
m_labelPointXyd = pointXyz;
|
||||
m_labelPointXyd.v().z() *= -1;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -54,7 +54,9 @@ public:
|
||||
~RimTextAnnotation();
|
||||
|
||||
Vec3d anchorPoint() const;
|
||||
void setAnchorPoint(const Vec3d & pointXyz) ;
|
||||
Vec3d labelPoint() const;
|
||||
void setLabelPoint(const Vec3d & pointXyz) ;
|
||||
void setText(const QString& text);
|
||||
const QString& text() const;
|
||||
bool isActive();
|
||||
|
||||
Reference in New Issue
Block a user