Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

vis.i 1.61 KB
Newer Older
1
%module vis
2

3
%include std_string.i
4
5
%import "core/bindings/campvis.i"

6
%{
7
8
#include "core/properties/allproperties.h"
#include "core/pipeline/abstractworkflow.h"
9
#include "core/pipeline/autoevaluationpipeline.h"
10
#include "core/pipeline/visualizationprocessor.h"
11
#include "modules/vis/processors/volumeexplorer.h"
12
#include "modules/vis/processors/volumerenderer.h"
13

14
15
%}

16

17
18
namespace campvis {

19
20
21
22
23
24
25
26
27
28
29
    /*
     * As of version 2.0.12, SWIG still has trouble when a default argument is initialised using the
     * `new` keyword. The `default` typemap provides a reasonable workaround.
     */
    %typemap(default) campvis::SliceRenderProcessor* slicerenderer {
       $1 = new campvis::SliceExtractor(0);
    }
    %typemap(default) campvis::RaycastingProcessor* raycaster {
       $1 = new campvis::SimpleRaycaster(0);
    }

30
    class VolumeExplorer : public VisualizationProcessor, public cgt::EventListener {
31
32
33
34
35
36
37
38
39
40
41
    public:
        VolumeExplorer(campvis::IVec2Property* viewportSizeProp);
        ~VolumeExplorer();

        const std::string getName() const;

        %immutable;
        campvis::DataNameProperty p_inputVolume;
        campvis::DataNameProperty p_outputImage;
        %mutable;
    };
42
43
44
45
46
47
48
49
50
51
52
53
54

    class VolumeRenderer : public VisualizationProcessor {
    public:
        VolumeRenderer(campvis::IVec2Property* viewportSizeProp, campvis::RaycastingProcessor* raycaster);
        virtual ~VolumeRenderer();

        const std::string getName() const;

        %immutable;
        campvis::DataNameProperty p_inputVolume;
        campvis::DataNameProperty p_outputImage;
        %mutable;
    };
55

56
}
57
58
59
60

%luacode {
  print("Module campvis-vis loaded")
}