Commit db28eed0 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud

Add stream tracer.

parent fd81f6bd
......@@ -306,6 +306,7 @@ void dtkVisualizationViewer::importDataSet(const QString& path)
dtkVisualizationDecoratorSlices *decorator_slices = new dtkVisualizationDecoratorSlices;
dtkVisualizationDecoratorSnapshot *decorator_snapshot = new dtkVisualizationDecoratorSnapshot;
dtkVisualizationDecoratorVectorStreamlines *decorator_vector_streamlines = new dtkVisualizationDecoratorVectorStreamlines;
dtkVisualizationDecoratorVectorStreamTracer *decorator_vector_streamtracer = new dtkVisualizationDecoratorVectorStreamTracer;
dtkVisualizationDecoratorVolume *decorator_volume = new dtkVisualizationDecoratorVolume;
QList<dtkVisualizationDecorator *> decorators;
......@@ -315,6 +316,7 @@ void dtkVisualizationViewer::importDataSet(const QString& path)
<< decorator_scalar_isolines
<< decorator_scalar_glyphs
<< decorator_vector_streamlines
<< decorator_vector_streamtracer
<< decorator_volume
<< decorator_slices
<< decorator_axes
......
......@@ -53,6 +53,8 @@ set(${PROJECT_NAME}_HEADERS
dtkVisualizationDecoratorSnapshot.h
dtkVisualizationDecoratorVectorStreamlines
dtkVisualizationDecoratorVectorStreamlines.h
dtkVisualizationDecoratorVectorStreamTracer
dtkVisualizationDecoratorVectorStreamTracer.h
dtkVisualizationDecoratorVolume
dtkVisualizationDecoratorVolume.h
dtkVisualizationDecoratorWithClut
......@@ -103,6 +105,7 @@ set(${PROJECT_NAME}_SOURCES
dtkVisualizationDecoratorSlices.cpp
dtkVisualizationDecoratorSnapshot.cpp
dtkVisualizationDecoratorVectorStreamlines.cpp
dtkVisualizationDecoratorVectorStreamTracer.cpp
dtkVisualizationDecoratorVolume.cpp
dtkVisualizationDecoratorWithClut.cpp
dtkVisualizationMetaType.cpp
......
......@@ -15,6 +15,7 @@
#include "dtkVisualizationDecoratorSlices.h"
#include "dtkVisualizationDecoratorSnapshot.h"
#include "dtkVisualizationDecoratorVectorStreamlines.h"
#include "dtkVisualizationDecoratorVectorStreamTracer.h"
#include "dtkVisualizationDecoratorVolume.h"
#include "dtkVisualizationDecoratorWithClut.h"
#include "dtkVisualizationMetaType.h"
......
#include "dtkVisualizationDecoratorVectorStreamTracer.h"
// dtkVisualizationDecoratorVectorStreamTracer.h
//
#pragma once
#include <dtkVisualizationExport>
#include "dtkVisualizationDecoratorWithClut.h"
class DTKVISUALIZATION_EXPORT dtkVisualizationDecoratorVectorStreamTracer : public dtkVisualizationDecoratorWithClut
{
Q_OBJECT
public:
dtkVisualizationDecoratorVectorStreamTracer(void);
~dtkVisualizationDecoratorVectorStreamTracer(void);
public:
void setData(const QVariant&) override;
void setCanvas(dtkVisualizationCanvas *) override;
void unsetCanvas(void) override;
void touch(void) override;
protected:
void restoreSettings(void) override;
bool setCurrentFieldName(const QString&) override;
void setColorMap(const QMap<double, QColor>&) override;
public:
void setVisibility(bool visible) override;
protected:
bool isCurrentFieldUniform(void);
protected:
class dtkVisualizationDecoratorVectorStreamTracerPrivate *d = nullptr;
};
//
// dtkVisualizationDecoratorVectorStreamTracer.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