Commit db28eed0 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud

Add stream tracer.

parent fd81f6bd
...@@ -296,17 +296,18 @@ void dtkVisualizationViewer::importDataSet(const QString& path) ...@@ -296,17 +296,18 @@ void dtkVisualizationViewer::importDataSet(const QString& path)
QVariant data = dtk::variantFromValue(d->dataset); QVariant data = dtk::variantFromValue(d->dataset);
dtkVisualizationDecoratorInfo *decorator_info = new dtkVisualizationDecoratorInfo; dtkVisualizationDecoratorInfo *decorator_info = new dtkVisualizationDecoratorInfo;
dtkVisualizationDecoratorAxes *decorator_axes = new dtkVisualizationDecoratorAxes; dtkVisualizationDecoratorAxes *decorator_axes = new dtkVisualizationDecoratorAxes;
dtkVisualizationDecoratorDelaunay2D *decorator_delaunay_2D = new dtkVisualizationDecoratorDelaunay2D; dtkVisualizationDecoratorDelaunay2D *decorator_delaunay_2D = new dtkVisualizationDecoratorDelaunay2D;
dtkVisualizationDecoratorPoints *decorator_points = new dtkVisualizationDecoratorPoints; dtkVisualizationDecoratorPoints *decorator_points = new dtkVisualizationDecoratorPoints;
dtkVisualizationDecoratorScalarColorMap *decorator_scalar_colormap = new dtkVisualizationDecoratorScalarColorMap; dtkVisualizationDecoratorScalarColorMap *decorator_scalar_colormap = new dtkVisualizationDecoratorScalarColorMap;
dtkVisualizationDecoratorScalarGlyphs *decorator_scalar_glyphs = new dtkVisualizationDecoratorScalarGlyphs; dtkVisualizationDecoratorScalarGlyphs *decorator_scalar_glyphs = new dtkVisualizationDecoratorScalarGlyphs;
dtkVisualizationDecoratorScalarIsolines *decorator_scalar_isolines = new dtkVisualizationDecoratorScalarIsolines; dtkVisualizationDecoratorScalarIsolines *decorator_scalar_isolines = new dtkVisualizationDecoratorScalarIsolines;
dtkVisualizationDecoratorSlices *decorator_slices = new dtkVisualizationDecoratorSlices; dtkVisualizationDecoratorSlices *decorator_slices = new dtkVisualizationDecoratorSlices;
dtkVisualizationDecoratorSnapshot *decorator_snapshot = new dtkVisualizationDecoratorSnapshot; dtkVisualizationDecoratorSnapshot *decorator_snapshot = new dtkVisualizationDecoratorSnapshot;
dtkVisualizationDecoratorVectorStreamlines *decorator_vector_streamlines = new dtkVisualizationDecoratorVectorStreamlines; dtkVisualizationDecoratorVectorStreamlines *decorator_vector_streamlines = new dtkVisualizationDecoratorVectorStreamlines;
dtkVisualizationDecoratorVolume *decorator_volume = new dtkVisualizationDecoratorVolume; dtkVisualizationDecoratorVectorStreamTracer *decorator_vector_streamtracer = new dtkVisualizationDecoratorVectorStreamTracer;
dtkVisualizationDecoratorVolume *decorator_volume = new dtkVisualizationDecoratorVolume;
QList<dtkVisualizationDecorator *> decorators; QList<dtkVisualizationDecorator *> decorators;
decorators << decorator_points decorators << decorator_points
...@@ -315,6 +316,7 @@ void dtkVisualizationViewer::importDataSet(const QString& path) ...@@ -315,6 +316,7 @@ void dtkVisualizationViewer::importDataSet(const QString& path)
<< decorator_scalar_isolines << decorator_scalar_isolines
<< decorator_scalar_glyphs << decorator_scalar_glyphs
<< decorator_vector_streamlines << decorator_vector_streamlines
<< decorator_vector_streamtracer
<< decorator_volume << decorator_volume
<< decorator_slices << decorator_slices
<< decorator_axes << decorator_axes
......
...@@ -53,6 +53,8 @@ set(${PROJECT_NAME}_HEADERS ...@@ -53,6 +53,8 @@ set(${PROJECT_NAME}_HEADERS
dtkVisualizationDecoratorSnapshot.h dtkVisualizationDecoratorSnapshot.h
dtkVisualizationDecoratorVectorStreamlines dtkVisualizationDecoratorVectorStreamlines
dtkVisualizationDecoratorVectorStreamlines.h dtkVisualizationDecoratorVectorStreamlines.h
dtkVisualizationDecoratorVectorStreamTracer
dtkVisualizationDecoratorVectorStreamTracer.h
dtkVisualizationDecoratorVolume dtkVisualizationDecoratorVolume
dtkVisualizationDecoratorVolume.h dtkVisualizationDecoratorVolume.h
dtkVisualizationDecoratorWithClut dtkVisualizationDecoratorWithClut
...@@ -103,6 +105,7 @@ set(${PROJECT_NAME}_SOURCES ...@@ -103,6 +105,7 @@ set(${PROJECT_NAME}_SOURCES
dtkVisualizationDecoratorSlices.cpp dtkVisualizationDecoratorSlices.cpp
dtkVisualizationDecoratorSnapshot.cpp dtkVisualizationDecoratorSnapshot.cpp
dtkVisualizationDecoratorVectorStreamlines.cpp dtkVisualizationDecoratorVectorStreamlines.cpp
dtkVisualizationDecoratorVectorStreamTracer.cpp
dtkVisualizationDecoratorVolume.cpp dtkVisualizationDecoratorVolume.cpp
dtkVisualizationDecoratorWithClut.cpp dtkVisualizationDecoratorWithClut.cpp
dtkVisualizationMetaType.cpp dtkVisualizationMetaType.cpp
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "dtkVisualizationDecoratorSlices.h" #include "dtkVisualizationDecoratorSlices.h"
#include "dtkVisualizationDecoratorSnapshot.h" #include "dtkVisualizationDecoratorSnapshot.h"
#include "dtkVisualizationDecoratorVectorStreamlines.h" #include "dtkVisualizationDecoratorVectorStreamlines.h"
#include "dtkVisualizationDecoratorVectorStreamTracer.h"
#include "dtkVisualizationDecoratorVolume.h" #include "dtkVisualizationDecoratorVolume.h"
#include "dtkVisualizationDecoratorWithClut.h" #include "dtkVisualizationDecoratorWithClut.h"
#include "dtkVisualizationMetaType.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