API Documentation
Loading...
Searching...
No Matches
VirtualCameraView Class Reference

#include <VirtualCameraView.h>

Inheritance diagram for VirtualCameraView:
[legend]
Collaboration diagram for VirtualCameraView:
[legend]

Public Member Functions

void addContextCustomMenu (const UUID &id, ContextMenuCallback *callback) override
 
void addModels (const Buffer< UUID > &ids) override
 
virtual void addWidget (const QPointer< QWidget > &widget) override
 
virtual ConstPointer< Camera > camera () const override
 
virtual DynamicPointer< Camera > camera () override
 
QWidget * cameraToolbar () override
 
void clearModels () override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
bool event (QEvent *e) override
 
String getCursorID () const
 
QTGraphicsWindowgraphicsWindow () const
 
UUID id () const override
 
virtual void removeWidget (const QPointer< QWidget > &widget) override
 
void requestShowInfoDisplay (bool should_show) override
 
void resetToolRibbon () override
 
QImage screenshot ()
 
void screenshotToClipboard (bool include_background)
 
void screenshotToPrint (uint04 index=Constant< uint04 >::Invalid)
 
void setCamera (const DynamicPointer< Camera > &camera)
 
void setModelManager (QTModelManager *manager, bool auto_add_models)
 
void setSwapMode (SwapMode mode) override
 
void setTouchTheme (bool touch_theme) override
 
void setupRulers ()
 
void showToolRibbon (bool visible) override
 
void toPDF (const File &pdf_file)
 
void updateView () override
 
 VirtualCameraView (QTGraphicsWidget *widget, const DynamicPointer< Camera > &camera, QTModelManager *model_manager, QWidget *parent=nullptr)
 
 VirtualCameraView (QTGraphicsWidget *widget, QWidget *parent=nullptr)
 
 ~VirtualCameraView ()
 
- Public Member Functions inherited from CameraView
virtual Angle< fltp08cameraRotation ()
 
 CameraView (QWidget *parent=nullptr)
 
bool event (QEvent *event) override
 
virtual RecordingState recordingState () const
 
virtual void setCameraRotation (Angle< fltp08 >)
 
virtual void setCameraZoom (fltp08)
 
virtual void setIconSizeMultiplier (fltp04)
 
virtual QSize sizeHint () const override
 
virtual ~CameraView ()
 

Protected Slots

void editOverrideMaterial ()
 
void objectRefresh (UUID id)
 
void onMaterialDeleted (UUID material)
 
void removeOverrideMaterial ()
 
void requestCameraLink (bool selected)
 
void showContextMenu (const QPoint &pos)
 

Protected Member Functions

void init ()
 
void updateCursor ()
 

Protected Attributes

CameraToolbar * m_camera_toolbar
 
QTResourceListenerm_cursor_listener
 
Dictionary< UUID, ContextMenuCallback * > m_custom_context_callbacks
 
QTGraphicsWidgetm_graphics_widget
 
QTGraphicsWindowm_graphics_window
 
QTModelManagerm_model_manager
 
QTResourceListenerm_orientation_listener
 
QTResourceListenerm_orthograhic_listener
 
Buttonm_ruler_button
 
CameraRulerMenu * m_ruler_combo
 
QTResourceListenerm_selection_info_listener
 
bool m_should_show_info = true
 
bool m_show_edge_ruler_ortho
 
bool m_show_edge_ruler_perspective
 
bool m_show_toolbar
 
bool m_show_top_ruler_ortho
 
bool m_show_top_ruler_perspective
 
Ruler * m_side_ruler
 
Ruler * m_top_ruler
 
bool m_touch_theme
 

Additional Inherited Members

- Public Types inherited from CameraView
enum  RecordingState { e_recording , e_paused , e_stopped }
 
enum  SwapMode { e_no_swap , e_swap_normal , e_swap_resize }
 
- Signals inherited from CameraView
void onScreenshotSaved (const File &file)
 
void onVideoSaved (const File &file)
 
void recordingStateChangedSignal (RecordingState state)
 
void requestCameraCopy (UUID signal, bool)
 
void requestMoveable (bool moveable)
 
void requestRedrawAllSignal ()
 
void requestSelectedSignal ()
 
void requestSwapSignal (UUID signal)
 
void viewHiddenSignal ()
 
void viewportSelectionSignal (UUID camera, Buffer< UUID > selection)
 
void viewportShowing ()
 

Constructor & Destructor Documentation

◆ VirtualCameraView() [1/2]

VirtualCameraView ( QTGraphicsWidget * widget,
const DynamicPointer< Camera > & camera,
QTModelManager * model_manager,
QWidget * parent = nullptr )

◆ VirtualCameraView() [2/2]

VirtualCameraView ( QTGraphicsWidget * widget,
QWidget * parent = nullptr )

◆ ~VirtualCameraView()

Member Function Documentation

◆ addContextCustomMenu()

