7 #include <thrust/host_vector.h>
8 #include <TransferFunction.hpp>
16 typedef unsigned short ushort;
17 typedef thrust::host_vector<ushort> HVecUS;
26 friend class process::SetupProcess;
57 const HVecUS&
data()
const {
122 changed_function =
true;
130 return changed_function;
193 void setStack(
Stack* s);
230 return _data.empty();
238 void copyMetaData(
const Store* other);
241 void resetModified();
245 bool changed_function;
255 void mgx_EXPORT swapMetaData(Store* s1, Store* s2);
void setOpacity(float f)
Changed the opacity of the volume.
Definition: Store.hpp:81
void show()
Ask the user interface to show this store.
Definition: Store.hpp:167
const HVecUS & data() const
Actual 3D data store linearly in a host vector.
Definition: Store.hpp:57
void setBrightness(float f)
Change the brightness of the volume.
Definition: Store.hpp:99
void setLabels(bool val)
Change the interpretation of the volume as labels.
Definition: Store.hpp:69
bool isVisible() const
Is the store currently visible.
Definition: Store.hpp:179
float brightness() const
Global brightness used to render the volume.
Definition: Store.hpp:93
bool empty() const
True if the store is of size 0.
Definition: Store.hpp:229
void setTransferFct(const TransferFunction &f)
Change the transfer function used to render the volume.
Definition: Store.hpp:118
HVecUS & data()
Actual 3D data store linearly in a host vector.
Definition: Store.hpp:49
const Stack * stack() const
Returns a constant pointer on the stack holding this store.
Definition: Store.hpp:186
TransferFunction transferFct() const
Retrieve the transfer function used to render the volume.
Definition: Store.hpp:112
The Store class holds the actual 3D data and properties specific to it.
Definition: Store.hpp:25
Common definitions and utilities for all geometry algorithms This file is shared by cuda...
const BoundingBox3i & changedBBox() const
Returns the current bounding box for the changes.
Definition: Store.hpp:160
bool labels() const
Returns true if the data is to be interpreted as labels rather than intensities.
Definition: Store.hpp:63
The Stack class represent the dimensions of the 3D data, and the frames transformations.
Definition: Stack.hpp:25
bool wasChanged() const
Returns true if the 3D data has been changed during this process.
Definition: Store.hpp:153
void hide()
Ask the user interface to hide this store.
Definition: Store.hpp:173
void changed(const BoundingBox3i &bbox)
A process that changed a range in the 3D data needs to call this method.
Definition: Store.hpp:146
float opacity() const
Opacity used to render the volume.
Definition: Store.hpp:75
bool transferFunctionChanged() const
Returns true if the transfer function has been changed within this process.
Definition: Store.hpp:129
Class defining a transfer function as linear interpolation between set values.
Definition: TransferFunction.hpp:23
uint size() const
Returns the size (in number of elements) of the store.
Definition: Store.hpp:223
const QString & file() const
Returns the file corresponding to this store.
Definition: Store.hpp:212