-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-webui-vfr' into develop
- Loading branch information
Showing
108 changed files
with
4,111 additions
and
20,950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.11.0 | ||
0.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#ifndef VFRENDERING_DOT_RENDERER_HXX | ||
#define VFRENDERING_DOT_RENDERER_HXX | ||
|
||
#include <VFRendering/VectorFieldRenderer.hxx> | ||
|
||
namespace VFRendering { | ||
class DotRenderer : public VectorFieldRenderer { | ||
public: | ||
|
||
enum Option { | ||
COLORMAP_IMPLEMENTATION = 140, | ||
IS_VISIBLE_IMPLEMENTATION, | ||
DOT_RADIUS, | ||
DOT_STYLE | ||
}; | ||
|
||
enum DotStyle { | ||
CIRCLE, | ||
SQUARE | ||
}; | ||
|
||
DotRenderer(const View& view, const VectorField& vf); | ||
virtual ~DotRenderer(); | ||
virtual void update(bool keep_geometry) override; | ||
virtual void draw(float aspect_ratio) override; | ||
virtual void optionsHaveChanged(const std::vector<int>& changed_options) override; | ||
std::string getDotStyle(const DotStyle& dotstyle); | ||
|
||
private: | ||
void updateShaderProgram(); | ||
void updateVertexData(); | ||
void initialize(); | ||
|
||
bool m_is_initialized = false; | ||
|
||
unsigned int m_program = 0; | ||
unsigned int m_vao = 0; | ||
|
||
unsigned int m_instance_position_vbo = 0; | ||
unsigned int m_instance_direction_vbo = 0; | ||
|
||
unsigned int m_num_instances = 0; | ||
}; | ||
|
||
namespace Utilities { | ||
|
||
template<> | ||
struct Options::Option<DotRenderer::Option::DOT_RADIUS> { | ||
float default_value = 1.f; | ||
}; | ||
|
||
template<> | ||
struct Options::Option<DotRenderer::Option::DOT_STYLE> { | ||
DotRenderer::DotStyle default_value = DotRenderer::DotStyle::CIRCLE; | ||
}; | ||
|
||
// COLORMAP_IMPLEMENTATION & IS_VISIBLE_IMPLEMENTATION define in View.hxx | ||
|
||
} | ||
|
||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
VFRendering/include/VFRendering/ParallelepipedRenderer.hxx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#ifndef VFRENDERING_PARALLELEPIPED_RENDERER_HXX | ||
#define VFRENDERING_PARALLELEPIPED_RENDERER_HXX | ||
|
||
#include <VFRendering/GlyphRenderer.hxx> | ||
|
||
namespace VFRendering { | ||
|
||
class ParallelepipedRenderer : public GlyphRenderer { | ||
public: | ||
enum Option { | ||
LENGTH_A = 100, | ||
LENGTH_B, | ||
LENGTH_C | ||
}; | ||
|
||
ParallelepipedRenderer(const View& view, const VectorField& vf); | ||
virtual void optionsHaveChanged(const std::vector<int>& changed_options) override; | ||
}; | ||
|
||
namespace Utilities { | ||
|
||
template<> | ||
struct Options::Option<ParallelepipedRenderer::Option::LENGTH_A> { | ||
float default_value = 1.f; | ||
}; | ||
|
||
template<> | ||
struct Options::Option<ParallelepipedRenderer::Option::LENGTH_B> { | ||
float default_value = 1.f; | ||
}; | ||
|
||
template<> | ||
struct Options::Option<ParallelepipedRenderer::Option::LENGTH_C> { | ||
float default_value = 1.f; | ||
}; | ||
|
||
} | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.