void addContextCustomMenu ( const UUID & id,
ContextMenuCallback * callback )
overridevirtual

Reimplemented from CameraView.

◆ addModels()

void addModels ( const Buffer< UUID > & ids)
overridevirtual

Reimplemented from CameraView.

◆ addWidget()

virtual void addWidget ( const QPointer< QWidget > & widget)
overridevirtual

Reimplemented from CameraView.

◆ camera() [1/2]

virtual ConstPointer< Camera > camera ( ) const
overridevirtual

Implements CameraView.

◆ camera() [2/2]

virtual DynamicPointer< Camera > camera ( )
overridevirtual

Implements CameraView.

◆ cameraToolbar()

QWidget * cameraToolbar ( )
overridevirtual

Reimplemented from CameraView.

◆ clearModels()

void clearModels ( )
overridevirtual

Reimplemented from CameraView.

◆ dragEnterEvent()

void dragEnterEvent ( QDragEnterEvent * event)
override

◆ dropEvent()

void dropEvent ( QDropEvent * event)
override

◆ editOverrideMaterial

void editOverrideMaterial ( )
protectedslot

◆ event()

bool event ( QEvent * e)
override

◆ getCursorID()

String getCursorID ( ) const

◆ graphicsWindow()

QTGraphicsWindow * graphicsWindow ( ) const
inline

◆ id()

UUID id ( ) const
overridevirtual

Implements CameraView.

◆ init()

void init ( )
protected

◆ objectRefresh

void objectRefresh ( UUID id)
protectedslot

◆ onMaterialDeleted

void onMaterialDeleted ( UUID material)
protectedslot

◆ removeOverrideMaterial

void removeOverrideMaterial ( )
protectedslot

◆ removeWidget()

virtual void removeWidget ( const QPointer< QWidget > & widget)
overridevirtual

Reimplemented from CameraView.

◆ requestCameraLink

void requestCameraLink ( bool selected)
protectedslot

◆ requestShowInfoDisplay()

void requestShowInfoDisplay ( bool should_show)
overridevirtual

Reimplemented from CameraView.

◆ resetToolRibbon()

void resetToolRibbon ( )
overridevirtual

Reimplemented from CameraView.

◆ screenshot()

QImage screenshot ( )

◆ screenshotToClipboard()

void screenshotToClipboard ( bool include_background)

◆ screenshotToPrint()

void screenshotToPrint ( uint04 index = Constantuint04 >::Invalid)

◆ setCamera()

void setCamera ( const DynamicPointer< Camera > & camera)

◆ setModelManager()

void setModelManager ( QTModelManager * manager,
bool auto_add_models )

◆ setSwapMode()

void setSwapMode ( SwapMode mode)
overridevirtual

Implements CameraView.

◆ setTouchTheme()

void setTouchTheme ( bool touch_theme)
overridevirtual

Implements CameraView.

◆ setupRulers()

void setupRulers ( )

◆ showContextMenu

void showContextMenu ( const QPoint & pos)
protectedslot

◆ showToolRibbon()

void showToolRibbon ( bool visible)
overridevirtual

Reimplemented from CameraView.

◆ toPDF()

void toPDF ( const File & pdf_file)

◆ updateCursor()

void updateCursor ( )
protected

◆ updateView()

void updateView ( )
overridevirtual

Implements CameraView.

Member Data Documentation

◆ m_camera_toolbar

CameraToolbar* m_camera_toolbar
protected

◆ m_cursor_listener

QTResourceListener* m_cursor_listener
protected

◆ m_custom_context_callbacks

Dictionary<UUID, ContextMenuCallback*> m_custom_context_callbacks
protected

◆ m_graphics_widget

QTGraphicsWidget* m_graphics_widget
protected

◆ m_graphics_window

QTGraphicsWindow* m_graphics_window
protected

◆ m_model_manager

QTModelManager* m_model_manager
protected

◆ m_orientation_listener

QTResourceListener* m_orientation_listener
protected

◆ m_orthograhic_listener

QTResourceListener* m_orthograhic_listener
protected

◆ m_ruler_button

Button* m_ruler_button
protected

◆ m_ruler_combo

CameraRulerMenu* m_ruler_combo
protected

◆ m_selection_info_listener

QTResourceListener* m_selection_info_listener
protected

◆ m_should_show_info

bool m_should_show_info = true
protected

◆ m_show_edge_ruler_ortho

bool m_show_edge_ruler_ortho
protected

◆ m_show_edge_ruler_perspective

bool m_show_edge_ruler_perspective
protected

◆ m_show_toolbar

bool m_show_toolbar
protected

◆ m_show_top_ruler_ortho

bool m_show_top_ruler_ortho
protected

◆ m_show_top_ruler_perspective

bool m_show_top_ruler_perspective
protected

◆ m_side_ruler

Ruler* m_side_ruler
protected

◆ m_top_ruler

Ruler* m_top_ruler
protected

◆ m_touch_theme

bool m_touch_theme
protected

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