mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4683 clang-format on all files in ApplicationCode
This commit is contained in:
@@ -1,33 +1,33 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2018- Equinor ASA
|
||||
//
|
||||
//
|
||||
// ResInsight is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
//
|
||||
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
// for more details.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cafAppEnum.h"
|
||||
#include "cafPdmChildArrayField.h"
|
||||
#include "cafPdmField.h"
|
||||
#include "cafPdmObject.h"
|
||||
#include "cafPdmPointer.h"
|
||||
#include "cafAppEnum.h"
|
||||
#include "cafPdmUiOrdering.h"
|
||||
|
||||
// Include to make Pdm work for cvf::Color
|
||||
#include "cafPdmFieldCvfColor.h"
|
||||
#include "cafPdmChildField.h"
|
||||
#include "cafPdmFieldCvfColor.h"
|
||||
#include "cafPdmFieldCvfVec3d.h"
|
||||
#include "cafPdmProxyValueField.h"
|
||||
|
||||
@@ -58,38 +58,40 @@ public:
|
||||
RimTextAnnotation();
|
||||
~RimTextAnnotation() override;
|
||||
|
||||
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();
|
||||
bool isVisible() const;
|
||||
void enablePicking(bool enable);
|
||||
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();
|
||||
bool isVisible() const;
|
||||
void enablePicking( bool enable );
|
||||
|
||||
RimAnnotationTextAppearance* appearance() const;
|
||||
|
||||
protected:
|
||||
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
||||
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue ) override;
|
||||
caf::PdmFieldHandle* userDescriptionField() override;
|
||||
caf::PdmFieldHandle* objectToggleField() override;
|
||||
void defineEditorAttribute(const caf::PdmFieldHandle* field,
|
||||
QString uiConfigName,
|
||||
caf::PdmUiEditorAttribute* attribute) override;
|
||||
void defineEditorAttribute( const caf::PdmFieldHandle* field,
|
||||
QString uiConfigName,
|
||||
caf::PdmUiEditorAttribute* attribute ) override;
|
||||
|
||||
private:
|
||||
friend class RicTextAnnotation3dEditor;
|
||||
|
||||
QString extractNameFromText() const;
|
||||
|
||||
caf::PdmField<Vec3d> m_anchorPointXyd;
|
||||
caf::PdmField<bool> m_anchorPointPickEnabledButtonField;
|
||||
caf::PdmField<Vec3d> m_labelPointXyd;
|
||||
caf::PdmField<bool> m_labelPointPickEnabledButtonField;
|
||||
caf::PdmField<QString> m_text;
|
||||
caf::PdmField<bool> m_isActive;
|
||||
caf::PdmField<Vec3d> m_anchorPointXyd;
|
||||
caf::PdmField<bool> m_anchorPointPickEnabledButtonField;
|
||||
caf::PdmField<Vec3d> m_labelPointXyd;
|
||||
caf::PdmField<bool> m_labelPointPickEnabledButtonField;
|
||||
caf::PdmField<QString> m_text;
|
||||
caf::PdmField<bool> m_isActive;
|
||||
|
||||
caf::PdmChildField<RimAnnotationTextAppearance*> m_textAppearance;
|
||||
|
||||
@@ -97,6 +99,4 @@ private:
|
||||
|
||||
std::shared_ptr<RicVec3dPickEventHandler> m_anchorPointPickEventHandler;
|
||||
std::shared_ptr<RicVec3dPickEventHandler> m_labelPointPickEventHandler;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user