Go to the documentation of this file.
17 #include <thrust/host_vector.h>
24 typedef unsigned short ushort;
25 typedef thrust::host_vector<ushort>
HVecUS;
35 friend class SetupProcess;
70 bool labels()
const {
return _label; }
80 float opacity()
const {
return _opacity; }
125 changed_function =
true;
162 void show() { _isVisible =
true; }
167 void hide() { _isVisible =
false; }
182 void setStack(
Stack* s);
202 const QString&
file()
const {
return _filename; }
207 void setFile(
const QString& f = QString());
217 bool empty()
const {
return _data.empty(); }
224 void copyMetaData(
const Store* other);
227 void resetModified();
void setTransferFct(const TransferFunction &f)
Change the transfer function used to render the volume.
uint size() const
Returns the size (in number of elements) of the store.
void changed(const BoundingBox3i &bbox)
A process that changed a range in the 3D data needs to call this method.
bool labels() const
Returns true if the data is to be interpreted as labels rather than intensities.
thrust::host_vector< ushort > HVecUS
void setBrightness(float f)
Change the brightness of the volume.
void setOpacity(float f)
Changed the opacity of the volume.
unsigned short ushort
Simpler names for the various containers and iterators.
Distributed matrix library.
void hide()
Ask the user interface to hide this store.
const HVecUS & data() const
Actual 3D data store linearly in a host vector.
const QString & file() const
Returns the file corresponding to this store.
TransferFunction transferFct() const
Retrieve the transfer function used to render the volume.
const BoundingBox3i & changedBBox() const
Returns the current bounding box for the changes.
void show()
Ask the user interface to show this store.
bool isVisible() const
Is the store currently visible.
void mgx_EXPORT swapMetaData(Store *s1, Store *s2)
void setLabels(bool val)
Change the interpretation of the volume as labels.
float opacity() const
Opacity used to render the volume.
bool transferFunctionChanged() const
Returns true if the transfer function has been changed within this process.
float brightness() const
Global brightness used to render the volume.
bool wasChanged() const
Returns true if the 3D data has been changed during this process.
HVecUS & data()
Actual 3D data store linearly in a host vector.
const Stack * stack() const
Returns a constant pointer on the stack holding this store.
bool empty() const
True if the store is of size 0.