![]() |
Blue Brain BioExplorer
|
#include <OSPRayCamera.h>
Public Member Functions | |
OSPRayCamera (OSPRayEngine *engine) | |
~OSPRayCamera () | |
void | commit () final |
void | setClipPlanes (const Planes &planes) |
void | setEnvironmentMap (const bool environmentMap) |
OSPCamera | impl () |
![]() | |
PLATFORM_API | Camera ()=default |
Default constructor. More... | |
virtual PLATFORM_API | ~Camera ()=default |
Default destructor. More... | |
PLATFORM_API Camera & | operator= (const Camera &rhs) |
Copy constructor. More... | |
PLATFORM_API void | set (const Vector3d &position, const Quaterniond &orientation, const Vector3d &target=Vector3d(0.0, 0.0, 0.0)) |
Sets the position, orientation quaternion, and target of the camera. More... | |
PLATFORM_API void | setInitialState (const Vector3d &position, const Quaterniond &orientation, const Vector3d &target=Vector3d(0.0, 0.0, 0.0)) |
Sets the initial state of the camera. More... | |
PLATFORM_API void | reset () |
Resets the camera to its initial values. More... | |
PLATFORM_API void | setPosition (const Vector3d &position) |
Sets the camera position. More... | |
PLATFORM_API void | setTarget (const Vector3d &target) |
Sets the camera target. More... | |
PLATFORM_API const Vector3d & | getPosition () const |
Gets the camera position. More... | |
PLATFORM_API const Vector3d & | getTarget () const |
Gets the camera target. More... | |
PLATFORM_API void | setOrientation (Quaterniond orientation) |
Sets the camera orientation quaternion. More... | |
PLATFORM_API const Quaterniond & | getOrientation () const |
Gets the camera orientation quaternion. More... | |
PLATFORM_API void | setBufferTarget (const std::string &target) |
Sets the name of the current rendered frame buffer. More... | |
PLATFORM_API const std::string & | getBufferTarget () const |
Gets the name of the current rendered frame buffer. More... | |
PLATFORM_API void | setEngine (Engine *engine) |
Set the Engine object. More... | |
![]() | |
void | setCurrentType (const std::string &type) |
const std::string & | getCurrentType () const |
template<typename T > | |
void | updateProperty (const std::string &name, const T &value, const bool triggerCallback=true) |
bool | hasProperty (const std::string &name) const |
template<typename T > | |
T | getProperty (const std::string &name) const |
template<typename T > | |
T | getPropertyOrValue (const std::string &name, T val) const |
void | setProperties (const PropertyMap &properties) |
void | setProperties (const std::string &type, const PropertyMap &properties) |
void | updateProperties (const PropertyMap &properties) |
const auto & | getPropertyMap () const |
const auto & | getPropertyMap (const std::string &type) const |
strings | getTypes () const |
void | clonePropertiesFrom (const PropertyObject &obj) |
![]() | |
BaseObject ()=default | |
virtual | ~BaseObject ()=default |
BaseObject (const BaseObject &) | |
BaseObject & | operator= (const BaseObject &rhs) |
bool | isModified () const |
void | resetModified () |
void | markModified (const bool triggerCallback=true) |
void | onModified (const ModifiedCallback &callback) |
void | clearModifiedCallback () |
Additional Inherited Members | |
![]() | |
using | ModifiedCallback = std::function< void(const 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) |
![]() | |
Engine * | _engine {nullptr} |
![]() | |
std::string | _currentType |
std::map< std::string, PropertyMap > | _properties |
OPSRAY specific camera
This object is the OSPRay specific implementation of a Camera
Definition at line 42 of file OSPRayCamera.h.
|
inline |
Definition at line 45 of file OSPRayCamera.h.
core::engine::ospray::OSPRayCamera::~OSPRayCamera | ( | ) |
Definition at line 37 of file OSPRayCamera.cpp.
|
finalvirtual |
Commits the changes held by the camera object so that attributes become available to the OSPRay rendering engine
Reimplemented from core::Camera.
Definition at line 42 of file OSPRayCamera.cpp.
|
inline |
Gets the OSPRay implementation of the camera object
Definition at line 67 of file OSPRayCamera.h.
void core::engine::ospray::OSPRayCamera::setClipPlanes | ( | const Planes & | planes | ) |
Set the clipping planes to use in this camera. Only implemented in the perspective and orthographic cameras.
Definition at line 85 of file OSPRayCamera.cpp.
void core::engine::ospray::OSPRayCamera::setEnvironmentMap | ( | const bool | environmentMap | ) |
Definition at line 79 of file OSPRayCamera.cpp.