dtkVisualizationDecoratorScalarIsolines.h 1.38 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// Version: $Id$
//
//

// Commentary:
//
//

// Change Log:
//
//

// Code:

#pragma once

#include <dtkVisualizationExport>

19 20
#include <QtCore>

21 22
#include "dtkVisualizationDecorator.h"

23 24 25 26
#include <vtkSmartPointer.h>
#include <vtkColorTransferFunction.h>
#include <vtkPiecewiseFunction.h>

27
// ///////////////////////////////////////////////////////////////////
28
// dtkVisualizationDecoratorScalarIsolines declaration
29 30
// ///////////////////////////////////////////////////////////////////

31
class DTKVISUALIZATION_EXPORT dtkVisualizationDecoratorScalarIsolines : public dtkVisualizationDecorator
32
{
33
    Q_OBJECT
34
public:
CABEL Tristan's avatar
CABEL Tristan committed
35
     dtkVisualizationDecoratorScalarIsolines(const QString& name="");
36
    ~dtkVisualizationDecoratorScalarIsolines(void);
37 38

public:
39
    void setData(const QVariant&)            override;
40
    void setCanvas(dtkVisualizationCanvas *) override;
41
    void unsetCanvas(void)                   override;
42

43 44 45
public:
    void show(void);
    void hide(void);
46

47
public:
48 49
    void setCurrentIsolinesRange(double, double);
    void setCurrentIsolinesCount(std::size_t);
50 51

signals:
52 53
    void currentIsolinesRangeChanged(double, double);
    void currentIsolinesCountChanged(std::size_t);
54

55
protected:
56
    bool setCurrentFieldName(const QString&);
57 58
    void draw(void) override;

59
protected:
60
    class dtkVisualizationDecoratorScalarIsolinesPrivate *d = nullptr;
61 62 63
};

//
64
// dtkVisualizationDecoratorScalarIsolines.h ends here