Renderable dipole arrow set with instanced GPU rendering. More...
#include <dipoleobject.h>
Public Member Functions | |
| DipoleObject () | |
| ~DipoleObject () | |
| void | load (const INVLIB::InvEcdSet &ecdSet) |
| void | applyTransform (const QMatrix4x4 &trans) |
| InstancedStreams | streams () const |
| const RenderKey & | renderKey () const |
| int | indexCount () const |
| int | instanceCount () const |
| bool | isVisible () const |
| void | setVisible (bool visible) |
| bool | boundingBox (QVector3D &min, QVector3D &max) const |
| void | setSelected (int index, bool selected) |
| int | intersect (const QVector3D &rayOrigin, const QVector3D &rayDir, float &dist) const |
Renderable dipole arrow set with instanced GPU rendering.
Renderable dipole object that builds instanced arrow geometry from an InvEcdSet and provides its CPU streams for instanced rendering.
Definition at line 55 of file dipoleobject.h.
|
default |
|
default |
| void DISP3DLIB::DipoleObject::applyTransform | ( | const QMatrix4x4 & | trans | ) |
Definition at line 105 of file dipoleobject.cpp.
| bool DISP3DLIB::DipoleObject::boundingBox | ( | QVector3D & | min, |
| QVector3D & | max ) const |
Axis-aligned bounds of the (transformed) dipole positions.
| [out] | min | Minimum corner. |
| [out] | max | Maximum corner. |
Definition at line 123 of file dipoleobject.cpp.
|
inline |
Definition at line 75 of file dipoleobject.h.
|
inline |
Definition at line 79 of file dipoleobject.h.
| int DISP3DLIB::DipoleObject::intersect | ( | const QVector3D & | rayOrigin, |
| const QVector3D & | rayDir, | ||
| float & | dist ) const |
Test ray intersection with dipoles.
| [in] | rayOrigin | Ray origin in world space. |
| [in] | rayDir | Ray direction (normalized). |
| [out] | dist | Distance to intersection. |
Definition at line 248 of file dipoleobject.cpp.
|
inline |
Definition at line 84 of file dipoleobject.h.
| void DISP3DLIB::DipoleObject::load | ( | const INVLIB::InvEcdSet & | ecdSet | ) |
Definition at line 43 of file dipoleobject.cpp.
|
inline |
Definition at line 70 of file dipoleobject.h.
| void DISP3DLIB::DipoleObject::setSelected | ( | int | index, |
| bool | selected ) |
Definition at line 307 of file dipoleobject.cpp.
|
inline |
Definition at line 88 of file dipoleobject.h.
| InstancedStreams DISP3DLIB::DipoleObject::streams | ( | ) | const |
Definition at line 34 of file dipoleobject.cpp.