MeVisLab Toolbox Reference
SoView2DShaderDevicePosition.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2015, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#pragma once
14
15#include "SoView2DExtension.h"
16#include "SoView2DShaderState.h"
19
20
22{
23 SO_NODE_HEADER(SoView2DShaderDevicePosition);
24
25public:
26
27 static void initClass();
28
30
32 SoSFVec3f worldPosition;
33
35 SoSFString name;
36
37 void draw(View2DSliceList *dsl, View2DSlice* dslice, int slice) override;
38
39 void GLRender(SoGLRenderAction* action) override;
40
41protected:
42 SoRef<SoShaderParameter2f> _param;
43};
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoView2DExtension Base class for all View2DExtensions used for drawing and event handling on the View...
void draw(View2DSliceList *dsl, View2DSlice *dslice, int slice) override
Called by the SoView2D for each slice that is rendered.
SoSFString name
The name of the position.
SoRef< SoShaderParameter2f > _param
SoSFVec3f worldPosition
The world position that should be mapped to device position.
void GLRender(SoGLRenderAction *action) override
a list that holds all View2DSlice objects (lazily created) of a SoView2D
a single slice that is stored in a View2DSliceList, typically created by a View2DSliceList
Definition View2DSlice.h:48