17 #include <thrust/host_vector.h> 18 #include <TransferFunction.hpp> 26 typedef unsigned short ushort;
27 typedef thrust::host_vector<ushort> HVecUS;
36 friend class process::SetupProcess;
67 const HVecUS&
data()
const {
132 changed_function =
true;
140 return changed_function;
203 void setStack(
Stack* s);
240 return _data.empty();
248 void copyMetaData(
const Store* other);
251 void resetModified();
255 bool changed_function;
265 void mgx_EXPORT swapMetaData(
Store* s1,
Store* s2);
void setOpacity(float f)
Changed the opacity of the volume.
Definition: Store.hpp:91
void show()
Ask the user interface to show this store.
Definition: Store.hpp:177
const HVecUS & data() const
Actual 3D data store linearly in a host vector.
Definition: Store.hpp:67
void setBrightness(float f)
Change the brightness of the volume.
Definition: Store.hpp:109
void setLabels(bool val)
Change the interpretation of the volume as labels.
Definition: Store.hpp:79
bool isVisible() const
Is the store currently visible.
Definition: Store.hpp:189
float brightness() const
Global brightness used to render the volume.
Definition: Store.hpp:103
bool empty() const
True if the store is of size 0.
Definition: Store.hpp:239
void setTransferFct(const TransferFunction &f)
Change the transfer function used to render the volume.
Definition: Store.hpp:128
HVecUS & data()
Actual 3D data store linearly in a host vector.
Definition: Store.hpp:59
const Stack * stack() const
Returns a constant pointer on the stack holding this store.
Definition: Store.hpp:196
TransferFunction transferFct() const
Retrieve the transfer function used to render the volume.
Definition: Store.hpp:122
The Store class holds the actual 3D data and properties specific to it.
Definition: Store.hpp:35
Common definitions and utilities for all geometry algorithms This file is shared by cuda...
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
const BoundingBox3i & changedBBox() const
Returns the current bounding box for the changes.
Definition: Store.hpp:170
bool labels() const
Returns true if the data is to be interpreted as labels rather than intensities.
Definition: Store.hpp:73
The Stack class represent the dimensions of the 3D data, and the frames transformations.
Definition: Stack.hpp:35
bool wasChanged() const
Returns true if the 3D data has been changed during this process.
Definition: Store.hpp:163
void hide()
Ask the user interface to hide this store.
Definition: Store.hpp:183
This namespace contains all the classes needed to define processes.
void changed(const BoundingBox3i &bbox)
A process that changed a range in the 3D data needs to call this method.
Definition: Store.hpp:156
float opacity() const
Opacity used to render the volume.
Definition: Store.hpp:85
bool transferFunctionChanged() const
Returns true if the transfer function has been changed within this process.
Definition: Store.hpp:139
Class defining a transfer function as linear interpolation between set values.
Definition: TransferFunction.hpp:33
uint size() const
Returns the size (in number of elements) of the store.
Definition: Store.hpp:233
const QString & file() const
Returns the file corresponding to this store.
Definition: Store.hpp:222