Blue Brain BioExplorer
core::engine::ospray::OSPRayVolume Class Reference

#include <OSPRayVolume.h>

Inheritance diagram for core::engine::ospray::OSPRayVolume:
Collaboration diagram for core::engine::ospray::OSPRayVolume:

Public Member Functions

 OSPRayVolume (const Vector3ui &dimensions, const Vector3f &spacing, const DataType type, const VolumeParameters &params, OSPTransferFunction transferFunction, const std::string &volumeType)
 
 ~OSPRayVolume ()
 
void setDataRange (const Vector2f &range) final
 
void commit () final
 Commits changes to the volume. More...
 
OSPVolume impl () const
 
- Public Member Functions inherited from core::Volume
PLATFORM_API Volume (const Vector3ui &dimensions, const Vector3f &spacing, const DataType type)
 Constructs a Volume object. More...
 
PLATFORM_API Vector2f getDataRange () const
 
PLATFORM_API size_t getSizeInBytes () const
 Gets the size of the volume in bytes. More...
 
PLATFORM_API Boxd getBounds () const
 Gets the bounding box of the volume. More...
 
PLATFORM_API Vector3f getDimensions () const
 Get the Dimensions object. More...
 
PLATFORM_API Vector3f getElementSpacing () const
 Get the Element Spacing object. More...
 
PLATFORM_API Vector3f getOffset () const
 Get the Offset object. More...
 
PLATFORM_API Vector2f getValueRange () const
 Get the Value Range object. More...
 
- Public Member Functions inherited from core::BaseObject
 BaseObject ()=default
 
virtual ~BaseObject ()=default
 
 BaseObject (const BaseObject &)
 
BaseObjectoperator= (const BaseObject &rhs)
 
bool isModified () const
 
void resetModified ()
 
void markModified (const bool triggerCallback=true)
 
void onModified (const ModifiedCallback &callback)
 
void clearModifiedCallback ()
 

Protected Attributes

size_t _dataSize {0}
 
const VolumeParameters_parameters
 
OSPVolume _volume
 
OSPDataType _ospType
 
- Protected Attributes inherited from core::Volume
std::atomic_size_t _sizeInBytes {0}
 
const Vector3ui _dimensions
 
const Vector3f _spacing
 
Vector3f _offset
 
const DataType _dataType
 
Vector2f _valueRange {-1e6f, 1e6f}
 

Additional Inherited Members

- Public Types inherited from core::BaseObject
using ModifiedCallback = std::function< void(const BaseObject &)>
 
- Protected Member Functions inherited from core::BaseObject
template<typename T >
void _updateValue (T &member, const T &newValue, const bool triggerCallback=true)
 
template<class T >
bool _isEqual (const T &a, const T &b, typename std::enable_if< std::is_floating_point< T >::value >::type *=0)
 
template<class T >
bool _isEqual (const T &a, const T &b, typename std::enable_if<!std::is_floating_point< T >::value >::type *=0)
 

Detailed Description

Definition at line 36 of file OSPRayVolume.h.

Constructor & Destructor Documentation

◆ OSPRayVolume()

core::engine::ospray::OSPRayVolume::OSPRayVolume ( const Vector3ui dimensions,
const Vector3f spacing,
const DataType  type,
const VolumeParameters params,
OSPTransferFunction  transferFunction,
const std::string &  volumeType 
)

Definition at line 35 of file OSPRayVolume.cpp.

◆ ~OSPRayVolume()

core::engine::ospray::OSPRayVolume::~OSPRayVolume ( )

Definition at line 81 of file OSPRayVolume.cpp.

Member Function Documentation

◆ commit()

void core::engine::ospray::OSPRayVolume::commit ( )
finalvirtual

Commits changes to the volume.

Implements core::Volume.

Definition at line 128 of file OSPRayVolume.cpp.

◆ impl()

OSPVolume core::engine::ospray::OSPRayVolume::impl ( ) const
inline

Definition at line 49 of file OSPRayVolume.h.

◆ setDataRange()

void core::engine::ospray::OSPRayVolume::setDataRange ( const Vector2f range)
finalvirtual

Implements core::Volume.

Definition at line 103 of file OSPRayVolume.cpp.

Member Data Documentation

◆ _dataSize

size_t core::engine::ospray::OSPRayVolume::_dataSize {0}
protected

Definition at line 52 of file OSPRayVolume.h.

◆ _ospType

OSPDataType core::engine::ospray::OSPRayVolume::_ospType
protected

Definition at line 55 of file OSPRayVolume.h.

◆ _parameters

const VolumeParameters& core::engine::ospray::OSPRayVolume::_parameters
protected

Definition at line 53 of file OSPRayVolume.h.

◆ _volume

OSPVolume core::engine::ospray::OSPRayVolume::_volume
protected

Definition at line 54 of file OSPRayVolume.h.


The documentation for this class was generated from the following files: