Skip to content

Commit

Permalink
Update visualisation includes to use the new directory paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ptheywood committed Jul 7, 2021
1 parent 5f7ab95 commit 2403064
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 13 deletions.
5 changes: 3 additions & 2 deletions include/flamegpu/visualiser/AgentStateVis.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

#include <string>

#include "config/AgentStateConfig.h"
#include "config/Stock.h"
// @todo - All vis headers should live in the vis repo.
#include "flamegpu/visualiser/config/AgentStateConfig.h"
#include "flamegpu/visualiser/config/Stock.h"

namespace flamegpu {
namespace visualiser {
Expand Down
7 changes: 4 additions & 3 deletions include/flamegpu/visualiser/AgentVis.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
#include <string>
#include <map>

// @todo - All vis headers should live in the vis repo.
#include "flamegpu/visualiser/AgentStateVis.h"
#include "config/AgentStateConfig.h"
#include "config/Stock.h"
#include "config/TexBufferConfig.h"
#include "flamegpu/visualiser/config/AgentStateConfig.h"
#include "flamegpu/visualiser/config/Stock.h"
#include "flamegpu/visualiser/config/TexBufferConfig.h"

namespace flamegpu {
struct AgentData;
Expand Down
3 changes: 2 additions & 1 deletion include/flamegpu/visualiser/LineVis.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

#include <memory>

#include "config/LineConfig.h"
// @todo - All vis headers should live in the vis repo.
#include "flamegpu/visualiser/config/LineConfig.h"

namespace flamegpu {
namespace visualiser {
Expand Down
3 changes: 2 additions & 1 deletion include/flamegpu/visualiser/ModelVis.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
#include <memory>
#include <climits>

// @todo - All vis headers should live in the vis repo.
#include "flamegpu/visualiser/AgentVis.h"
#include "flamegpu/visualiser/StaticModelVis.h"
#include "flamegpu/visualiser/LineVis.h"
#include "flamegpu/visualiser/color/AutoPalette.h"
#include "config/ModelConfig.h"
#include "flamegpu/visualiser/config/ModelConfig.h"

namespace flamegpu {

Expand Down
2 changes: 1 addition & 1 deletion include/flamegpu/visualiser/StaticModelVis.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define INCLUDE_FLAMEGPU_VISUALISER_STATICMODELVIS_H_
#include <memory>

#include "config/ModelConfig.h"
#include "flamegpu/visualiser/config/ModelConfig.h"

namespace flamegpu {
namespace visualiser {
Expand Down
2 changes: 1 addition & 1 deletion src/flamegpu/gpu/CUDASimulation.cu
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "flamegpu/sim/LoggingConfig.h"
#include "flamegpu/sim/LogFrame.h"
#ifdef VISUALISATION
#include "FLAMEGPU_Visualisation.h"
#include "flamegpu/visualiser/FLAMEGPU_Visualisation.h"
#endif

namespace flamegpu {
Expand Down
2 changes: 1 addition & 1 deletion src/flamegpu/visualiser/AgentVis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "flamegpu/model/AgentData.h"
#include "flamegpu/visualiser/color/ColorFunction.h"
#include "flamegpu/visualiser/color/StaticColor.h"
#include "FLAMEGPU_Visualisation.h"
#include "flamegpu/visualiser/FLAMEGPU_Visualisation.h"

namespace flamegpu {
namespace visualiser {
Expand Down
2 changes: 1 addition & 1 deletion src/flamegpu/visualiser/ModelVis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "flamegpu/gpu/CUDASimulation.h"
#include "flamegpu/model/AgentData.h"
#include "FLAMEGPU_Visualisation.h"
#include "flamegpu/visualiser/FLAMEGPU_Visualisation.h"

namespace flamegpu {
namespace visualiser {
Expand Down
4 changes: 2 additions & 2 deletions swig/python/flamegpu.i
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ TEMPLATE_VARIABLE_INSTANTIATE_FLOATS(logNormal, flamegpu::HostRandom::logNormal)
// @todo - Need to put the vis repo into a subfolder for more sensible include paths
%{
#include "flamegpu/visualiser/visualiser_api.h"
#include "config/Stock.h"
#include "flamegpu/visualiser/config/Stock.h"
using namespace flamegpu;
using namespace flamegpu::visualiser;
%}
Expand All @@ -760,7 +760,7 @@ TEMPLATE_VARIABLE_INSTANTIATE_FLOATS(logNormal, flamegpu::HostRandom::logNormal)
// -----------------
// %includes for classes to wrap.
// -----------------
%include "config/Stock.h"
%include "flamegpu/visualiser/config/Stock.h"
%include "flamegpu/visualiser/StaticModelVis.h"
%include "flamegpu/visualiser/AgentStateVis.h"
%include "flamegpu/visualiser/AgentVis.h"
Expand Down

0 comments on commit 2403064

Please sign in to comment.