Towards scalar field visualization.

parent 64f0cb9b
......@@ -22,11 +22,14 @@ set(${PROJECT_NAME}_HEADERS
dtkVisualizationWidgetsActorList
dtkVisualizationWidgetsActorList.h
dtkVisualizationWidgetsClutEditor
dtkVisualizationWidgetsClutEditor.h)
dtkVisualizationWidgetsClutEditor.h
dtkVisualizationWidgetsFieldScalar
dtkVisualizationWidgetsFieldScalar.h)
set(${PROJECT_NAME}_SOURCES
dtkVisualizationWidgetsActorList.cpp
dtkVisualizationWidgetsClutEditor.cpp)
dtkVisualizationWidgetsClutEditor.cpp
dtkVisualizationWidgetsFieldScalar.cpp)
## #################################################################
## Build rules
......
#include "dtkVisualizationWidgetsFieldsScalar.h"
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#include "dtkVisualizationWidgetsFieldScalar.h"
#include <vtkActor.h>
#include <vtkVolume.h>
class dtkVisualizationWidgetsFieldScalarPrivate
{
public:
vtkActor *actor = Q_NULLPTR;
vtkVolume *volume = Q_NULLPTR;
public:
QComboBox *box;
};
dtkVisualizationWidgetsFieldScalar::dtkVisualizationWidgetsFieldScalar(QWidget *parent) : QWidget(parent)
{
d = new dtkVisualizationWidgetsFieldScalarPrivate;
d->box = new QComboBox(this);
QFormLayout *layout = new QFormLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(d->box);
}
dtkVisualizationWidgetsFieldScalar::~dtkVisualizationWidgetsFieldScalar(void)
{
delete d;
}
void dtkVisualizationWidgetsFieldScalar::setActor(vtkActor *actor)
{
d->actor = actor;
this->update();
}
void dtkVisualizationWidgetsFieldScalar::setVolume(vtkVolume *volume)
{
d->volume = volume;
this->update();
}
void dtkVisualizationWidgetsFieldScalar::update(void)
{
qDebug() << Q_FUNC_INFO;
}
//
// dtkVisualizationWidgetsFieldScalar.cpp ends here
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#pragma once
#include <QtWidgets>
#include <dtkVisualizationWidgetsExport>
class vtkActor;
class vtkVolume;
class DTKVISUALIZATIONWIDGETS_EXPORT dtkVisualizationWidgetsFieldScalar : public QWidget
{
Q_OBJECT
public:
dtkVisualizationWidgetsFieldScalar(QWidget *parent = Q_NULLPTR);
~dtkVisualizationWidgetsFieldScalar(void);
public slots:
void setActor(vtkActor *);
void setVolume(vtkVolume *);
public slots:
void update(void);
private:
class dtkVisualizationWidgetsFieldScalarPrivate *d;
};
//
// dtkVisualizationWidgetsFieldScalar.h ends here
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment