FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
#include <View.hpp>
Public Member Functions | |
void | addRenderer (Renderer::pointer renderer) |
void | removeRenderer (Renderer::pointer renderer) |
void | removeAllRenderers () |
void | keyPressEvent (QKeyEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | wheelEvent (QWheelEvent *event) |
void | setMaximumFramerate (unsigned int framerate) |
void | setCameraInputConnection (DataChannel::pointer port) |
void | set2DMode () |
void | set3DMode () |
void | setLookAt (Vector3f cameraPosition, Vector3f targetPosition, Vector3f cameraUpVector, float zNear=0.1, float zFar=1000) |
void | quit () |
void | reinitialize () |
bool | hasQuit () const |
~View () | |
void | recalculateCamera () |
void | setBackgroundColor (Color color) |
void | setAutoUpdateCamera (bool autoUpdate) |
Vector4f | getOrthoProjectionParameters () |
std::string | getNameOfClass () const |
View () | |
std::vector< Renderer::pointer > | getRenderers () |
Matrix4f | getViewMatrix () const |
Matrix4f | getPerspectiveMatrix () const |
void | loadAttributes () override |
void | setZoom (float zoom) |
![]() | |
virtual | ~ProcessObject () |
void | update (int executeToken=-1) |
RuntimeMeasurement::pointer | getRuntime () |
RuntimeMeasurement::pointer | getRuntime (std::string name) |
RuntimeMeasurementsManager::pointer | getAllRuntimes () |
void | enableRuntimeMeasurements () |
void | disableRuntimeMeasurements () |
void | setMainDevice (ExecutionDevice::pointer device) |
void | setMainDeviceCriteria (const DeviceCriteria &citeria) |
ExecutionDevice::pointer | getMainDevice () const |
void | setDevice (uint deviceNumber, ExecutionDevice::pointer device) |
void | setDeviceCriteria (uint deviceNumber, const DeviceCriteria &criteria) |
ExecutionDevice::pointer | getDevice (uint deviceNumber) const |
virtual DataChannel::pointer | getOutputPort (uint portID=0) |
virtual DataChannel::pointer | getInputPort (uint portID=0) |
virtual void | setInputConnection (DataChannel::pointer port) |
virtual void | setInputConnection (uint portID, DataChannel::pointer port) |
virtual void | setInputData (DataObject::pointer data) |
virtual void | setInputData (uint portID, DataObject::pointer data) |
int | getNrOfInputConnections () const |
int | getNrOfOutputPorts () const |
std::shared_ptr< Attribute > | getAttribute (std::string id) |
std::unordered_map< std::string, std::shared_ptr< Attribute > > | getAttributes () |
void | setAttributes (std::vector< std::shared_ptr< Attribute >> attributes) |
void | stopPipeline () |
void | setModified (bool modified) |
template<class DataType > | |
std::shared_ptr< DataType > | updateAndGetOutputData (uint portID=0) |
![]() | |
Object () | |
virtual | ~Object () |
Reporter & | getReporter () |
Static Public Member Functions | |
static QGLFormat | getGLFormat () |
![]() | |
static std::string | getStaticNameOfClass () |
![]() | |
static std::string | getStaticNameOfClass () |
Protected Member Functions | |
void | getMinMaxFromBoundingBoxes (bool transform, Vector3f &min, Vector3f &max) |
void | initializeGL () |
void | paintGL () |
void | resizeGL (int width, int height) |
void | updateRenderersInput (int executeToken) |
void | updateRenderers () |
void | lockRenderers () |
void | unlockRenderers () |
void | stopRenderers () |
void | resetRenderers () |
![]() | |
ProcessObject () | |
virtual void | preExecute () |
virtual void | postExecute () |
template<class DataType > | |
void | createInputPort (uint portID, bool required=true) |
template<class DataType > | |
void | createOutputPort (uint portID) |
template<class DataType > | |
std::shared_ptr< DataType > | getInputData (uint portID=0) |
template<class DataType > | |
std::shared_ptr< DataType > | getOutputData (uint portID=0) |
void | addOutputData (uint portID, DataObject::pointer data) |
bool | hasNewInputData (uint portID) |
virtual void | waitToFinish () |
void | createOpenCLProgram (std::string sourceFilename, std::string name="") |
cl::Program | getOpenCLProgram (std::shared_ptr< OpenCLDevice > device, std::string name="", std::string buildOptions="") |
void | createFloatAttribute (std::string id, std::string name, std::string description, float initialValue) |
void | createIntegerAttribute (std::string id, std::string name, std::string description, int initialValue) |
void | createBooleanAttribute (std::string id, std::string name, std::string description, bool initialValue) |
void | createStringAttribute (std::string id, std::string name, std::string description, std::string initialValue) |
float | getFloatAttribute (std::string id) |
int | getIntegerAttribute (std::string id) |
bool | getBooleanAttribute (std::string id) |
std::string | getStringAttribute (std::string id) |
std::vector< float > | getFloatListAttribute (std::string id) |
std::vector< int > | getIntegerListAttribute (std::string id) |
std::vector< bool > | getBooleanListAttribute (std::string id) |
std::vector< std::string > | getStringListAttribute (std::string id) |
void | changeDeviceOnInputs (uint deviceNumber, ExecutionDevice::pointer device) |
void | validateInputPortExists (uint portID) |
void | validateOutputPortExists (uint portID) |
![]() | |
Reporter & | reportError () |
Reporter & | reportWarning () |
Reporter & | reportInfo () |
ReporterEnd | reportEnd () const |
Protected Attributes | |
std::mutex | m_mutex |
![]() | |
bool | mIsModified |
int | m_lastExecuteToken = -1 |
RuntimeMeasurementsManager::pointer | mRuntimeManager |
std::unordered_map< uint, bool > | mRequiredInputs |
std::unordered_map< uint, std::vector< uint > > | mInputDevices |
std::unordered_map< uint, ExecutionDevice::pointer > | mDevices |
std::unordered_map< uint, DeviceCriteria > | mDeviceCriteria |
std::unordered_map< uint, DataChannel::pointer > | mInputConnections |
std::unordered_map< uint, std::vector< std::weak_ptr< DataChannel > > > | mOutputConnections |
std::unordered_map< uint, bool > | mInputPorts |
std::unordered_set< uint > | mOutputPorts |
std::unordered_map< uint, std::pair< DataObject::pointer, uint64_t > > | mLastProcessed |
std::unordered_map< std::string, std::shared_ptr< OpenCLProgram > > | mOpenCLPrograms |
std::unordered_map< std::string, std::shared_ptr< Attribute > > | mAttributes |
std::unordered_map< std::string, std::string > | m_frameData |
std::unordered_set< std::string > | m_lastFrame |
int | m_maximumNrOfFrames = -1 |
![]() | |
std::weak_ptr< Object > | mPtr |
Friends | |
class | ComputationThread |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< ProcessObject > | pointer |
![]() | |
typedef std::shared_ptr< Object > | pointer |
fast::View::~View | ( | ) |
fast::View::View | ( | ) |
void fast::View::addRenderer | ( | Renderer::pointer | renderer | ) |
|
static |
|
protected |
|
inlinevirtual |
Implements fast::ProcessObject.
Vector4f fast::View::getOrthoProjectionParameters | ( | ) |
Matrix4f fast::View::getPerspectiveMatrix | ( | ) | const |
std::vector<Renderer::pointer> fast::View::getRenderers | ( | ) |
Matrix4f fast::View::getViewMatrix | ( | ) | const |
bool fast::View::hasQuit | ( | ) | const |
|
protected |
void fast::View::keyPressEvent | ( | QKeyEvent * | event | ) |
|
overridevirtual |
Reimplemented from fast::ProcessObject.
|
protected |
void fast::View::mouseMoveEvent | ( | QMouseEvent * | event | ) |
void fast::View::mousePressEvent | ( | QMouseEvent * | event | ) |
void fast::View::mouseReleaseEvent | ( | QMouseEvent * | event | ) |
|
protected |
void fast::View::quit | ( | ) |
void fast::View::recalculateCamera | ( | ) |
void fast::View::reinitialize | ( | ) |
void fast::View::removeAllRenderers | ( | ) |
void fast::View::removeRenderer | ( | Renderer::pointer | renderer | ) |
|
protected |
|
protected |
void fast::View::set2DMode | ( | ) |
void fast::View::set3DMode | ( | ) |
void fast::View::setAutoUpdateCamera | ( | bool | autoUpdate | ) |
void fast::View::setBackgroundColor | ( | Color | color | ) |
void fast::View::setCameraInputConnection | ( | DataChannel::pointer | port | ) |
void fast::View::setLookAt | ( | Vector3f | cameraPosition, |
Vector3f | targetPosition, | ||
Vector3f | cameraUpVector, | ||
float | zNear = 0.1 , |
||
float | zFar = 1000 |
||
) |
void fast::View::setMaximumFramerate | ( | unsigned int | framerate | ) |
void fast::View::setZoom | ( | float | zoom | ) |
Function for setting the zoom level of the view. Level 1 is no zooming. Level 0.5 makes images in the view half its size. Level 2 makes images in the view double in size.
|
protected |
|
protected |
|
protected |
|
protected |
void fast::View::wheelEvent | ( | QWheelEvent * | event | ) |
|
friend |
|
protected |