|
MorphoGraphX
2.0-1-227
|
#include <Store.hpp>
Public Member Functions | |
| Store (Stack *stack) | |
| Create an empty store. More... | |
| Store (const Store ©) | |
| Copy the store, and attach it to the same stack. More... | |
| ~Store () | |
| Delete the data attached to the store. More... | |
| HVecUS & | data () |
| Actual 3D data store linearly in a host vector. More... | |
| const HVecUS & | data () const |
| Actual 3D data store linearly in a host vector. More... | |
| bool | labels () const |
| Returns true if the data is to be interpreted as labels rather than intensities. More... | |
| void | setLabels (bool val) |
| Change the interpretation of the volume as labels. More... | |
| float | opacity () const |
| Opacity used to render the volume. More... | |
| void | setOpacity (float f) |
| Changed the opacity of the volume. More... | |
| float | brightness () const |
| Global brightness used to render the volume. More... | |
| void | setBrightness (float f) |
| Change the brightness of the volume. More... | |
| TransferFunction | transferFct () const |
| Retrieve the transfer function used to render the volume. More... | |
| void | setTransferFct (const TransferFunction &f) |
| Change the transfer function used to render the volume. More... | |
| bool | transferFunctionChanged () const |
| Returns true if the transfer function has been changed within this process. More... | |
| void | changed () |
| A process that changes the 3D data needs to call this method. More... | |
| void | changed (const BoundingBox3i &bbox) |
| A process that changed a range in the 3D data needs to call this method. More... | |
| bool | wasChanged () const |
| Returns true if the 3D data has been changed during this process. More... | |
| const BoundingBox3i & | changedBBox () const |
| Returns the current bounding box for the changes. More... | |
| void | show () |
| Ask the user interface to show this store. More... | |
| void | hide () |
| Ask the user interface to hide this store. More... | |
| bool | isVisible () const |
| Is the store currently visible. More... | |
| const Stack * | stack () const |
| Returns a constant pointer on the stack holding this store. More... | |
| void | setStack (Stack *s) |
| Change the stack this store is attached to. More... | |
| void | allocate () |
| Makes sure the memory for the store is allocated. More... | |
| void | reset () |
| Reset the memory of the store. More... | |
| const QString & | file () const |
| Returns the file corresponding to this store. More... | |
| void | setFile (const QString &f=QString()) |
| Set which file corresponds to this store. More... | |
| uint | size () const |
| Returns the size (in number of elements) of the store. More... | |
| bool | empty () const |
| True if the store is of size 0. More... | |
| void | copyMetaData (const Store *other) |
| Copy the metadata from another store. More... | |
Protected Member Functions | |
| void | resetModified () |
Protected Attributes | |
| HVecUS | _data |
| bool | _label |
| bool | changed_function |
| float | _opacity |
| float | _brightness |
| BoundingBox3i | _changed |
| TransferFunction | _fct |
| bool | _isVisible |
| QString | _filename |
| const Stack * | _stack |
Friends | |
| class | SetupProcess |
The Store class holds the actual 3D data and properties specific to it.
| mgx::Store::Store | ( | Stack * | stack | ) |
Create an empty store.
| mgx::Store::Store | ( | const Store & | copy | ) |
Copy the store, and attach it to the same stack.
| mgx::Store::~Store | ( | ) |
Delete the data attached to the store.
| void mgx::Store::allocate | ( | ) |
Makes sure the memory for the store is allocated.
|
inline |
| void mgx::Store::changed | ( | ) |
A process that changes the 3D data needs to call this method.
This indicate the GUI that the data changed and need reloading in the graphics card.
|
inline |
|
inline |
| void mgx::Store::copyMetaData | ( | const Store * | other | ) |
Copy the metadata from another store.
In the end, the states will be the same (currently only labels and file name)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void mgx::Store::reset | ( | ) |
Reset the memory of the store.
In the end, the store has the correct size and is filled with zeros.
|
protected |
|
inline |
| void mgx::Store::setFile | ( | const QString & | f = QString() | ) |
Set which file corresponds to this store.
|
inline |
|
inline |
| void mgx::Store::setStack | ( | Stack * | s | ) |
Change the stack this store is attached to.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
1.8.17