mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3757 Wip: Add draggers to text annotation points when text is selected
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "RimGridView.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimAnnotationCollection.h"
|
||||
#include "AnnotationCommands/RicTextAnnotation3dEditor.h"
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimTextAnnotation, "RimTextAnnotation");
|
||||
@@ -33,6 +34,8 @@ CAF_PDM_SOURCE_INIT(RimTextAnnotation, "RimTextAnnotation");
|
||||
RimTextAnnotation::RimTextAnnotation()
|
||||
{
|
||||
CAF_PDM_InitObject("TextAnnotation", ":/TextAnnotation16x16.png", "", "");
|
||||
this->setUi3dEditorTypeName(RicTextAnnotation3dEditor::uiEditorTypeName());
|
||||
|
||||
|
||||
CAF_PDM_InitField(&m_anchorPointXyd, "AnchorPointXyd", Vec3d::ZERO, "Anchor Point", "", "", "");
|
||||
CAF_PDM_InitField(&m_labelPointXyd, "LabelPointXyd", Vec3d::ZERO, "Label Point", "", "", "");
|
||||
|
||||
@@ -66,6 +66,8 @@ protected:
|
||||
virtual caf::PdmFieldHandle* objectToggleField() override;
|
||||
|
||||
private:
|
||||
friend class RicTextAnnotation3dEditor;
|
||||
|
||||
caf::PdmField<Vec3d> m_anchorPointXyd;
|
||||
caf::PdmField<Vec3d> m_labelPointXyd;
|
||||
caf::PdmField<QString> m_text;
|
||||
|
||||
Reference in New Issue
Block a user