Inviwo
0.9.10.1
Inviwo documentation
|
Public Member Functions | |
virtual LayerRepresentation * | clone () const =0 |
virtual void | setDimensions (size2_t dimensions)=0 |
virtual const size2_t & | getDimensions () const =0 |
virtual void | setSwizzleMask (const SwizzleMask &mask)=0 |
update the swizzle mask of the channels for sampling color layers Needs to be overloaded by child classes. More... | |
virtual SwizzleMask | getSwizzleMask () const =0 |
virtual bool | copyRepresentationsTo (LayerRepresentation *) const =0 |
LayerType | getLayerType () const |
Public Member Functions inherited from inviwo::DataRepresentation< Layer > | |
const DataFormatBase * | getDataFormat () const |
std::string | getDataFormatString () const |
DataFormatId | getDataFormatId () const |
virtual std::type_index | getTypeIndex () const=0 |
void | setOwner (Layer *owner) |
Layer * | getOwner () |
const Layer * | getOwner () const |
bool | isValid () const |
void | setValid (bool valid) |
Protected Member Functions | |
LayerRepresentation (LayerType type=LayerType::Color, const DataFormatBase *format=DataVec4UInt8::get()) | |
LayerRepresentation (const LayerRepresentation &rhs)=default | |
LayerRepresentation & | operator= (const LayerRepresentation &that)=default |
void | updateBaseMetaFromRepresentation () |
Protected Member Functions inherited from inviwo::DataRepresentation< Layer > | |
DataRepresentation (const DataFormatBase *format) | |
DataRepresentation (const DataRepresentation &rhs)=default | |
DataRepresentation & | operator= (const DataRepresentation &that)=default |
void | setDataFormat (const DataFormatBase *format) |
Protected Attributes | |
LayerType | layerType_ |
Protected Attributes inherited from inviwo::DataRepresentation< Layer > | |
bool | isValid_ |
const DataFormatBase * | dataFormatBase_ |
Layer * | owner_ |
Additional Inherited Members | |
Public Types inherited from inviwo::DataRepresentation< Layer > | |
using | ReprOwner = Layer |
|
pure virtual |
Copy and resize the representations of this onto the target.
Implemented in inviwo::LayerGL, inviwo::LayerDisk, and inviwo::LayerRAM.
|
pure virtual |
Resize the representation to dimension. This is destructive, the data will not be preserved. Use copyRepresentationsTo to update the data. Needs to be overloaded by child classes.
Implemented in inviwo::LayerRAMPrecision< T >, inviwo::LayerRAMPrecision< vec4 >, and inviwo::LayerGL.
|
pure virtual |
update the swizzle mask of the channels for sampling color layers Needs to be overloaded by child classes.
mask | new swizzle mask |
Implemented in inviwo::LayerDisk, inviwo::LayerRAMPrecision< T >, inviwo::LayerRAMPrecision< vec4 >, and inviwo::LayerGL.