mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3944 clang-tidy : Apply clang-tidy on caf
This commit is contained in:
parent
cee966a6d1
commit
65ee55c96d
@ -141,11 +141,11 @@ public:
|
|||||||
void enableLighting(bool enableLighting) { m_enableLighting = enableLighting; }
|
void enableLighting(bool enableLighting) { m_enableLighting = enableLighting; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool isEqual(const EffectGenerator* other) const;
|
bool isEqual(const EffectGenerator* other) const override;
|
||||||
virtual EffectGenerator* copy() const;
|
EffectGenerator* copy() const override;
|
||||||
|
|
||||||
virtual void updateForShaderBasedRendering(cvf::Effect* effect) const;
|
void updateForShaderBasedRendering(cvf::Effect* effect) const override;
|
||||||
virtual void updateForFixedFunctionRendering(cvf::Effect* effect) const;
|
void updateForFixedFunctionRendering(cvf::Effect* effect) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateCommonEffect(cvf::Effect* effect) const;
|
void updateCommonEffect(cvf::Effect* effect) const;
|
||||||
@ -183,11 +183,11 @@ public:
|
|||||||
static bool isImagesEqual(const cvf::TextureImage* texImg1, const cvf::TextureImage* texImg2);
|
static bool isImagesEqual(const cvf::TextureImage* texImg1, const cvf::TextureImage* texImg2);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool isEqual(const EffectGenerator* other) const;
|
bool isEqual(const EffectGenerator* other) const override;
|
||||||
virtual EffectGenerator* copy() const;
|
EffectGenerator* copy() const override;
|
||||||
|
|
||||||
virtual void updateForShaderBasedRendering(cvf::Effect* effect) const;
|
void updateForShaderBasedRendering(cvf::Effect* effect) const override;
|
||||||
virtual void updateForFixedFunctionRendering(cvf::Effect* effect) const;
|
void updateForFixedFunctionRendering(cvf::Effect* effect) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateCommonEffect(cvf::Effect* effect) const;
|
void updateCommonEffect(cvf::Effect* effect) const;
|
||||||
@ -219,11 +219,11 @@ public:
|
|||||||
void setUndefinedColor(cvf::Color3f color) { m_undefinedColor = color; }
|
void setUndefinedColor(cvf::Color3f color) { m_undefinedColor = color; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool isEqual(const EffectGenerator* other) const;
|
bool isEqual(const EffectGenerator* other) const override;
|
||||||
virtual EffectGenerator* copy() const;
|
EffectGenerator* copy() const override;
|
||||||
|
|
||||||
virtual void updateForShaderBasedRendering(cvf::Effect* effect) const;
|
void updateForShaderBasedRendering(cvf::Effect* effect) const override;
|
||||||
virtual void updateForFixedFunctionRendering(cvf::Effect* effect) const;
|
void updateForFixedFunctionRendering(cvf::Effect* effect) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateCommonEffect(cvf::Effect* effect) const;
|
void updateCommonEffect(cvf::Effect* effect) const;
|
||||||
@ -249,11 +249,11 @@ public:
|
|||||||
void setLineWidth(float lineWidth);
|
void setLineWidth(float lineWidth);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool isEqual(const EffectGenerator* other) const;
|
bool isEqual(const EffectGenerator* other) const override;
|
||||||
virtual EffectGenerator* copy() const;
|
EffectGenerator* copy() const override;
|
||||||
|
|
||||||
virtual void updateForShaderBasedRendering(cvf::Effect* effect) const;
|
void updateForShaderBasedRendering(cvf::Effect* effect) const override;
|
||||||
virtual void updateForFixedFunctionRendering(cvf::Effect* effect) const;
|
void updateForFixedFunctionRendering(cvf::Effect* effect) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cvf::Color3f m_color;
|
cvf::Color3f m_color;
|
||||||
@ -273,11 +273,11 @@ public:
|
|||||||
TextEffectGenerator();
|
TextEffectGenerator();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool isEqual(const EffectGenerator* other) const;
|
bool isEqual(const EffectGenerator* other) const override;
|
||||||
virtual EffectGenerator* copy() const;
|
EffectGenerator* copy() const override;
|
||||||
|
|
||||||
virtual void updateForShaderBasedRendering(cvf::Effect* effect) const;
|
void updateForShaderBasedRendering(cvf::Effect* effect) const override;
|
||||||
virtual void updateForFixedFunctionRendering(cvf::Effect* effect) const;
|
void updateForFixedFunctionRendering(cvf::Effect* effect) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -292,10 +292,10 @@ public:
|
|||||||
VectorEffectGenerator();
|
VectorEffectGenerator();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool isEqual(const EffectGenerator* other) const;
|
bool isEqual(const EffectGenerator* other) const override;
|
||||||
virtual EffectGenerator* copy() const;
|
EffectGenerator* copy() const override;
|
||||||
|
|
||||||
virtual void updateForShaderBasedRendering(cvf::Effect* effect) const;
|
void updateForShaderBasedRendering(cvf::Effect* effect) const override;
|
||||||
virtual void updateForFixedFunctionRendering(cvf::Effect* effect) const;
|
void updateForFixedFunctionRendering(cvf::Effect* effect) const override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ public:
|
|||||||
void showWarning(QString warn);
|
void showWarning(QString warn);
|
||||||
void showError(QString error);
|
void showError(QString error);
|
||||||
|
|
||||||
virtual QSize sizeHint () const;
|
QSize sizeHint () const override;
|
||||||
bool isVisibleToUser();
|
bool isVisibleToUser();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QGraphicsSceneMouseEvent>
|
#include <QGraphicsSceneMouseEvent>
|
||||||
|
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
namespace caf {
|
namespace caf {
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ class StructGridGeometryGenerator : public Object
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit StructGridGeometryGenerator(const StructGridInterface* grid, bool useOpenMP);
|
explicit StructGridGeometryGenerator(const StructGridInterface* grid, bool useOpenMP);
|
||||||
~StructGridGeometryGenerator();
|
~StructGridGeometryGenerator() override;
|
||||||
|
|
||||||
// Setup methods
|
// Setup methods
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ namespace caf
|
|||||||
class ObjectCreator : public ObjectCreatorBase
|
class ObjectCreator : public ObjectCreatorBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual BaseType * create() { return new TypeToCreate(); }
|
BaseType * create() override { return new TypeToCreate(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
// Map to store factory
|
// Map to store factory
|
||||||
|
@ -66,7 +66,7 @@ public:
|
|||||||
PdmDataValueField() {}
|
PdmDataValueField() {}
|
||||||
PdmDataValueField(const PdmDataValueField& other) { m_fieldValue = other.m_fieldValue; }
|
PdmDataValueField(const PdmDataValueField& other) { m_fieldValue = other.m_fieldValue; }
|
||||||
explicit PdmDataValueField(const DataType& fieldValue) { m_fieldValue = fieldValue; }
|
explicit PdmDataValueField(const DataType& fieldValue) { m_fieldValue = fieldValue; }
|
||||||
virtual ~PdmDataValueField() {}
|
~PdmDataValueField() override {}
|
||||||
|
|
||||||
// Assignment
|
// Assignment
|
||||||
|
|
||||||
@ -81,9 +81,9 @@ public:
|
|||||||
|
|
||||||
// Implementation of PdmValueField interface
|
// Implementation of PdmValueField interface
|
||||||
|
|
||||||
virtual QVariant toQVariant() const { CAF_ASSERT(isInitializedByInitFieldMacro()); return PdmValueFieldSpecialization<DataType>::convert(m_fieldValue); }
|
QVariant toQVariant() const override { CAF_ASSERT(isInitializedByInitFieldMacro()); return PdmValueFieldSpecialization<DataType>::convert(m_fieldValue); }
|
||||||
virtual void setFromQVariant(const QVariant& variant) { CAF_ASSERT(isInitializedByInitFieldMacro()); PdmValueFieldSpecialization<DataType>::setFromVariant(variant, m_fieldValue); }
|
void setFromQVariant(const QVariant& variant) override { CAF_ASSERT(isInitializedByInitFieldMacro()); PdmValueFieldSpecialization<DataType>::setFromVariant(variant, m_fieldValue); }
|
||||||
virtual bool isReadOnly() const { return false; }
|
bool isReadOnly() const override { return false; }
|
||||||
|
|
||||||
// Access operators
|
// Access operators
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class PdmProxyValueField : public PdmValueField
|
|||||||
public:
|
public:
|
||||||
typedef DataType FieldDataType;
|
typedef DataType FieldDataType;
|
||||||
PdmProxyValueField() { m_valueSetter = NULL; m_valueGetter = NULL; }
|
PdmProxyValueField() { m_valueSetter = NULL; m_valueGetter = NULL; }
|
||||||
virtual ~PdmProxyValueField() { if (m_valueSetter) delete m_valueSetter; if (m_valueGetter) delete m_valueGetter; }
|
~PdmProxyValueField() override { if (m_valueSetter) delete m_valueSetter; if (m_valueGetter) delete m_valueGetter; }
|
||||||
|
|
||||||
// Assignment
|
// Assignment
|
||||||
|
|
||||||
@ -36,9 +36,9 @@ public:
|
|||||||
|
|
||||||
// Implementation of PdmValueField interface
|
// Implementation of PdmValueField interface
|
||||||
|
|
||||||
virtual QVariant toQVariant() const { DataType val = value(); return PdmValueFieldSpecialization<DataType>::convert(val); }
|
QVariant toQVariant() const override { DataType val = value(); return PdmValueFieldSpecialization<DataType>::convert(val); }
|
||||||
virtual void setFromQVariant(const QVariant& variant) { DataType val; PdmValueFieldSpecialization<DataType>::setFromVariant(variant, val); setValue(val); }
|
void setFromQVariant(const QVariant& variant) override { DataType val; PdmValueFieldSpecialization<DataType>::setFromVariant(variant, val); setValue(val); }
|
||||||
virtual bool isReadOnly() const { if (!m_valueSetter) { return true; } else { return false; } }
|
bool isReadOnly() const override { if (!m_valueSetter) { return true; } else { return false; } }
|
||||||
|
|
||||||
// Access operators
|
// Access operators
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
|
|
||||||
PdmPtrField() : m_isResolved(false) { }
|
PdmPtrField() : m_isResolved(false) { }
|
||||||
explicit PdmPtrField(const DataTypePtr& fieldValue);
|
explicit PdmPtrField(const DataTypePtr& fieldValue);
|
||||||
virtual ~PdmPtrField();
|
~PdmPtrField() override;
|
||||||
|
|
||||||
// Assignment
|
// Assignment
|
||||||
|
|
||||||
@ -52,9 +52,9 @@ public:
|
|||||||
void setValue(const DataTypePtr& fieldValue);
|
void setValue(const DataTypePtr& fieldValue);
|
||||||
|
|
||||||
// QVariant access
|
// QVariant access
|
||||||
virtual QVariant toQVariant() const override;
|
QVariant toQVariant() const override;
|
||||||
virtual void setFromQVariant(const QVariant& variant) override;
|
void setFromQVariant(const QVariant& variant) override;
|
||||||
virtual bool isReadOnly() const override { return false; }
|
bool isReadOnly() const override { return false; }
|
||||||
|
|
||||||
// Access operators
|
// Access operators
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ public:
|
|||||||
|
|
||||||
// Ptr referenced objects
|
// Ptr referenced objects
|
||||||
|
|
||||||
virtual void ptrReferencedObjects(std::vector<PdmObjectHandle*>* objectsToFill);
|
void ptrReferencedObjects(std::vector<PdmObjectHandle*>* objectsToFill) override;
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "cvfSystem.h"
|
#include "cvfSystem.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "cvfMatrix3.h"
|
#include "cvfMatrix3.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
namespace caf {
|
namespace caf {
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ public:
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void keyPressEvent(QKeyEvent *event)
|
void keyPressEvent(QKeyEvent *event) override
|
||||||
{
|
{
|
||||||
QTreeView::keyPressEvent(event);
|
QTreeView::keyPressEvent(event);
|
||||||
|
|
||||||
|
@ -46,9 +46,9 @@ class CadNavigation : public TrackBallBasedNavigation
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CadNavigation();
|
CadNavigation();
|
||||||
virtual ~CadNavigation();
|
~CadNavigation() override;
|
||||||
protected:
|
protected:
|
||||||
virtual bool handleInputEvent(QInputEvent* inputEvent);
|
bool handleInputEvent(QInputEvent* inputEvent) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End namespace caf
|
} // End namespace caf
|
||||||
|
@ -50,14 +50,14 @@ class CeetronNavigation : public NavigationPolicy
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CeetronNavigation();
|
CeetronNavigation();
|
||||||
virtual ~CeetronNavigation();
|
~CeetronNavigation() override;
|
||||||
protected:
|
protected:
|
||||||
// General navigation policy reimplememtation
|
// General navigation policy reimplememtation
|
||||||
virtual void init();
|
void init() override;
|
||||||
virtual bool handleInputEvent(QInputEvent* inputEvent);
|
bool handleInputEvent(QInputEvent* inputEvent) override;
|
||||||
virtual void setView( const cvf::Vec3d& alongDirection, const cvf::Vec3d& upDirection );
|
void setView( const cvf::Vec3d& alongDirection, const cvf::Vec3d& upDirection ) override;
|
||||||
virtual cvf::Vec3d pointOfInterest();
|
cvf::Vec3d pointOfInterest() override;
|
||||||
virtual void setPointOfInterest(cvf::Vec3d poi);
|
void setPointOfInterest(cvf::Vec3d poi) override;
|
||||||
|
|
||||||
// Ceetron navigation stuff
|
// Ceetron navigation stuff
|
||||||
void mouseMoveEvent(QMouseEvent* event);
|
void mouseMoveEvent(QMouseEvent* event);
|
||||||
|
@ -44,9 +44,9 @@ class CeetronPlusNavigation : public TrackBallBasedNavigation
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CeetronPlusNavigation();
|
CeetronPlusNavigation();
|
||||||
virtual ~CeetronPlusNavigation();
|
~CeetronPlusNavigation() override;
|
||||||
protected:
|
protected:
|
||||||
virtual bool handleInputEvent(QInputEvent* inputEvent);
|
bool handleInputEvent(QInputEvent* inputEvent) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End namespace caf
|
} // End namespace caf
|
||||||
|
@ -57,7 +57,7 @@ class NavigationPolicy : public cvf::Object
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NavigationPolicy();
|
NavigationPolicy();
|
||||||
virtual ~NavigationPolicy();
|
~NavigationPolicy() override;
|
||||||
|
|
||||||
friend class Viewer;
|
friend class Viewer;
|
||||||
public: // protected: // Should be protected but this friending does not work on gcc 4.1.2
|
public: // protected: // Should be protected but this friending does not work on gcc 4.1.2
|
||||||
|
@ -59,17 +59,17 @@ class TrackBallBasedNavigation: public NavigationPolicy
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TrackBallBasedNavigation();
|
TrackBallBasedNavigation();
|
||||||
virtual ~TrackBallBasedNavigation();
|
~TrackBallBasedNavigation() override;
|
||||||
void enableEventEating(bool enable) { m_consumeEvents = enable; }
|
void enableEventEating(bool enable) { m_consumeEvents = enable; }
|
||||||
void enableRotation(bool enable) { m_isRotationEnabled = enable; }
|
void enableRotation(bool enable) { m_isRotationEnabled = enable; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// General navigation policy overrides
|
// General navigation policy overrides
|
||||||
virtual void init();
|
void init() override;
|
||||||
|
|
||||||
virtual void setView( const cvf::Vec3d& alongDirection, const cvf::Vec3d& upDirection );
|
void setView( const cvf::Vec3d& alongDirection, const cvf::Vec3d& upDirection ) override;
|
||||||
virtual cvf::Vec3d pointOfInterest();
|
cvf::Vec3d pointOfInterest() override;
|
||||||
virtual void setPointOfInterest(cvf::Vec3d poi);
|
void setPointOfInterest(cvf::Vec3d poi) override;
|
||||||
void updatePointOfInterestDuringZoomIfNecessary(int zoomX, int zoomY);
|
void updatePointOfInterestDuringZoomIfNecessary(int zoomX, int zoomY);
|
||||||
void forcePointOfInterestUpdateDuringNextWheelZoom();
|
void forcePointOfInterestUpdateDuringNextWheelZoom();
|
||||||
|
|
||||||
|
@ -90,13 +90,13 @@ public:
|
|||||||
m_uniformSet->setUniform(m_headlightPosition.p());
|
m_uniformSet->setUniform(m_headlightPosition.p());
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~GlobalViewerDynUniformSet() {}
|
~GlobalViewerDynUniformSet() override {}
|
||||||
|
|
||||||
void setHeadLightPosition(const cvf::Vec3f posRelativeToCamera) { m_headlightPosition->set(posRelativeToCamera);}
|
void setHeadLightPosition(const cvf::Vec3f posRelativeToCamera) { m_headlightPosition->set(posRelativeToCamera);}
|
||||||
|
|
||||||
|
|
||||||
virtual cvf::UniformSet* uniformSet() { return m_uniformSet.p(); }
|
cvf::UniformSet* uniformSet() override { return m_uniformSet.p(); }
|
||||||
virtual void update(cvf::Rendering* rendering){};
|
void update(cvf::Rendering* rendering) override{};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cvf::ref<cvf::UniformSet> m_uniformSet;
|
cvf::ref<cvf::UniformSet> m_uniformSet;
|
||||||
|
@ -81,7 +81,7 @@ class Viewer : public caf::OpenGLWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Viewer(const QGLFormat& format, QWidget* parent);
|
Viewer(const QGLFormat& format, QWidget* parent);
|
||||||
~Viewer();
|
~Viewer() override;
|
||||||
|
|
||||||
QWidget* layoutWidget() { return m_layoutWidget; } // Use this when putting it into something
|
QWidget* layoutWidget() { return m_layoutWidget; } // Use this when putting it into something
|
||||||
cvf::Camera* mainCamera();
|
cvf::Camera* mainCamera();
|
||||||
@ -159,7 +159,7 @@ public slots:
|
|||||||
virtual void slotEndAnimation();
|
virtual void slotEndAnimation();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual QSize sizeHint() const;
|
QSize sizeHint() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Method to override if painting directly on the OpenGl Canvas is needed.
|
// Method to override if painting directly on the OpenGl Canvas is needed.
|
||||||
@ -169,11 +169,11 @@ protected:
|
|||||||
virtual void optimizeClippingPlanes();
|
virtual void optimizeClippingPlanes();
|
||||||
|
|
||||||
// Standard overrides. Not for overriding
|
// Standard overrides. Not for overriding
|
||||||
virtual void resizeGL(int width, int height);
|
void resizeGL(int width, int height) override;
|
||||||
virtual void paintEvent(QPaintEvent* event);
|
void paintEvent(QPaintEvent* event) override;
|
||||||
|
|
||||||
// Support the navigation policy concept
|
// Support the navigation policy concept
|
||||||
virtual bool event( QEvent* e );
|
bool event( QEvent* e ) override;
|
||||||
|
|
||||||
cvf::ref<caf::NavigationPolicy> m_navigationPolicy;
|
cvf::ref<caf::NavigationPolicy> m_navigationPolicy;
|
||||||
bool m_navigationPolicyEnabled;
|
bool m_navigationPolicyEnabled;
|
||||||
|
@ -23,7 +23,7 @@ class BoxManipulatorGeometryGenerator : public cvf::Object
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BoxManipulatorGeometryGenerator();
|
BoxManipulatorGeometryGenerator();
|
||||||
~BoxManipulatorGeometryGenerator();
|
~BoxManipulatorGeometryGenerator() override;
|
||||||
|
|
||||||
void setOrigin(const cvf::Vec3d& origin);
|
void setOrigin(const cvf::Vec3d& origin);
|
||||||
void setSize(const cvf::Vec3d& size);
|
void setSize(const cvf::Vec3d& size);
|
||||||
|
@ -49,7 +49,7 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
BoxManipulatorPartManager();
|
BoxManipulatorPartManager();
|
||||||
~BoxManipulatorPartManager();
|
~BoxManipulatorPartManager() override;
|
||||||
|
|
||||||
void setOrigin(const cvf::Vec3d& origin);
|
void setOrigin(const cvf::Vec3d& origin);
|
||||||
void setSize(const cvf::Vec3d& size);
|
void setSize(const cvf::Vec3d& size);
|
||||||
|
@ -28,7 +28,7 @@ class CategoryLegend : public caf::TitledOverlayFrame
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CategoryLegend(cvf::Font* font, const CategoryMapper* categoryMapper);
|
CategoryLegend(cvf::Font* font, const CategoryMapper* categoryMapper);
|
||||||
virtual ~CategoryLegend();
|
~CategoryLegend() override;
|
||||||
|
|
||||||
size_t categoryCount() const;
|
size_t categoryCount() const;
|
||||||
|
|
||||||
|
@ -30,14 +30,14 @@ public:
|
|||||||
|
|
||||||
// Overrides used from legend
|
// Overrides used from legend
|
||||||
|
|
||||||
virtual cvf::Vec2f mapToTextureCoord(double scalarValue) const;
|
cvf::Vec2f mapToTextureCoord(double scalarValue) const override;
|
||||||
virtual bool updateTexture(cvf::TextureImage* image) const;
|
bool updateTexture(cvf::TextureImage* image) const override;
|
||||||
|
|
||||||
virtual cvf::Color3ub mapToColor(double normalizedValue) const;
|
cvf::Color3ub mapToColor(double normalizedValue) const override;
|
||||||
|
|
||||||
virtual void majorTickValues(std::vector<double>* domainValues) const;
|
void majorTickValues(std::vector<double>* domainValues) const override;
|
||||||
virtual double normalizedValue(double domainValue) const;
|
double normalizedValue(double domainValue) const override;
|
||||||
virtual double domainValue(double normalizedValue) const;
|
double domainValue(double normalizedValue) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class CategoryLegend;
|
friend class CategoryLegend;
|
||||||
|
@ -73,12 +73,12 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FixedAtlasFont(FontSize size);
|
explicit FixedAtlasFont(FontSize size);
|
||||||
virtual ~FixedAtlasFont();
|
~FixedAtlasFont() override;
|
||||||
|
|
||||||
virtual const cvf::String& name() const;
|
const cvf::String& name() const override;
|
||||||
virtual cvf::ref<cvf::Glyph> getGlyph(wchar_t character);
|
cvf::ref<cvf::Glyph> getGlyph(wchar_t character) override;
|
||||||
virtual cvf::uint advance(wchar_t character, wchar_t nextCharacter);
|
cvf::uint advance(wchar_t character, wchar_t nextCharacter) override;
|
||||||
virtual bool isEmpty();
|
bool isEmpty() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Load/unload font
|
// Load/unload font
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "cafHexGridIntersectionTools.h"
|
#include "cafHexGridIntersectionTools.h"
|
||||||
|
|
||||||
#include "cvfPlane.h"
|
#include "cvfPlane.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ class OverlayScalarMapperLegend : public caf::TitledOverlayFrame
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
OverlayScalarMapperLegend(Font* font);
|
OverlayScalarMapperLegend(Font* font);
|
||||||
virtual ~OverlayScalarMapperLegend();
|
~OverlayScalarMapperLegend() override;
|
||||||
|
|
||||||
void setScalarMapper(const ScalarMapper* scalarMapper);
|
void setScalarMapper(const ScalarMapper* scalarMapper);
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ public:
|
|||||||
enum NumberFormat { AUTO, SCIENTIFIC, FIXED};
|
enum NumberFormat { AUTO, SCIENTIFIC, FIXED};
|
||||||
void setTickFormat(NumberFormat format);
|
void setTickFormat(NumberFormat format);
|
||||||
|
|
||||||
virtual cvf::Vec2ui preferredSize() override;
|
cvf::Vec2ui preferredSize() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void render(OpenGLContext* oglContext, const Vec2i& position, const Vec2ui& size) override;
|
void render(OpenGLContext* oglContext, const Vec2i& position, const Vec2ui& size) override;
|
||||||
|
@ -80,7 +80,7 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
OverlayScaleLegend(Font* font);
|
OverlayScaleLegend(Font* font);
|
||||||
virtual ~OverlayScaleLegend();
|
~OverlayScaleLegend() override;
|
||||||
|
|
||||||
void setTickPrecision(int precision);
|
void setTickPrecision(int precision);
|
||||||
enum NumberFormat { AUTO, SCIENTIFIC, FIXED};
|
enum NumberFormat { AUTO, SCIENTIFIC, FIXED};
|
||||||
@ -88,7 +88,7 @@ public:
|
|||||||
void setOrientation(Orientation orientation);
|
void setOrientation(Orientation orientation);
|
||||||
Orientation orientation() const;
|
Orientation orientation() const;
|
||||||
|
|
||||||
virtual cvf::Vec2ui preferredSize() override;
|
cvf::Vec2ui preferredSize() override;
|
||||||
|
|
||||||
void setDisplayCoordTransform(const caf::DisplayCoordTransform* displayCoordTransform);
|
void setDisplayCoordTransform(const caf::DisplayCoordTransform* displayCoordTransform);
|
||||||
void updateFromCamera(const Camera* camera);
|
void updateFromCamera(const Camera* camera);
|
||||||
|
@ -56,7 +56,7 @@ namespace caf {
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TitledOverlayFrame(cvf::Font* font, unsigned int width = 100, unsigned int height = 200);
|
TitledOverlayFrame(cvf::Font* font, unsigned int width = 100, unsigned int height = 200);
|
||||||
virtual ~TitledOverlayFrame();
|
~TitledOverlayFrame() override;
|
||||||
|
|
||||||
void setRenderSize(const cvf::Vec2ui& size);
|
void setRenderSize(const cvf::Vec2ui& size);
|
||||||
cvf::Vec2ui renderSize() const;
|
cvf::Vec2ui renderSize() const;
|
||||||
@ -85,7 +85,7 @@ namespace caf {
|
|||||||
cvf::Font* font();
|
cvf::Font* font();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cvf::Vec2ui sizeHint() override final; // Will return the size to use for rendering, and is really not a hint.
|
cvf::Vec2ui sizeHint() final; // Will return the size to use for rendering, and is really not a hint.
|
||||||
cvf::Vec2ui m_renderSize; // The rendered size of the color legend area in pixels
|
cvf::Vec2ui m_renderSize; // The rendered size of the color legend area in pixels
|
||||||
|
|
||||||
cvf::Color3f m_textColor;
|
cvf::Color3f m_textColor;
|
||||||
|
@ -128,8 +128,8 @@ public:
|
|||||||
CVF_ASSERT(renderConfiguration);
|
CVF_ASSERT(renderConfiguration);
|
||||||
m_renderConfiguration = renderConfiguration;
|
m_renderConfiguration = renderConfiguration;
|
||||||
}
|
}
|
||||||
virtual cvf::UniformSet* uniformSet() { return nullptr; }
|
cvf::UniformSet* uniformSet() override { return nullptr; }
|
||||||
virtual void update(cvf::Rendering* rendering)
|
void update(cvf::Rendering* rendering) override
|
||||||
{
|
{
|
||||||
m_renderConfiguration->updateEffectsForRendering(rendering);
|
m_renderConfiguration->updateEffectsForRendering(rendering);
|
||||||
}
|
}
|
||||||
@ -151,7 +151,7 @@ public:
|
|||||||
m_isOpaquePass = isOpaquePass;
|
m_isOpaquePass = isOpaquePass;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void sort(cvf::RenderQueue* renderQueue) const
|
void sort(cvf::RenderQueue* renderQueue) const override
|
||||||
{
|
{
|
||||||
using namespace cvf;
|
using namespace cvf;
|
||||||
std::vector<RenderItem*>* renderItems = renderQueue->renderItemsForSorting();
|
std::vector<RenderItem*>* renderItems = renderQueue->renderItemsForSorting();
|
||||||
|
@ -28,7 +28,7 @@ namespace caf
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TransparentWBRenderConfiguration();
|
TransparentWBRenderConfiguration();
|
||||||
virtual ~TransparentWBRenderConfiguration();
|
~TransparentWBRenderConfiguration() override;
|
||||||
|
|
||||||
void resize(int width, int height);
|
void resize(int width, int height);
|
||||||
void prepareForRendering(); // UpdateCameras and scene ...
|
void prepareForRendering(); // UpdateCameras and scene ...
|
||||||
@ -79,14 +79,14 @@ namespace caf
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WBTransparencySurfaceEffectGenerator(const cvf::Color4f& color, caf::PolygonOffset polygonOffset, bool useSpecular);
|
WBTransparencySurfaceEffectGenerator(const cvf::Color4f& color, caf::PolygonOffset polygonOffset, bool useSpecular);
|
||||||
~WBTransparencySurfaceEffectGenerator();
|
~WBTransparencySurfaceEffectGenerator() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool isEqual(const EffectGenerator* other) const;
|
bool isEqual(const EffectGenerator* other) const override;
|
||||||
virtual EffectGenerator* copy() const;
|
EffectGenerator* copy() const override;
|
||||||
|
|
||||||
virtual void updateForShaderBasedRendering(cvf::Effect* effect) const;
|
void updateForShaderBasedRendering(cvf::Effect* effect) const override;
|
||||||
virtual void updateForFixedFunctionRendering(cvf::Effect* effect) const;
|
void updateForFixedFunctionRendering(cvf::Effect* effect) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateCommonEffect(cvf::Effect* effect) const;
|
void updateCommonEffect(cvf::Effect* effect) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user